Animated GLB Models
Play animations from streamed GLB/XRG models using the SDK's hybrid animation system.
Last updated
Was this helpful?
Was this helpful?
// Wait for load, then control animations
streamingModel.SetLoadedCallback(() =>
{
streamingModel.PlayAnimation("Idle");
streamingModel.SetAnimationFloat("Speed", 1.0f);
streamingModel.SetAnimationTrigger("Jump");
});
// Swap controller at runtime
streamingModel.RuntimeAnimatorController = newController;