public static bool IsMaterialEditorEnabled(Shader shader) { MaterialEditorDescriptor descriptor = GetEditorDescriptor(shader); if (descriptor != null) { return(descriptor.Enabled); } return(false); }
public static GameObject GetMaterialEditor(Shader shader, bool strict = false) { MaterialEditorDescriptor descriptor = GetEditorDescriptor(shader); if (descriptor != null) { return(descriptor.Editor); } if (strict) { return(null); } return(m_defaultMaterialEditor); }