Class InspectorField
A set of field/property tags used to define how a property should render in a custom inspector
Inheritance
InspectorField
Assembly: cs.temp.dll.dll
public class InspectorField : Attribute, Attribute
Properties
The label that will be rendered with the property field in the custom inspector
Declaration
public string Label { get; set; }
Property Value
The label that will be rendered with the property field in the custom inspector
Declaration
public string Label { get; set; }
Property Value
A string list of options for a pop-up list
Declaration
public string[] Options { get; set; }
Property Value
A string list of options for a pop-up list
Declaration
public string[] Options { get; set; }
Property Value
A tooltip for the property field
Declaration
public string Tooltip { get; set; }
Property Value
A tooltip for the property field
Declaration
public string Tooltip { get; set; }
Property Value
The type of field or property value type
Declaration
public InspectorField.FieldTypes Type { get; set; }
Property Value
The type of field or property value type
Declaration
public InspectorField.FieldTypes Type { get; set; }
Property Value
An object to hold the actual value
Declaration
public UnityEngine.Object Value { get; set; }
Property Value
Type |
Description |
UnityEngine.Object |
|
An object to hold the actual value
Declaration
public UnityEngine.Object Value { get; set; }
Property Value
Type |
Description |
UnityEngine.Object |
|
Methods
Declaration
public static InspectorPropertySetting FieldToProperty(InspectorField attributes, object fieldValue, string fieldName)
Parameters
Returns
Declaration
public static InspectorPropertySetting FieldToProperty(InspectorField attributes, object fieldValue, string fieldName)
Parameters
Returns
Get the propertySettings value
Declaration
public static object GetSettingValue(List<InspectorPropertySetting> settings, string name)
Parameters
Returns
Get the propertySettings value
Declaration
public static object GetSettingValue(List<InspectorPropertySetting> settings, string name)
Parameters
Returns
Get the index from a list of strings using string comparison
Declaration
public static int ReverseLookup(string option, string[] options)
Parameters
Returns
Get the index from a list of strings using string comparison
Declaration
public static int ReverseLookup(string option, string[] options)
Parameters
Returns
Set the value of the propertySetting
Declaration
public static InspectorPropertySetting UpdatePropertySetting(InspectorPropertySetting setting, object update)
Parameters
Returns
Set the value of the propertySetting
Declaration
public static InspectorPropertySetting UpdatePropertySetting(InspectorPropertySetting setting, object update)
Parameters
Returns
Implements
Attribute