Defines the texture sheet animation settings for particles. Allows configuring the animation frames, timing mode, frames per second, and the starting frame.
tiles: new THREE.Vector2(1.0, 1.0)timeMode: TimeMode.LIFETIMEfps: 30.0startFrame: 0 Copy
tiles: new THREE.Vector2(1.0, 1.0)timeMode: TimeMode.LIFETIMEfps: 30.0startFrame: 0
// Basic configuration with default valuestextureSheetAnimation: { tiles: new THREE.Vector2(1.0, 1.0), timeMode: TimeMode.LIFETIME, fps: 30.0, startFrame: 0};// Custom configurationtextureSheetAnimation: { tiles: new THREE.Vector2(4, 4), // 4x4 grid of animation tiles timeMode: TimeMode.SPEED, fps: 60.0, startFrame: { min: 0, max: 15 } // Random start frame between 0 and 15}; Copy
// Basic configuration with default valuestextureSheetAnimation: { tiles: new THREE.Vector2(1.0, 1.0), timeMode: TimeMode.LIFETIME, fps: 30.0, startFrame: 0};// Custom configurationtextureSheetAnimation: { tiles: new THREE.Vector2(4, 4), // 4x4 grid of animation tiles timeMode: TimeMode.SPEED, fps: 60.0, startFrame: { min: 0, max: 15 } // Random start frame between 0 and 15};
Optional
Defines the texture sheet animation settings for particles. Allows configuring the animation frames, timing mode, frames per second, and the starting frame.
Default
Example