Summary

Holds a collection of clothing items. Won't let you add items that aren't compatible.

Constructors

ClothingContainer

Fields

Clothing A list of clothing items the avatar is wearing

Properties

Age The avatar's age. Default is 0.0f. We'll pick a skin based on this.
DisplayName A user set name for this setup
Height The avatar's height. Default is 0.5f.
PrefersHuman If true, this avatar prefers to use a human model when possible
Tint For the citizen the skin color is dynamic, based on a gradient. This is 0-1.

Methods

Add Add clothing item
AddRange
Apply Dress a skinned model renderer with an outfit
Deserialize Deserialize from Json
FindEntry Find a clothing entry matching this clothing item
GetBodyGroups Return a list of bodygroups and what their value should be
Has Returns true if we have this clothing item
Normalize Restrict things like Height to their sensible limits
Reset Clear the outfit from this model, make it named
Serialize Serialize to Json
Toggle Add a clothing item if we don't already contain it, else remove it

Static Methods

CreateFromJson Create the container from json definitions
CreateFromLocalUser Create the container from the local user's setup
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.