The unity tutorials are a great place to start, but here is another resource: I would highly recommend following some you tube tutorials to get familiar with this medium. And no offence intended but judging by your questions I am thinking that you are very new to this. From there you can assign that prefab to your script. Drag and drop that object from your hierarchy into your project, that action creates a prefab. You should now have an object in your scene that looks like your muzzle flash on two sides. Texture the planes with a material in unity that has your flash texture. Bring that object into unity and drop it in your scene. Group those two items and export the group. Sufficient, duplicate that, flip it around 180 so that there are two planes facing out (BTW two sides because unity always uses back face culling). Just a simple square, 4 sided plane with be Create a plane not in unity because unity creates planes with a ton of unnecessary geometry. I'm assuming this is a 3D game but anyway. So what you will want to do is create a 2 sided plane. This was a awesome frustrating experience. Not a human animation, or a tank animation, just a simple little tiny muzleflash. I show you how I did it and is NOT WORKING!!!! When I move the red line to play the frames, the muzzleflash stay open, and in the end is off. I added 2 Keyframes! #1 is enabled from mesh rendere checkbox, #2 is disabled. Inside Animation window select: Add Property - Mesh Renderer - EnabledÄouble click inside track to add keyframes. I open: Main menu- Window - Animation window. I created a simple plan, position it in front of the gun, I added component "Animator"(not animation!) to the plan. It is extremely complicated with the Animator window or the new upgraded functions in the later version of Unity. How do I animate a muzzle flash for a gun shot?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |