unity ugui實現根據滑動目標旋轉SpinWithDrag

1、效果圖 2、原理和主要實現方法 一、獲取ugui中OnDrag事件,而後設置旋轉主要方法 transform.localRotation = Quaternion.Euler (0 , - eventData.delta.x * speed , 0) * transform.localRotation; 3、源碼奉上 一、加Q羣共同窗習進步 115136489 demo1 demo2
相關文章
相關標籤/搜索