Can't animate custom property
"Carousselasset" is a custom ScriptableObject.
I'm not using any custom inspector or custom propertydrawer here. There isn't any fancy get or set accessor, it's juts a good plain old:
public class CarouselRenderer : MonoBehaviour {
public Transform Reference;
public float somefloat;
public Carousel carouselasset;
}
Even if I press the 'reccord' button, I still can't animate this very property. I have other custom classes in that project not all scriptableobject, and none of them will animate.
Answer by vjyourself · Jul 30, 2017 at 04:39 PM
I have the same issue. What I found out so far, if you have a custom class ( Serializable ) it shows up in the inspector, but not in the animator, however if you can do the same as a struct, all the properties are visible, and animatable separately.
Kept on searching, but haven't found any official documentation why only structs work in the animator.
Thanks so much for the tip on making the classes structs!!
Answer by ofusion · Oct 10, 2017 at 12:31 PM
I find the same problem and hope someone can give a solution for it
Your answer
Follow this Question
Related Questions
Why can't I set an Animation reference in a Scriptable Object instance? 1 Answer
Dijkstra: How are calculations done by custom classes treated by Unity? 0 Answers
How do I add unique effects to scriptable-object-based abilities? 0 Answers
Offset Reload Animation to Fit New Model 0 Answers
Can unity animate 3D objects? 0 Answers