Unity-Technologies / Animation-Instancing

This technique is designed to instance Characters(SkinnedMeshRender).
Other
1.65k stars 301 forks source link

Attachment: Only one unit in scene gets the attachment #90

Open dnai92 opened 4 years ago

dnai92 commented 4 years ago

Hi,

the instancing works fine for my units. But only one of them gets the attachment. All the others have empty hands....

What I´m doing wrong?

Anmerkung 2020-05-12 155351

dnai92 commented 4 years ago

Okay I got it now! image But for some reason the attachments are not instanced and GPU Instancing is not working...

If I generade the animation with the attachment, only one unit gets the weapon... and Batching works... But why don´t the other unit gets the weapon? image

image

dnai92 commented 4 years ago

Hey Ashwin,

you are my hero!!!!! This little Code switching works perfect. Every attachment is visible and gets instanced.

Thank you so much, you´ve saved my little RTS game :-)

ashwin911 commented 4 years ago

You're welcome. 😃