S Shanmukh Member Jan 31, 2021 #1 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.
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.
Andrew Well-known member Feb 1, 2021 #2 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.
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.