![]() | ValueSetterT Class |
Namespace: DustProductions.Core
public abstract class ValueSetter<T> : CacheableValueSetter where T : struct, new()
The ValueSetterT type exposes the following members.
Name | Description | |
---|---|---|
![]() | ValueSetterT | Initializes a new instance of the ValueSetterT class |
Name | Description | |
---|---|---|
![]() | CachedValue |
The value of the Type when this object was cached
|
![]() | CanTransition |
If the transition is not null, the seconds for the transition is greater than 0, and the TransitionType is not None, this will be true. Used to avoid setting up things for the transition if it won't even be run.
|
![]() | ReferencedValue |
The value we are going to modify.
|
Name | Description | |
---|---|---|
![]() | DoCache |
Call this to tell this object to cache its values
(Overrides CacheableDoCache.) |
![]() | Reset |
The Reset method Unity calls. Announces this component has been added so we can hook things up easily.
|
![]() | SetToCached |
Sets all the Type back to the cached value, whatever that may be
(Overrides CacheableSetToCached.) |
![]() | SetValue |
Sets the value of all the Types in ValuesToChange.
|
![]() | TryGetReferencedValue |
Implement this to get the value we are referencing.
|
![]() | TryGetTransitionValue |
Implement this to make your value transition from startValue to endValue.
|
![]() | TrySetReferencedValue |
Implement this to set the value to what we want it to be after it has been modified.
|
Name | Description | |
---|---|---|
![]() | CachedTransitionRoutine |
A reference to the currently running, or last run coroutine, if applicable
|
![]() | Transition |
Any transition, if desired.
|
Name | Description | |
---|---|---|
![]() | AnnounceComponentAdded |
Notifies any IComponentHandlers on the GameObject a Component is added to, that the Component has been added.
(Defined by ExtensionMethods.) |
![]() | StartCoroutineT |
Use by calling this.StartCoroutine and assigning it to a Coroutine. Then you can call your assigned coroutine.Cancel(), or .HasFinished, or a variety of other neat things.
(Defined by ExtensionMethods.) |
![]() | TryGetComponentT(T, Boolean) | Overloaded.
Attempts to get a component on a gameobject.
(Defined by ExtensionMethods.) |
![]() | TryGetComponentT1, T2(T1, Boolean) | Overloaded.
Attempts to get a component on a gameobject.
(Defined by ExtensionMethods.) |
![]() | TryGetComponentsT(T, Boolean) | Overloaded.
Attempts to get components on a gameobject.
(Defined by ExtensionMethods.) |
![]() | TryGetComponentsT1, T2(T1, Boolean) | Overloaded.
Attempts to get components on a gameobject.
(Defined by ExtensionMethods.) |