Class LayerField
A LayerField editor.
Inheritance
LayerField
Inherited Members
Namespace: UnityEditor.UIElements
Syntax
public class LayerField : PopupField<int>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<int>, IMixedValueSupport
Constructors
LayerField()
Initializes and returns an instance of LayerField.
Declaration
public LayerField()
LayerField(Int32)
Initializes and returns an instance of LayerField.
Declaration
public LayerField(int defaultValue)
Parameters
Type | Name | Description |
---|---|---|
Int32 | defaultValue | The initial layer value this field should use. |
LayerField(String)
Initializes and returns an instance of LayerField.
Declaration
public LayerField(string label)
Parameters
Type | Name | Description |
---|---|---|
String | label | The text to use as a label for the field. |
LayerField(String, Int32)
Initializes and returns an instance of LayerField.
Declaration
public LayerField(string label, int defaultValue)
Parameters
Type | Name | Description |
---|---|---|
String | label | The text to use as a label for the field. |
Int32 | defaultValue | The initial layer value this field should use. |
Fields
inputUssClassName
USS class name of input elements in elements of this type.
Declaration
public static readonly string inputUssClassName
Field Value
Type | Description |
---|---|
String |
labelUssClassName
USS class name of labels in elements of this type.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
String |
ussClassName
USS class name of elements of this type.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
String |
Properties
formatListItemCallback
Unsupported.
Declaration
public override Func<int, string> formatListItemCallback { get; set; }
Property Value
Type | Description |
---|---|
Func<Int32, String> |
Overrides
UnityEditor.UIElements.PopupField<System.Int32>.formatListItemCallback
formatSelectedValueCallback
Unsupported.
Declaration
public override Func<int, string> formatSelectedValueCallback { get; set; }
Property Value
Type | Description |
---|---|
Func<Int32, String> |
Overrides
UnityEditor.UIElements.PopupField<System.Int32>.formatSelectedValueCallback
value
Declaration
public override int value { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
UnityEditor.UIElements.PopupField<System.Int32>.value
Methods
SetValueWithoutNotify(Int32)
Declaration
public override void SetValueWithoutNotify(int newValue)
Parameters
Type | Name | Description |
---|---|---|
Int32 | newValue |
Overrides
UnityEditor.UIElements.PopupField<System.Int32>.SetValueWithoutNotify(System.Int32)