Skip to content

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