Class Foldout
Implements
Inherited Members
Namespace: UnityEngine.Experimental.UIElements
Assembly: UnityEngine.dll
Syntax
public class Foldout : BindableElement, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, IBindable, INotifyValueChanged<bool>
Constructors
| Improve this Doc View SourceFoldout()
Declaration
public Foldout()
Properties
| Improve this Doc View SourcecontentContainer
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
| Improve this Doc View Sourcetext
Declaration
public string text { get; set; }
Property Value
Type | Description |
---|---|
String |
value
Declaration
public bool value { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceOnValueChanged(EventCallback<ChangeEvent<Boolean>>)
Declaration
public void OnValueChanged(EventCallback<ChangeEvent<bool>> callback)
Parameters
Type | Name | Description |
---|---|---|
EventCallback<ChangeEvent<Boolean>> | callback |
RemoveOnValueChanged(EventCallback<ChangeEvent<Boolean>>)
Declaration
public void RemoveOnValueChanged(EventCallback<ChangeEvent<bool>> callback)
Parameters
Type | Name | Description |
---|---|---|
EventCallback<ChangeEvent<Boolean>> | callback |
SetValueAndNotify(Boolean)
Declaration
[ExcludeFromDocs]
public void SetValueAndNotify(bool newValue)
Parameters
Type | Name | Description |
---|---|---|
Boolean | newValue |
SetValueWithoutNotify(Boolean)
Declaration
public void SetValueWithoutNotify(bool newValue)
Parameters
Type | Name | Description |
---|---|---|
Boolean | newValue |