Unity设置物体旋转
int time = 1;
void Update()
{
time++;
this.GetComponent<RectTransform>().rotation = Quaternion.Euler(0, 0, time);
}
void OnDestroy()
{
time = 0;
}
本文来自博客园,作者:艾孜尔江,转载请注明原文链接:https://www.cnblogs.com/ezhar/p/13128979.html