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

Setup Animator for a Gun

You can retrieve gun properties by attaching Animator component for GameObject, that has been assigned as Model in Guns data.

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)