ClothingContainerclass
Holds a collection of clothing items. Won't let you add items that aren't compatible.
Constructors1
Showing 1 constructors
public ClothingContainer()
No results match this filter.
Methods21
Showing 21 methods
public void AddRange(System.Collections.Generic.IEnumerable`1<Sandbox.ClothingContainer.ClothingEntry> clothing)
| Parameter | Type | Description |
|---|---|---|
| clothing | IEnumerable<ClothingEntry> | — |
void—public void Apply(Sandbox.SkinnedModelRenderer body)
Dresses a body with this outfit and appearance without downloading missing clothing.
Obsolete: Use Dresser.UpdateAppearance and Dresser.Apply instead.
| Parameter | Type | Description |
|---|---|---|
| body | SkinnedModelRenderer | — |
void—public System.Threading.Tasks.Task ApplyAsync(Sandbox.SkinnedModelRenderer body, System.Threading.CancellationToken token)
Dresses a body with this outfit and appearance, downloading missing clothing.
Obsolete: Use Dresser.UpdateAppearance and Dresser.ApplyAsync instead.
| Parameter | Type | Description |
|---|---|---|
| body | SkinnedModelRenderer | — |
| token | CancellationToken | — |
Task—public Sandbox.GameObject ApplyDeforms(Sandbox.SkinnedModelRenderer body, bool enabled = True)
Updates deforms without rebuilding clothing. Returns the prefab instance, if the model supports one.
Obsolete: Use Dresser.UpdateAppearance instead.
| Parameter | Type | Description |
|---|---|---|
| body | SkinnedModelRenderer | — |
| enabled = True | bool | — |
public void ApplyEyes(Sandbox.SkinnedModelRenderer body)
Updates eye render attributes on the body and clothing without rebuilding the outfit. Materials using the procedural eye shader consume these per-renderer values.
Obsolete: Use Dresser.UpdateAppearance instead.
| Parameter | Type | Description |
|---|---|---|
| body | SkinnedModelRenderer | — |
void—public static Sandbox.ClothingContainer CreateFromConnection(Sandbox.Connection connection, bool removeUnowned = True)
Create the container from a connection's avatar, filtered to only items they are verified to own.
| Parameter | Type | Description |
|---|---|---|
| connection | Connection | — |
| removeUnowned = True | bool | — |
public static Sandbox.ClothingContainer CreateFromJson(string json)
Create the container from json definitions
| Parameter | Type | Description |
|---|---|---|
| json | string | — |
public static Sandbox.ClothingContainer CreateFromLocalUser()
Create the container from the local user's setup, stripped of any unowned items.
public void Deserialize(string json)
Deserialize from Json
| Parameter | Type | Description |
|---|---|---|
| json | string | — |
void—public Sandbox.ClothingContainer.ClothingEntry FindEntry(Sandbox.Clothing clothing)
Find a clothing entry matching this clothing item
| Parameter | Type | Description |
|---|---|---|
| clothing | Clothing | — |
public bool Has(Sandbox.Clothing clothing)
Returns true if we have this clothing item
| Parameter | Type | Description |
|---|---|---|
| clothing | Clothing | — |
bool—public void Normalize()
Restrict things like Height to their sensible limits
void—public void Reset(Sandbox.SkinnedModelRenderer body)
Removes clothing and resets the body's height, material group and bodygroups.
Obsolete: Use Dresser.Clear to remove clothing while preserving appearance.
| Parameter | Type | Description |
|---|---|---|
| body | SkinnedModelRenderer | — |
void—public string Serialize()
Serialize to Json
string—No results match this filter.
Properties13
Showing 13 properties
public float Sandbox.ClothingContainer.Age { get; set; }
The avatar's age. Default is 0.0f. We'll pick a skin based on this.
float—public float Sandbox.ClothingContainer.ChestSize { get; set; }
Normalized chest deformation, from zero to one.
float—public float Sandbox.ClothingContainer.ChinSize { get; set; }
Normalized chin deformation, from zero to one.
float—public string Sandbox.ClothingContainer.DisplayName { get; set; }
A user set name for this setup
string—public float Sandbox.ClothingContainer.EyeAlign { get; set; }
Normalized horizontal iris alignment. The midpoint preserves the material's centre.
float—public float Sandbox.ClothingContainer.EyeColor { get; set; }
Position on Dresser's eye colour gradient, from zero to one.
float—public float Sandbox.ClothingContainer.HeadShape { get; set; }
Normalized head deformation, from zero to one.
float—public float Sandbox.ClothingContainer.Height { get; set; }
The avatar's height. Default is 0.5f.
float—public float Sandbox.ClothingContainer.NeckSize { get; set; }
Normalized neck deformation, from zero to one.
float—public float Sandbox.ClothingContainer.NoseSize { get; set; }
Normalized nose deformation, from zero to one.
float—public bool Sandbox.ClothingContainer.PrefersHuman { get; set; }
If true, this avatar prefers to use a human model when possible
bool—public float Sandbox.ClothingContainer.Tint { get; set; }
For the citizen the skin color is dynamic, based on a gradient. This is 0-1.
float—public float Sandbox.ClothingContainer.WaistSize { get; set; }
Normalized waist deformation, from zero to one.
float—No results match this filter.