Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViroAnimations clear dictionary #146

Open
rafthedeveloper opened this issue Jan 20, 2018 · 1 comment
Open

ViroAnimations clear dictionary #146

rafthedeveloper opened this issue Jan 20, 2018 · 1 comment

Comments

@rafthedeveloper
Copy link

From my understanding ViroAnimations and ViroMaterials, both have their own respective dictionaries.

Any way to clear them out or edit an existing animations?

@dthian
Copy link
Member

dthian commented Jan 22, 2018

Unfortunately, we can't clear out existing animations or materials at the moment. We are aware of this issue and have plans to work on it soon.

However, you should be able to replace existing animation / materials by it's corresponding name. Simply call ViroAnimations.registerAnimations() or ViroMaterials.createMaterials() with the new definition of the material or animation you wish to overwrite with.

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

No branches or pull requests

2 participants