Hello friends of unity3D, sorry, I'm a programmer but mainly java and PHP and I'm creating a small game of two soldiers that shoot something simple but I need the shooting effect to be seen when shooting, how could I do that in unity?
Note: I already saw your docs but I can't find it, someone could send me a link at least where it is
Excuse me, I'm new to Unity.
When you say "library or script for effects" you may be looking for the ParticleSystem .
The destruction is separate.
This in a Script for the player
Now the effect that appears in the code is a prefab of a particular system, for example it could be a sequence of Sprite ect. I leave you where to look:
https://www.youtube.com/results?q=particle+system+unity+prefab
This in the object that is shot or whatever, it is a simulation for destruction or when the shot hits it, in this case we use an enemy as an example.
Instantiate This function makes a copy of an object in a similar way to the Duplicate command in the editor.
This question is about Collider and the use of Tag ect is mentioned in case you have any questions, maybe it will help you.
The above is to create explosions ect.
I think that is what you mean when you say trigger effect, in fact the second code is to be used on something that moves, for example a bullet, which when it comes into contact with the enemy triggers an explosion.
Take the code as pseudocode, or as an idea.
On the other hand, I recommend that you watch one of the many videos about Unity on YouTube about some simple game or on the official Unity channel there are many videos that may be useful in the future.