Posts

Showing posts with the label HowToUse

About bone duplication

Image
Costume bones are automatically added to the skeleton. How to use Prepare an item fbx containing a new bone. Specify items in the CostumeBuilder Inspector. Notes on instantiating items Bones that do not exist in the skeleton are duplicated. Bones that already exist in the skeleton are not duplicated and are ignored.

How to use the mask

Image
A mask is like the name of a display location. When you add an item, existing items with the same mask are hidden. This is useful for switching the display of items by location. How to use Specify the default item and mask. If additional items have the same mask, the default item is not displayed. Specify additional items and masks. Additional items are always displayed. Use from script An example using a mask. Example.cs using UnityEngine; using QCostume; public class Example : MonoBehaviour {     public CostumeBuilder builder;     public GameObject hair;     public GameObject tops;     public GameObject bottoms;     public GameObject dress;     void Start()     {         // Add default items.        builder.defaultItems.Add(new CostumeItem(hair, "HAIR"));         builder.defaultItems.Add(new CostumeItem(tops, "TOPS"));  ...