private static GameObject GetEditor(Type type, bool isPropertyEditor, bool strict = false) { EditorDescriptor descriptor = GetEditorDescriptor(type, isPropertyEditor, strict); if (descriptor != null) { return(m_editors[descriptor.Index]); } return(null); }
private static bool IsEditorEnabled(Type type, bool isPropertyEditor, bool strict) { EditorDescriptor descriptor = GetEditorDescriptor(type, isPropertyEditor, strict); if (descriptor != null) { return(descriptor.Enabled); } return(false); }
protected override bool IsCompatibleEditorDescriptor(EditorDescriptor editorDescriptor) { return(editorDescriptor is PropertyEditorDescriptor); }