private void OnEnable() { instance = this; on = EditorPrefs.GetBool("toggle", true); m_On = on; path = "Assets/PGUI/Texture/Icon/bg_01.png"; m_bg = GameObject.Instantiate(AssetDatabase.LoadAssetAtPath <Texture>(path)); Init(); EditorApplication.hierarchyWindowChanged += Init; }
public LayoutNodeManager() { instance = this; }