Header menu logo Mibo

Animation3DClips Module

Functions and values

Function or value Description

count clips

Full Usage: count clips

Parameters:
Returns: int
Modifiers: inline

Get the number of animation clips.

clips : Animation3DClips
Returns: int

fromModelAnimations anims

Full Usage: fromModelAnimations anims

Parameters:
Returns: Animation3DClips

Create a clip set from an array of loaded ModelAnimation values.

Use this after loading animations with Raylib.LoadModelAnimations. The ModelAnimation values must be copied to an array before passing — LoadModelAnimations returns a Span which cannot be stored directly.

anims : ModelAnimation[]
Returns: Animation3DClips

isEmpty clips

Full Usage: isEmpty clips

Parameters:
Returns: bool
Modifiers: inline

Check if the clip set has no animations.

clips : Animation3DClips
Returns: bool

names clips

Full Usage: names clips

Parameters:
Returns: string[]

Get the list of animation names in this clip set.

clips : Animation3DClips
Returns: string[]

tryGetClipIndex name clips

Full Usage: tryGetClipIndex name clips

Parameters:
Returns: int voption
Modifiers: inline

Try to get the index for an animation name.

Use at load time to resolve animation names to indices for zero-allocation playback.

name : string
clips : Animation3DClips
Returns: int voption

Type something to start searching.