I am making a game with a sword in it, I want the sword to leave a mark on walls if it hits them. I have been trying to do this for weeks but I still can't do it.
PS.. do I need unity pro to do this?
if you need more info, feel free to ask.
Answer by AVividLight
Jun 08, 2011 at 03:24 AM
Well, I can't provide an answer, but... I think you could use OnCollisonEnter, and OnCollisionExit, to get the area, and use the line renderer to "draw" a sword mark.
-Hope I helped!
I will try it.
ps. thanks for your help. I am still tryinging to figure out your 2d game problem.
Alright, glad I could help!
I hope it works
Well, I can help you out with that... Does your sword have a collider?
If it does, tic the box "Trigger"
If not... well, add one, and do the above.
Can someone explain to me what is "Alright, glad I could help!" and "I hope it works" worth to be voted up???
Answer by Jess.Loboz
Mar 04, 2014 at 06:10 AM
I think you can do it by using particle system. Refer http:www.//catlikecoding.com/unity/tutorials/graphs/ example. They have done some similar things.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
4 People are following this question.
Achieving Bullet Holes
How do I make bullet marks?
Should I use a decal or particle system for bullet holes?
Bullet Mark Texturing offset too far