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

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

Description

@nmpollak

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions