//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(); }
public static void CreateScriptAssetFromTemplateFile(object context) { var filePath = (string)context; if (filePath.IsExistsFile()) { ProjectBrowserUtils.CreateScriptAssetFromTemplateFile(filePath); } else { HEditorDialog.Info(SS._Templatefilenotfound); //ScriptTemplatesWindow.Open(); } }
public static void ProjectBrowserSetSearch(object context) { var value = context.ContextToType(); ProjectBrowserUtils.SetSearch($"t:{value.FullName}"); }