# Parameters 过渡的条件可使用官方数值,只需要在”动画器-参数”添加类型和名字与官方数值相同的参数即可 ## 一、数值类型 在”动画器“中添加参数有四种类型 - Float :浮点数,可以理解为小数 - Int :整数型,可以理解为整数 - Bool :布尔型,只有”True“和”False“两种取值 - Trigger :触发器,和布尔型很像,但只能被设为true,一旦被过渡使用就会自动被设为false(好像在VRC中没用?) 下表为VRChat数值类型(一个模型的“数值”上限为“256 bits”)
数值类型取值范围存储占用备注
int`0` ~ `255`8 bitsUnsigned 8-bit int.
float`-1.0` ~ `1.0`8 bitsSigned 8-bit [minifloat](https://en.wikipedia.org/wiki/Minifloat)
bool`True` or `False`1 bit
如果要做开关,动画器-参数中参数名字与类型要与VRC数值中一模一样 ## 二、官方数值总览 (以下表格中文为我自己翻译,可能会有错误,仅翻译可能有用或我用过的参数)
Name(名字)Description(描述)Type(类型)Sync(同步)
IsLocalTrue if the avatar is being worn locally, false otherwiseBoolNone
[Viseme](https://docs.vrchat.com/docs/animator-parameters#viseme-values)(口型)[Oculus viseme index](https://developer.oculus.com/documentation/unity/audio-ovrlipsync-viseme-reference) (`0-14`). When using Jawbone/Jawflap, range is `0-100` indicating volumeIntSpeech
VoiceMicrophone volume (`0.0-1.0`)FloatSpeech
[GestureLeft](https://docs.vrchat.com/docs/animator-parameters#gestureleft-and-gestureright-values)(左手手势)Gesture from L hand control (0-7)IntIK
[GestureRight](https://docs.vrchat.com/docs/animator-parameters#gestureleft-and-gestureright-values)(右手手势)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 (`0`–`255`) or Float (`-1.0`–`1.0`)Int / FloatIK or Playable
[TrackingType](https://docs.vrchat.com/docs/animator-parameters#trackingtype-parameter)See 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](https://developer.oculus.com/documentation/unity/audio-ovrlipsync-viseme-reference) 可用于制作说话触发动画
Viseme ParameterViseme
0`sil`
1`PP`
2`FF`
3`TH`
4`DD`
5`kk`
6`CH`
7`SS`
8`nn`
9`RR`
10`aa`
11`E`
12`ih`
13`oh`
14`ou`