InspectorField Class

Definition

A set of field/property tags used to define how a property should render in a custom inspector

C++
public ref class InspectorField : Attribute
Inheritance
InspectorField

Constructors

Properties

Label

The label that will be rendered with the property field in the custom inspector

Options

A string list of options for a pop-up list

Tooltip

A tooltip for the property field

Type

The type of field or property value type

Value

An object to hold the actual value

Methods

FieldToProperty(InspectorField, Object, String)
GetSettingValue(List<InspectorPropertySetting>, String)

Get the propertySettings value

ReverseLookup(String, String[])

Get the index from a list of strings using string comparison

UpdatePropertySetting(InspectorPropertySetting, Object)

Set the value of the propertySetting

Applies to

Produkt Verzie
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0