Struct BlendWeight ​
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
The weight of a blend switching on and off over time.
csharp
public struct BlendWeightConstructors ​
BlendWeight() ​
Creates a weight that starts off.
csharp
public BlendWeight()Fields ​
BlendTime ​
Seconds elapsed in the current blend.
csharp
public float BlendTimeField Value ​
float
DesiredBlendTime ​
Seconds a full blend takes.
csharp
public float DesiredBlendTimeField Value ​
float
EasingOperation ​
The easing applied to the blend.
csharp
public EasingOperation EasingOperationField Value ​
State ​
The current state.
csharp
public BlendWeight.BlendWeightState StateField Value ​
Properties ​
IsBlending ​
Whether the weight is turning on or off.
csharp
public readonly bool IsBlending { get; }Property Value ​
bool
Methods ​
GetWeight() ​
Gets the current weight, 0 being off and 1 on.
csharp
public readonly float GetWeight()Returns ​
float
Reset(float, bool) ​
Resets to fully on or off with a new blend time.
csharp
public void Reset(float desiredBlendTime, bool startOn)Parameters ​
desiredBlendTime float
startOn bool
Update(float, bool) ​
Updates the weight and returns it, 0 being off and 1 on.
csharp
public float Update(float deltaTime, bool isOn)Parameters ​
deltaTime float
isOn bool
Returns ​
float

