- Home /
Expose a C# property for Animation Curve
I want to animate a property(not a field) using Mecanim, however it seems like properties aren't exposed when trying to add a new Animation Curve. Is there a workaround for it?
The reason for it should be a property is because I need to invalidate the component.
Thanks,
I don't think you can expose properties in the animation window. I guess you could make a public field and adjust that value, but then in Update() you'd sync the field and the property.
I didn't want to spam Invalidate() on Update() but I think I have no choice. The best I can do is add bool flag and set it on/off using the animation system to know whether to invalidate, but the Update() will still be there
Your answer
Follow this Question
Related Questions
Animation Events and Mecanim 2 Answers
Animator Jerky Animations 0 Answers
How to Change the collider position while playing animation? 1 Answer
Editing mecanim animation from script 0 Answers