addClothe
Adds a clothe item to the engine.
Heads Up!
This method do not add the clothes to the player, it only adds it to the clothes system. To add the clothes to the player, use player.addClothes
.
Syntax
engine.clothes.addClothe(item);
Parameters
Name | Type | Description |
---|---|---|
item | ClotheItem | The clothe item to add to the engine. |
Example
engine.clothes.addClothe({
id: 'beach-tshirt',
url: 'https://example.com/beach-tshirt.glb',
name: 'Beach T-Shirt',
masks: ['top'],
});
Available on: Client