📜  unity 自定义层次结构窗口 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:53.111000             🧑  作者: Mango

代码示例1
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public class CustomHierarchy : MonoBehaviour
    static CustomHierarchy()
    {
        EditorApplication.hierarchyWindowItemOnGUI += HandleHierarchyWindowItemOnGUI;
    }
    private static void HandleHierarchyWindowItemOnGUI(int instanceID, Rect selectionRect)
    {
        //code to edit the hierarchy here        
    }
}