Home  >  Article  >  Web Front-end  >  Bug_html/css_WEB-ITnose that appears in Animation in UGUI Screen Space-Camera mode

Bug_html/css_WEB-ITnose that appears in Animation in UGUI Screen Space-Camera mode

WBOY
WBOYOriginal
2016-06-24 11:41:32971browse

After modifying the previously made UI interface to Screen Space-Camera mode, I found that many buttons from Clone have become blurry. I checked and found that the Scale of the buttons has become 64!


But there is no problem in creating a new Button.


And when running, modifying Scale is invalid. No matter how you change it, it will change back to 64!

Check carefully and find the enlarged button, above It comes with Animator.


I thought of when I was making character skills before, I wanted to modify the size of a skill animation but couldn’t. I was told that the attribute settings in the animation would overwrite the settings in the code.

I think it’s a problem with the button animation.


Checking the button animation found that the button animation has 4 states


But only the Press state has Scale settings , the others are empty.


This is equivalent to us Clone a button in the code, but without setting the Scale.


After finding the cause, it will be easy to solve. Modify the button animation, add the Scale settings of the other three animations such as Normal, and set it to 1.




Save and run again, the bug has been resolved.

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn