RequiredAttribute Class

Summary

[Pro-Only] When the attributed member is drawn in the inspector, it will be highlighted in red when it has the default value.
Assembly
Kybernetik.InspectorGadgets.dll
Namespace
InspectorGadgets.Attributes
Base Types
  • PropertyAttribute
graph BT Type-->Base0["PropertyAttribute"] Type["RequiredAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[System.Diagnostics.Conditional("UNITY_EDITOR")]
public sealed class RequiredAttribute : PropertyAttribute

Attributes

Type Description
AttributeUsageAttribute
ConditionalAttribute