/// <inheritdoc/> public override void AddConverters([NotNull] RegisterAttributeConverter add) { add(typeof(Sirenix.OdinInspector.ShowInInspectorAttribute), typeof(ShowInInspectorAttribute), ConvertShowInInspector); add(typeof(Sirenix.OdinInspector.ButtonAttribute), typeof(ButtonAttribute), ConvertButton); add(typeof(Sirenix.OdinInspector.ReadOnlyAttribute), typeof(ReadOnlyAttribute), ConvertReadOnly); add(typeof(Sirenix.OdinInspector.RequiredAttribute), typeof(NotNullAttribute), ConvertRequired); add(typeof(Sirenix.OdinInspector.TitleAttribute), typeof(PHeaderAttribute), ConvertTitle); add(typeof(Sirenix.OdinInspector.InfoBoxAttribute), typeof(HelpBoxAttribute), ConvertInfoBox); add(typeof(Sirenix.OdinInspector.DetailedInfoBoxAttribute), typeof(HelpBoxAttribute), ConvertDetailedInfoBox); add(typeof(Sirenix.OdinInspector.ShowIfAttribute), typeof(ShowIfAttribute), ConvertShowIf); add(typeof(Sirenix.OdinInspector.DisableIfAttribute), typeof(DisableIfAttribute), ConvertDisableIf); add(typeof(Sirenix.OdinInspector.DisplayAsStringAttribute), typeof(ReadOnlyAttribute), ConvertDisplayAsString); add(typeof(Sirenix.OdinInspector.MultiLinePropertyAttribute), typeof(PMultilineAttribute), ConvertMultilineProperty); add(typeof(Sirenix.OdinInspector.PropertySpaceAttribute), typeof(PSpaceAttribute), ConvertPropertySpace); add(typeof(Sirenix.OdinInspector.InlinePropertyAttribute), typeof(DrawInSingleRowAttribute), ConvertInlineProperty); }
/// <summary> /// Add converters that allow converting plugin attributes to Power Inspector supported attributes. /// </summary> /// <param name="add"> /// Delegate for registering information that can be used to convert a plugin attribute instance to a Power Inspector supported attribute instance. /// </param> public abstract void AddConverters([NotNull] RegisterAttributeConverter add);