unity3d - Attachment points -


i use models designed in blender, , need add attachment points special effects. mark point in hand of model (modified hand animations of course) can apply glow when needed. know how apply glow 3d point, need way point.

how do that?

there's couple ways sort of thing, approach best because it's easy tech artists interface (alls needs special name on object). can have top level character script scan children , objects naming convention specify.

foreach(transform child in gameobject.getcomponentsinchildren<transform>()) {     if( child.name == "attachmentpointorwhatever" ) {         myeffectsobject.transform.parent = child;         myeffectsobject.transform.localposition = vector3.zero;     } } 

this works because unity update bones' positions based on imported animation, effects object follow along point imported animation.

as far creating animation, i'm coming maya , 3ds max, idea should same blender: add bones attachment points , make sure they're bound model (or added skin weights or whatever term in blender). shouldn't have weights on vertices, need in bind set unity recognizes them part of animation , animates points.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -