Click or drag to resize

SmoothenerTValue Class

Base class to smooth a data value.
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          Slash.Unity.DataBind.Core.PresentationDataBindingOperator
            Slash.Unity.DataBind.Core.PresentationDataProvider
              Slash.Unity.DataBind.Foundation.Providers.SmoothenersSmoothenerTValue
                Slash.Unity.DataBind.Foundation.Providers.SmoothenersFloatSmoothener
                Slash.Unity.DataBind.Foundation.Providers.SmoothenersLongSmoothener

Namespace:  Slash.Unity.DataBind.Foundation.Providers.Smootheners
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public abstract class Smoothener<TValue> : DataProvider

Type Parameters

TValue
Type of data to smooth.

The SmoothenerTValue type exposes the following members.

Constructors
  NameDescription
Protected methodSmoothenerTValue
Initializes a new instance of the SmoothenerTValue class
Top
Properties
Methods
  NameDescription
Public methodDisable
Disable the operator.
(Overrides DataBindingOperatorDisable.)
Protected methodDoStep
Does one step for the data value.
Public methodEnable
Enable the operator.
(Overrides DataBindingOperatorEnable.)
Protected methodGetDifference
Returns the difference between two values.
Protected methodGetStep
Returns the step to take for the specified velocity and available time.
Protected methodGetVelocity
Returns the velocity required to process the specified amount in the specified duration.
Public methodInit
Initializes the operator. This method should be used to add bindings.
(Overrides DataBindingOperatorInit.)
Protected methodIsLess
Indicates if value A is less than value B.
Protected methodUpdate
Unity callback.
Protected methodUpdateValue
Called when the value of the data provider should be updated.
(Overrides DataProviderUpdateValue.)
Top
Fields
  NameDescription
Public fieldData
Binding to get target value from.
Public fieldInterruptDuringTransition
Indicates if a new target value can interrupt the current transition. If true the current transition is completed before a new target value is used.
Public fieldMaxUpdateTime
If set to smaller as 0, it is ignored. If set to 0 values are instant updated.
Public fieldVelocity
Velocity to change from current to target value (in change per second).
Top
See Also