Skip to reading
3D Models & Video in GUIs

10. Play an embedded model animation

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

1. Add another 3D Model element for an animated asset, or use a separate GUI called animation_lab.

2. Set its ID to avatar_viewer and choose the Professor model asset.

3. In Type Settings, enable Play Model Animation.

4. Choose an actual imported clip from Animation. The example uses PCA_Nod.

5. Enable Loop Model Animation for a repeating showcase and leave Animation Speed at 1.

Figure 10. Play Model Animation and the Animation selector control the clip in this viewer.

The Animation dropdown is populated from AnimationPlayer clips found inside the loaded model. Wait for loading to finish before concluding that the list is empty.

Automatic means the first available non-RESET clip for each animation player. It does not mean the character’s gameplay Idle state. Select an explicit clip when the exact presentation matters.

Page 15 of 45Permalink
Go to page