Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Feature-Request: Add Animator Controller support in SDK #752

Open
apollak opened this issue Dec 12, 2021 · 0 comments
Open

Feature-Request: Add Animator Controller support in SDK #752

apollak opened this issue Dec 12, 2021 · 0 comments

Comments

@apollak
Copy link

apollak commented Dec 12, 2021

Hi,
After importing unity prefabs with animations to altspacevr-kits,
It would be great, if I would be able to trigger my triggers in the associated animation controller through MRE to allow the state engine to change the animation.

A very restricted simple approach could be something like this:

private box: MRE.Actor = null;

box = MRE.Actor.CreateFromLibrary(this.context,{resourceId : artifactID,....);

// animTrigger of Type AnimationControllerTrigger (I made that up :-))
const animTrigger = box.findAnimationTriggerByName("Door|Close");
animTrigger.trigger();   

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant