StatusFlags OpenNodeViewScriptStatus(DropdownMenu.MenuAction action) { if (NodeProvider.GetNodeViewScript(GetType()) != null) { return(StatusFlags.Normal); } return(StatusFlags.Disabled); }
public void OpenNodeViewScript() { var script = NodeProvider.GetNodeViewScript(GetType()); if (script != null) { AssetDatabase.OpenAsset(script.GetInstanceID(), 0, 0); } }
public void OpenNodeViewScript() { var scriptPath = NodeProvider.GetNodeViewScript(GetType()); if (scriptPath != null) { InternalEditorUtility.OpenFileAtLineExternal(scriptPath, 0); } }
public void OpenNodeViewScript() { var scriptPath = NodeProvider.GetNodeViewScript(GetType()); #pragma warning disable CS0618 // Deprecated function but no alternative :( if (scriptPath != null) { InternalEditorUtility.OpenFileAtLineExternal(scriptPath, 0); } #pragma warning restore CS0618 }