📄 threejs/Core/Animation/BooleanKeyframeTrack

File: BooleanKeyframeTrack.md | Updated: 11/15/2025


title: BooleanKeyframeTrack category: Core layout: docs

BooleanKeyframeTrack

A track for boolean keyframe values.

Constructor

new BooleanKeyframeTrack( name : string, times : Array.<number>, values : Array.<boolean> )

Constructs a new boolean keyframe track.

This keyframe track type has no interpolation parameter because the interpolation is always discrete.

name | The keyframe track's name.
---|---
times | A list of keyframe times.
values | A list of keyframe values.

Properties

.DefaultInterpolation : InterpolateLinear | InterpolateDiscrete | InterpolateSmooth

The default interpolation type of this keyframe track.

Default is InterpolateDiscrete.

Overrides: KeyframeTrack#DefaultInterpolation

.ValueBufferType : TypedArray | Array

The value buffer type of this keyframe track.

Default is Array.constructor.

Overrides: KeyframeTrack#ValueBufferType

.ValueTypeName : String

The value type name.

Default is 'bool'.

Overrides: KeyframeTrack#ValueTypeName

Source

src/animation/tracks/BooleanKeyframeTrack.js