Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - chro

Pages: [1]
1
Support / Re: animating sprite.color
« on: January 22, 2013, 02:51:05 pm »
Thanks a lot for both replies, I'll mark this as solved.

I'm fairly new to the unity animation system (I'm used to doing everything in code). The motivation behind this was simply to prepare the workflow for a collaboration with an 'art guy'.So I wanted to offload as much as possible out of the code. but I can live with this :)

unikron: it seems it's correctly animating the Property since if I call build() in a LateUpdate() it does work correctly.

2
when you mean edit mode, do you mean pressing play in the editor vs a real build ? if that's the case you should probably have a look at the logs of the game (somewhere inside the build directory, can't remember where exactly). you might have some error message there. also try with a debug build maybe. worst come to worst, you can try to recreate your background from scratch and see what happens.

3
Support / [Solved] animating sprite.color
« on: January 21, 2013, 10:16:40 am »
hello, I'm trying to animate a sprite's color using unity's animation system.
Unfortunately it's not having any effect. I can see the color changing in the inspector but not in game. After some research it seems calling build() at the end of each frame on the sprite fixes it. I don't really like this solution as it forces me to have an extra script just to do that.
Is there  currently any cleaner way to achieve this ? (like an auto-invalidate flag).

thanks!

4
could it be that your camera is a child of your background object ? and so that it moves too when you move your background ?
also, if your camera is orthographic, translation along the z axis will not always have visual effect. (although you state that it is on the y axis).

Pages: [1]