Click or drag to resize

ComponentSingleGetterTComponent, TData Class

Note: This API is now obsolete.

Base class for a getter for a component which modifies a single data value.
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          Slash.Unity.DataBind.Core.PresentationDataBindingOperator
            Slash.Unity.DataBind.Core.PresentationDataProvider
              Slash.Unity.DataBind.Foundation.Providers.GettersComponentSingleGetterTComponent, TData
                More...

Namespace:  Slash.Unity.DataBind.Foundation.Providers.Getters
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
[ObsoleteAttribute("Use ComponentDataProvider instead and set the context data with a ContextDataUpdater")]
public abstract class ComponentSingleGetter<TComponent, TData> : DataProvider
where TComponent : Component

Type Parameters

TComponent
Type of component to get value from.
TData
Type of data which is modified.

The ComponentSingleGetterTComponent, TData type exposes the following members.

Constructors
  NameDescription
Protected methodComponentSingleGetterTComponent, TData
Initializes a new instance of the ComponentSingleGetterTComponent, TData class
Top
Properties
Methods
  NameDescription
Protected methodAddListener
Register listener at target to be informed if its value changed. The target is already checked for null reference.
Public methodDeinit
Deinitializes the operator. By default this method removes the added bindings.
(Overrides DataBindingOperatorDeinit.)
Public methodDisable
Disable the operator.
(Overrides DataBindingOperatorDisable.)
Public methodEnable
Enable the operator.
(Overrides DataBindingOperatorEnable.)
Protected methodGetValue
Derived classes should return the current value to set if this method is called. The target is already checked for null reference.
Public methodInit
Initializes the operator. This method should be used to add bindings.
(Overrides DataBindingOperatorInit.)
Public methodOnAfterDeserialize
Unity callback.
Public methodOnBeforeSerialize
Unity callback.
Public methodOnContextChanged
Has to be called when an anchestor context changed as the data value may change.
(Overrides DataBindingOperatorOnContextChanged.)
Protected methodOnTargetValueChanged
Has to be called by derived classes when the value may have changed.
Protected methodRemoveListener
Remove listener from target which was previously added in AddListener. The target is already checked for null reference.
Protected methodReset
Unity callback.
Protected methodStart
Unity callback.
(Overrides DataBindingOperatorStart.)
Protected methodUpdateValue
Called when the value of the data provider should be updated.
(Overrides DataProviderUpdateValue.)
Top
Fields
  NameDescription
Public fieldPath
Path to value in data context.
Public fieldTargetBinding
Binding that provides the target component.
Top
See Also
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          Slash.Unity.DataBind.Core.PresentationDataBindingOperator
            Slash.Unity.DataBind.Core.PresentationDataProvider
              Slash.Unity.DataBind.Foundation.Providers.GettersComponentSingleGetterTComponent, TData
                Slash.Unity.DataBind.UI.NGUI.GettersInputValueGetter
                Slash.Unity.DataBind.UI.NGUI.GettersPopupListDataGetter
                Slash.Unity.DataBind.UI.NGUI.GettersPopupListValueGetter
                Slash.Unity.DataBind.UI.Unity.GettersInputFieldGetter
                Slash.Unity.DataBind.UI.Unity.GettersSliderValueGetter
                Slash.Unity.DataBind.UI.Unity.GettersToggleIsOnGetter