Does anybody know how to get access to PixelInset and Color properties on setting curve?
Here is what I try to do:
var scaleCurve = AnimationCurve(Keyframe(0.0, 0.0), Keyframe(1.0, 34.0) );
var clip = new AnimationClip();
clip.SetCurve("", GUITexture, "_pixelInset.width", scaleCurve );
clip.SetCurve("", GUITexture, "_Color.a", scaleCurve );
animation.AddClip(clip, "Resize");
animation.wrapMode = WrapMode.PingPong;
animation.Play("Resize");
that is just for test. I’ll add custom curve for each property…
So, what is propertyName for GUITexture? I tried various, but have no luck ![]()
Thanks for help.