Class BaseField<T>
Inheritance
BaseField<T>
      
      
      
      
      
      
      
      
      
      
      
      
      
  Implements
Inherited Members
Namespace: UnityEngine.Experimental.UIElements
Assembly: UnityEngine.dll
Syntax
public abstract class BaseField<T> : BindableElement, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, IBindable, INotifyValueChanged<T>Type Parameters
| Name | Description | 
|---|---|
| T | 
Constructors
| Improve this Doc View SourceBaseField()
Declaration
public BaseField()Fields
| Improve this Doc View Sourcem_Value
Declaration
protected T m_ValueField Value
| Type | Description | 
|---|---|
| T | 
Properties
| Improve this Doc View Sourcevalue
Declaration
public virtual T value { get; set; }Property Value
| Type | Description | 
|---|---|
| T | 
Methods
| Improve this Doc View SourceOnPersistentDataReady()
Declaration
public override void OnPersistentDataReady()Overrides
| Improve this Doc View SourceOnValueChanged(EventCallback<ChangeEvent<T>>)
Declaration
public void OnValueChanged(EventCallback<ChangeEvent<T>> callback)Parameters
| Type | Name | Description | 
|---|---|---|
| EventCallback<ChangeEvent<T>> | callback | 
RemoveOnValueChanged(EventCallback<ChangeEvent<T>>)
Declaration
public void RemoveOnValueChanged(EventCallback<ChangeEvent<T>> callback)Parameters
| Type | Name | Description | 
|---|---|---|
| EventCallback<ChangeEvent<T>> | callback | 
SetValueAndNotify(T)
Declaration
[Obsolete("This method is replaced by simply using this.value. The default behaviour has been changed to notify when changed. If the behaviour is not to be notified, SetValueWithoutNotify() must be used.", false)]
public virtual void SetValueAndNotify(T newValue)Parameters
| Type | Name | Description | 
|---|---|---|
| T | newValue | 
SetValueWithoutNotify(T)
Declaration
public virtual void SetValueWithoutNotify(T newValue)Parameters
| Type | Name | Description | 
|---|---|---|
| T | newValue |