Unity-Technologies / Animation-Instancing

This technique is designed to instance Characters(SkinnedMeshRender).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attachment: Only one unit in scene gets the attachment

dnai92 opened this issue · comments

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

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

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 :-)

You're welcome. 😃