简体   繁体   中英

Animation not working in game as it is in the scene view

I'm trying to make an animation where the word contained in the middle of the screen has its letters that get highlighted one by one using an image overlay on which I increase the alpha from 0 to 0.5 over a short period.

My problem is, even though the animation is fine in the scene view and when previewed, the overlay image seems to be duplicated out of nowhere and always in the same place.

Those duplicates do not appear in the scene view but they do appear in the game view and I can see no reason for them to show up.

Here are screenshots from the scene and game view :

游戏视图中不需要的图像是两个大字母背景

没有出现的场景视图

EDIT : After more tests it is definitely an animation problem. The animation runs as it should in the scene view but on some letters, in the game view, it is misplaced and scaled differently.

Here are some more screenshots of what is going on :

Scene view 场景检视 Game view 游戏画面

Ok so this was kind of silly mistake. It was caused by az value on my animated object set to -1595. Setting it to 0 did the trick and the animation is now playing normally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM