Open daenius opened 5 months ago
What are you using the UserData for? It seems a bit odd to set it every time you play something. I'd probably implement the get and set as extension methods and have some other script set it on each character on startup.
Am I allowed to post this on Asset Store or Itch.io at some point?
Feel free to do so if you think others will find it useful.
What are you using the UserData for? It seems a bit odd to set it every time you play something. I'd probably implement the get and set as extension methods and have some other script set it on each character on startup.
I had it originally to bind arbitrary Object
similar to setting up PlayableOutput
s, and the idea was this way you wouldn't need to do a clone/instantiate on the ScriptableObject
while still having different GameObject
s correctly access live values of something. You are right though because it turned out to be less useful than expected so I ended up getting rid of it shortly after xD As you described, I got more mileage out of having the subclasses take care of themselves with binding whatever they need.
As for sharing this later, how should I declare the assembly dependency for Animancer? Should I be depending on Lite or Pro?
I don't think the Asset Store has a way to specify optional dependencies so for my Platformer Game Kit I just said it needs Animancer at the start of the description.
I made a simple
ScriptableObject
for running any custom code alongside playing anITransition
similar to theAttackTransition
found in Platform Game Kit. It works the same way as Unity's stockStateMachineBehaviour
but for Animancer and I found it to be easier to work with thanks toAnimancerState
being a more useful data container than the stockAnimatorStateInfo
.An alternative to subclassing or rolling your own
ITransition
for times when you might not be able to do so. In my case, I find it useful for easily converting existingAnimatorController
s that came with a bunch ofStateMachineBehaviour
from a previous project or Asset Store to Animancer.Not sure where would be a good place to share this with the wider community. I'll post the core
ScriptableObject
class here first so you guys can review it. Am I allowed to post this on Asset Store or Itch.io at some point?