hai-vr / av3-animator-as-code

Generate animator layers and animations from a fluent builder syntax. Initially designed for use in VRChat, this is now a generic package that does not require it.
https://docs.hai-vr.dev/docs/products/animator-as-code
MIT License
190 stars 14 forks source link

Add functionality to keep track of generated layers and remove them #14

Closed 1inguini closed 2 years ago

1inguini commented 2 years ago

RemovePreviousLayers() in AacFlBase will remove generated layers. close #13

1inguini commented 2 years ago

Merging this pull request is unnecessary if you decide to merge pull request #15.

hai-vr commented 2 years ago

AAC is not meant to hold state (and nor return state) between different creation/deletion stages, it is an object that is meant to be instantiated and discarded immediately after it has been used, not kept around in memory nor across sessions.

The implementation of this PR only seems to be usable during one session where a reference to the AAC object is preserved.

hai-vr commented 2 years ago

Described in further detail in #13