4.3增加了不少2D功能,然后实在没有找到有人分享,在国外查资料研究一下午然后给个简单的教程 ================================================================================= 今天我要说的是SpriteRenderer,这个在U3D的2D模式非常有用,现在就来说下怎么修改颜色 using UnityEngine; using System.Collections; //-----------------
Ok, so I'm sorry but most of these answers are incomplete or have some minor bug in them. The very complete answer from @austyn-mahoney is correct and the source for this answer, but it's complicated and you probably just want to style a switch. 'Sty