Deactivate Muzzle flash

Shanmukh

Member
I am using a sniper gun UI. when I use aim and use the weapon, muzzle flash distracting the view. and some times gun also visible. how can i disable muzzle flash and gun mesh renderer when aim activates.
 
These can both be achieve using the state system.

For the muzzle flash, add a state to the weapon's ShootableWeapon component which sets the Muzzle Flash property to empty/"None".

For hiding the gun, you can add a state to the FirstPersonPerspectiveItem component and set the Position Offset so that the weapon goes off-screen.
 
Top