Version 2.1.0.0

DrawerUtilities.InvalidAttributeTargetUtility class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public static class InvalidAttributeTargetUtility
Inheritance
  • System.Object
  • DrawerUtilities.InvalidAttributeTargetUtility

Methods

GetValidTargets(Type)
public static List<Type> GetValidTargets(Type attribute)
Parameters
System.Type attribute

Returns
System.Collections.Generic.List<System.Type>

RegisterValidAttributeTarget(Type, Type)
public static void RegisterValidAttributeTarget(Type attribute, Type target)
Parameters
System.Type attribute

System.Type target

ShowInvalidAttributeErrorFor(InspectorProperty, Type)
public static bool ShowInvalidAttributeErrorFor(InspectorProperty property, Type attribute)
Parameters
InspectorProperty property

System.Type attribute

Returns
System.Boolean

ShowInvalidAttributeErrorFor(Type, Type)
public static bool ShowInvalidAttributeErrorFor(Type attribute, Type value)
Parameters
System.Type attribute

System.Type value

Returns
System.Boolean

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.