Attribute that enables a field or a property to be visible in the inspector window in editor.
The types parameter can be either a single type, or a complex combination of types such as:
A ResourceHandle of type Texture: @inspectableField([ResourceHandle, Texture])
An array of type AnimationEvent: @inspectableField([Array, AnimationEvent])
A string: @inspectableField(String)
If a type is not immediately available to the compiler, a lambda can be used to return a type
that is not available at compile type: @inspectableField(() => [HTTPRequestBody])
Use @defaultValue(() => value) to indicate the default value of a field, used to reset in the UI.
Use @slider(min, max) to make for number/vector sliders.
Use @rangeClamped(min, max) to clamp a number/vector field to a range.
Use @step(1) to make a number/vector field increment in integer steps.
Use @decimals(0) to hide decimals for a number/vector field.
Use @description(text) to add a description for the field, used in tooltips and other UI.
Attribute that enables a field or a property to be visible in the inspector window in editor. The
typesparameter can be either a single type, or a complex combination of types such as:@inspectableField([ResourceHandle, Texture])@inspectableField([Array, AnimationEvent])@inspectableField(String)If a type is not immediately available to the compiler, a lambda can be used to return a type that is not available at compile type:
@inspectableField(() => [HTTPRequestBody])Use
@defaultValue(() => value)to indicate the default value of a field, used to reset in the UI. Use@slider(min, max)to make for number/vector sliders. Use@rangeClamped(min, max)to clamp a number/vector field to a range. Use@step(1)to make a number/vector field increment in integer steps. Use@decimals(0)to hide decimals for a number/vector field. Use@description(text)to add a description for the field, used in tooltips and other UI.