(Not sure if this one should be in the Animation forum)
I noticed today that Textures, which are animatable when they are a property of a MonoBehaviour derived class, are not animatable when they are part of a struct.
For example, say we have the following:
[System.Serializable]
public struct StructWithAnimatableProperties {
public float structFloat;
public Vector2 structVector2;
public Vector3 structVector3;
public Vector4 structVector4;
public Texture structTexture;
public Texture2D structTexture2D;
}
public class TestStructAnimation : MonoBehaviour {
public float monoBehaviourFloat;
public Vector2 monoBehaviourVector2;
public Vector3 monoBehaviourVector3;
public Vector4 monoBehaviourVector4;
public Texture monoBehaviourTexture;
public Texture2D monoBehaviourTexture2D;
public StructWithAnimatableProperties myStruct;
}
All properties defined directly in the TestStructAnimation class are available for animation. All but the Textures in the struct are available:

Is there a way to get the struct’s Texture properties to be exposed to animation as well? It’d be a shame to break the design pattern of the project just for Textures
