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

Animation Component - Sequence Inheritance #83

Closed
BenjaminHarding opened this issue Jul 16, 2014 · 1 comment
Closed

Animation Component - Sequence Inheritance #83

BenjaminHarding opened this issue Jul 16, 2014 · 1 comment
Milestone

Comments

@BenjaminHarding
Copy link
Contributor

Currently on Sprite GameObjects, sequences which exist on a Texture Atlas are auto-inherited by the Animation Component. This functionality, while nice, can potentially lead to creation of many unused Animation Objects on Sprites if there are a lot of sequences.

Proposed by @stupidlikeafox is to turn off this functionality by default (will still keep the functionality there) and instead to create a new method on the AnimationManager.

This new method would require a string to be passed, the AnimationManager would then create a new Animation for any Sequences (on the current TextureAtlas used by that GameObject) which names match the string.

BenjaminHarding added a commit that referenced this issue Feb 22, 2015
…f you tell it to play one it does not have.

Issue #83
@BenjaminHarding BenjaminHarding added this to the v1.3.0 milestone Feb 22, 2015
@BenjaminHarding
Copy link
Contributor Author

When the Animation Manager doesn't contain an animation which has been told to play (via methods such as play, switchTo, and playAt) it will now search its TextureAtlas's sequences for an matching name and auto inherit it.

Currently the Auto Inheritance is still turned on by default, so this will not have any performance enhancements for users using the vanilla version of the AnimationManager. But anyone who adding components themselves can see the enhancements.

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

No branches or pull requests

1 participant