AnimatedFloat
A class in Root.Township, Alta.Networking.Animation.
A synced float parameter on a NetworkAnimator, sent compressed within a range and precision.
- Listed in Networking and servers
- Inherits or implements
AnimatedValue<float> - Derived types
AnimatedFloatLerp
Constructors
| Member | What it is |
|---|---|
AnimatedFloat(string name) | Creates an AnimatedFloat from name. |
Fields
| Member | What it is |
|---|---|
protected float maximum | Highest value sent. |
protected float minimum | Lowest value sent. |
protected float precision | Step size used to compress the value. |
Properties
| Member | What it is |
|---|---|
override int ChangedCounter { get; } | How many syncs a change is sent for: 2 here (the base default is 10). |
Methods
| Member | What it is |
|---|---|
override void Initialize(NetworkAnimator animator, int index) | Binds to the animator and reads the parameter's current value. |
protected override void Serialize(Stream stream) | Writes or reads the value within the range; clients apply it. |
protected override void Update() | Pushes the value to the Unity animator. |
Used in
Members of other types that take, return or hold a AnimatedFloat:
AnimatedFloatAiHook.booleans, AnimatedFloatTransitionAiHook.floats, AttackDirectionAnimationFloatSettings.FloatAnimation.animatedProperty, Schmeechee.runSpeed, Schmeechee.RunSpeed, ActiveSpit.angle, NetworkAnimator.floatMap, NetworkAnimator.floats, NetworkAnimator.GetFloat, WalkerAnimator.forwardSpeed, WalkerAnimator.GetFloat, WalkerAnimator.turnSpeed.