Interface IBakedVertexAnimationManagerSince
interface IBakedVertexAnimationManager {
animationParameters: Vector4;
isEnabled: boolean;
texture: Nullable<BaseTexture>;
time: number;
bind(effect: Effect, useInstances: boolean): void;
dispose(forceDisposeTextures?: boolean): void;
getClassName(): string;
setAnimationParameters(
startFrame: number,
endFrame: number,
offset: number,
speedFramesPerSecond: number,
): void;
}
animationParameters: Vector4;
isEnabled: boolean;
texture: Nullable<BaseTexture>;
time: number;
bind(effect: Effect, useInstances: boolean): void;
dispose(forceDisposeTextures?: boolean): void;
getClassName(): string;
setAnimationParameters(
startFrame: number,
endFrame: number,
offset: number,
speedFramesPerSecond: number,
): void;
}
Implemented by
Properties
animation Parameters
The animation parameters for the mesh. See setAnimationParameters()
is Enabled
isEnabled: boolean
Gets or sets a boolean indicating if the edgesRenderer is active
texture
The vertex animation texture
time
time: number
The time counter, to pick the correct animation frame.
Methods
bind
-
Binds to the effect.
Parameters
- effect: Effect
The effect to bind to.
- useInstances: boolean
True when it's an instance.
Returns void
- effect: Effect
dispose
-
Disposes the resources of the manager.
Parameters
OptionalforceDisposeTextures: booleanForces the disposal of all textures.
Returns void
get Class Name
-
Get the current class name useful for serialization or dynamic coding.
Returns string
"BakedVertexAnimationManager"
set Animation Parameters
-
setAnimationParameters(
startFrame: number,
endFrame: number,
offset: number,
speedFramesPerSecond: number,
): voidSets animation parameters.
Parameters
- startFrame: number
The first frame of the animation.
- endFrame: number
The last frame of the animation.
- offset: number
The offset when starting the animation.
- speedFramesPerSecond: number
The frame rate.
Returns void
- startFrame: number
Interface for baked vertex animation texture, see BakedVertexAnimationManager 5.0