Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

Change enemy color when hit

$
0
0
Hi, this is my enemy: Enemy1 (gameobject with rigidbody, collider, AI scripts etc) -> Armature (child1) -> the mesh (skinned mesh renderer & material) (child2) so the question is... how i can change the color of the enemy material when i hit him? i have tried this... http://answers.unity3d.com/questions/16548/make-enemy-flash-when-hit.html but obviously does not work because the material is in a child, so how i can do it? or how i should do it? sorry for my english & thank you!

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>