25-02-2019, 07:45 AM
(24-02-2019, 07:50 AM)VrTech Wrote: Hi,
Is there any way to make a cloth for the character on runtime?
I want to instantiate my character in multiplayer.
Thank you.
It highly depends on how you're planning to set up cloth for your characters.
- Is it part of the same mesh as the character?
- Is it a separate mesh skinned to the same skeleton?
- Are you planning to allow multiple cloth objects to be switchable at runtime?
The basic idea is always to make a prefab out of your cloth, then at runtime instantiate it and set up any additional stuff (like parenting it to the appropriate transform). Cloth is like any other GameObject in Unity, so all rules that apply to prefabs apply to it too.