示例#1
0
        //public static void SetBoldFont( SerializedProperty prop ) {
        //	if( prop.prefabOverride ) {
        //		GUI.skin.font = EditorStyles.boldFont;
        //	}
        //	else {
        //		GUI.skin.font = EditorStyles.standardFont;
        //	}
        //}

        public static void ShowInspector(UnityObject uobj)
        {
            if (Selection.activeObject == uobj)
            {
                return;
            }
            Selection.activeObject = uobj;
            ProjectBrowserUtils.lockOnce();
        }
示例#2
0
        public static void CreateScriptAssetFromTemplateFile(object context)
        {
            var filePath = (string)context;

            if (filePath.IsExistsFile())
            {
                ProjectBrowserUtils.CreateScriptAssetFromTemplateFile(filePath);
            }
            else
            {
                HEditorDialog.Info(SS._Templatefilenotfound);
                //ScriptTemplatesWindow.Open();
            }
        }
示例#3
0
        public static void ProjectBrowserSetSearch(object context)
        {
            var value = context.ContextToType();

            ProjectBrowserUtils.SetSearch($"t:{value.FullName}");
        }