Class PeriodicOscillationLayerSO
Procedural layer that applies sine-wave periodic oscillation to target bones.
Mechanism: Generates smooth, continuous periodic motion using a sine wave function. The oscillation can affect both position and rotation of target bones.
Common applications: Idle motion, breathing effects, bobbing objects, pulsing UI elements.
Inherited Members
Namespace: Serenity.ProceduralAnimator.Infrastructure.ProceduralLayers
Assembly: Serenity.UnityProceduralAnimator.Infrastructure.dll
Syntax
public class PeriodicOscillationLayerSO : ProceduralLayerSO, IProceduralLayer<UnityProceduralContext>, IFoundationSettings
Constructors
PeriodicOscillationLayerSO()
Declaration
public PeriodicOscillationLayerSO()
Properties
DrivenChannels
Writes only Pose — the only Evaluate overload this layer overrides.
Declaration
public override ProceduralChannels DrivenChannels { get; }
Property Value
| Type | Description |
|---|---|
| ProceduralChannels |
Overrides
Methods
Evaluate(in UnityProceduralContext, float, ref PoseDelta)
Evaluates this layer and adds its contribution to the pose delta. Called every frame for all active layers.
Declaration
public override void Evaluate(in UnityProceduralContext ctx, float weight, ref PoseDelta pose)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityProceduralContext | ctx | The procedural context containing state and time information. |
| float | weight | The weight of this layer (0-1). Used for blending. |
| PoseDelta | pose | The pose delta to add contributions to. |