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