1. 程式人生 > >Unity進階

Unity進階

相關文章閱讀:

一、Animations選項卡

 

我們回到Unity中,匯入紅色小人資源——然後在Animations資料夾中使用動畫剪輯。

首先,我們需要選中Crosshow人物模型,新增一個Animator Controller——在Asstes中,建立一個Animator Controller,命名為Player——關聯到Crosshow人物的Animator Controller上——可以開啟Animator 檢視產看。

 


二、Animations選項卡屬性介紹


1、Import Animation:匯入動畫,不勾選


2、Bake Animations:烘焙動畫,詳見提示

3、Anim.Compression:動畫壓縮  Off:不適用動畫壓縮  Keyframe:通過關鍵幀進行壓縮 Optimal:預設,Unity推薦使用,由Unity來確定使用那種方式壓縮,採取最優的方式。

選擇Optimal之後,會出現Rotation Error 旋轉誤差、 Position Error 位移誤差、 Scale Error、壓縮誤差 預設都是0.5 ,值越大,動畫越不精確

4、Clips:動畫剪輯列表包括:動畫剪輯的名字和動畫剪輯的啟示位置和動畫剪輯的結束位置。列表會更加完美資源的不同而不同。


5、動畫剪輯的屬性

Loop Time:動畫迴圈的

Root Transform Rotation:設定根變化,根動作的

Mirror:映象動畫

Additive Reference Po:一個參考姿勢