Shoot action no longer shows trail or hit vfx

Everything else seems to be working correctly, and I’ve gone through the code several times. Is there some reason that the vfx would just stop working?

The first things that come to mind are either the effect isn’t assigned, or is disabled in the prefab.

Is the bullet object being spawned? Pause the game while the bullet is flying, does it have a TrailRenderer inside?
Add some Debug.Log to see what your code is doing

The bullet prefab does not spawn, it also throws this error: Assets_Scripts\Actions\ShootAction.cs(16,49): warning CS0067: The event ‘ShootAction.OnShoot’ is never used

I changed the OnAnyShoot?.Invoke to OnShoot?.Invoke in the Shoot function and that seemed to solve the problem.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms