DOTween外掛程式常用點歸納

2021-09-12 23:30:50 字數 329 閱讀 2783

1.與transform相關的物件移動,旋轉,縮放

//position

transform.domove(終點座標,時長);------------單向移動transform.domovex()/transform.domovey()/transform.domovez();

transform.dolocalmove(終點座標,時長);

domove對應世界座標,所以結果是子物體受父物體影響。

dolocalmove對應本地座標,只作用當前物件,不對父物件其變化;

若沒有父物件,則完全一樣

//rotate

//sacle

DoTween外掛程式物體晃動

在網上有很多關於dotween外掛程式的移動旋轉等介紹 以下是外掛程式上的引用 public static tweener doshakerotation this transform target,float duration,vector3 strength,int vibrato 10,flo...

Dotween外掛程式的使用

一 移動方法!1 前往世界座標某個位置 3秒到達 transform.domove new vector3 4,3,0 3 剛才我做了乙個測試,就是不管你cube的位置在 是誰的子物體,我設的世界座標就是你還是乙個父物體的時候會到達的位置。2 本地座標上移動 transform.dolocalmov...

DoTween 動畫外掛程式簡單示例

1 dotween的靜態方法 dotween.to maskimage.color,tocolor maskimage.color tocolor,new color 0,0,0,0 2f 詳細分解 dotween.to maskimage.color 我們想改變的物件值 tocolor 每次dot...