Beispiel #1
0
        public static Panel FindOrCreate(ScriptableObject ownerObject)
        {
            var   id = ownerObject.GetInstanceID();
            Panel panel;

            if (UIElementsUtility.TryGetPanel(id, out panel))
            {
                return(panel);
            }
            panel = new EditorPanel(ownerObject);
            UIElementsUtility.RegisterCachedPanel(id, panel);
            return(panel);
        }