跳到內容

Parameters

修改的時候可以使用哪些參數呢?

過渡條件可以使用官方數值,只需要在「動畫器-參數」(Animator-Parameters)添加與官方數值相同類型和名稱的參數即可。

在「動畫器」中添加參數有四種類型:

  • Float:浮點數,可以理解為小數。

  • Int:整數型,可以理解為整數。

  • Bool:布林值,只有「True」和「False」兩種取值。

  • Trigger:觸發器,和布林值很像,但只能被設為 true,一旦被過渡使用就會自動被設為 false(好像在 VRC 中沒用?)。

下表為 VRChat 數值類型(一個模型的「數值」上限為「256 bits」):

數值類型取值範圍儲存佔用備註
int0 ~ 2558 bitsUnsigned 8-bit int.
float-1.0 ~ 1.08 bitsSigned 8-bit minifloat
boolTrue or False1 bit

如果要做開關,動畫器-參數中的參數名稱與類型必須與 VRC 數值中一模一樣。

(以下表格中文為我自行翻譯,可能存在錯誤,僅翻譯可能有用或我曾使用過的參數)

Name (名稱)Description (描述)Type (類型)Sync (同步)
IsLocalTrue if the avatar is being worn locally, false otherwiseBoolNone
Viseme (嘴型)Oculus viseme index (0-14). When using Jawbone/Jawflap, range is 0-100 indicating volumeIntSpeech
VoiceMicrophone volume (0.0-1.0)FloatSpeech
GestureLeft (左手手勢)Gesture from L hand control (0-7)IntIK
GestureRight (右手手勢)Gesture from R hand control (0-7)IntIK
GestureLeftWeightAnalog trigger L (0.0-1.0)†FloatIK
GestureRightWeightAnalog trigger R (0.0-1.0)†FloatIK
AngularYAngular velocity on the Y axisFloatIK
VelocityX (X 軸方向速度)Lateral move speed in m/sFloatIK
VelocityY (Y 軸方向速度)Vertical move speed in m/sFloatIK
VelocityZ (Z 軸方向速度)Forward move speed in m/sFloatIK
Upright (站立程度)How “upright” you are. 0 is prone, 1 is standing straight upFloatIK
Grounded (地面)True if player touching ground (若跳躍則為 false)BoolIK
SeatedTrue if player in stationBoolIK
AFKIs player unavailable (HMD proximity sensor / End key)BoolIK
Expression1 – Expression16User defined param, Int (0255) or Float (-1.01.0)Int / FloatIK or Playable
TrackingTypeSee description belowIntPlayable
VRModeReturns 1 if the user is in VR, 0 if they are notIntIK
MuteSelfReturns true if the user has muted themselves, false if unmutedBoolPlayable
InStationReturns true if the user is in a station, false if notBoolIK

用於製作手勢觸發動畫。

Index (數值)Gesture (手勢)PC 按鍵
0Neutral (自然)Shift+F1
1Fist (握拳)Shift+F2
2HandOpen (張開手)Shift+F3
3fingerpoint (指)Shift+F4
4Victory (勝利)Shift+F5
5RockNRoll (搖滾)Shift+F6
6HandGun (手槍)Shift+F7
7ThumbsUp (點讚)Shift+F8

註:PC 按鍵:左 Shift 為左手,右 Shift 為右手。

嘴型參考:Viseme Reference: Unity | Oculus Developers

可用於製作說話觸發動畫。

Viseme ParameterViseme
0sil
1PP
2FF
3TH
4DD
5kk
6CH
7SS
8nn
9RR
10aa
11E
12ih
13oh
14ou