예제 #1
0
 public TreeViewState(UnityEditor.IMGUI.Controls.TreeViewState instance) : base(instance)
 {
     _renameOverlay = new RenameOverlay(AccessProperty <object>("renameOverlay", BindingFlags.Instance | BindingFlags.NonPublic));
 }
예제 #2
0
        public bool IsRenaming(int instanceId)
        {
            var renameOverlay = new RenameOverlay(AccessField <object>("m_RenameOverlay", BindingFlags.Instance | BindingFlags.Public));

            return(renameOverlay.IsRenaming() && renameOverlay.UserData == instanceId);
        }