メインコンテンツまでスキップ

銃の Animator を設定する

銃の Model として指定している GameObject に Animator Component を付けることによって、銃の情報を Animator から取得することができます

Animator Parameters

Parameter NameTypeSyncedDescriptionVersion
IsPickedUpboolNoIs the gun picked up by local player?
IsPickedUpGlobalboolYesIs the gun picked up by anyone?0.6.0~
IsInSafeZoneboolSimulatedIs the gun inside of the SafeZone?0.6.0~
IsInWallboolSimulatedIs the gun obstructed by the collider?0.6.0~
IsLocalboolNoIs the gun controlled by local player?0.6.0~
IsVRboolYesIs the gun controlled by VR player?0.6.0~
HasBulletboolYesHas the bullet in chamber?
HasCockedboolYesHas the gun cocked?
IsShootingtriggerYesTurns on when shooting
IsShootingEmptytriggerYesTurns on when failing to shoot
SelectorTypeintNoFireMode enum
StateintYesGunState enum
TriggerintNoTriggerState enum0.6.0~
TriggerProgressfloatNoRaw analog trigger input that can be used to animate gun trigger
CockingProgressfloatSimulatedProgress of the pulling process of cocking (for some GunBehaviours)
CockingTwistfloatSimulatedProgress of the twisting process of cocking (for some GunBehaviours)