# Sandbox.ClothingContainer

Holds a collection of clothing items. Won't let you add items that aren't compatible.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`

## Constructors

- [`ClothingContainer`](/api/Sandbox.ClothingContainer/.ctor)

## Fields

- [`Clothing`](/api/Sandbox.ClothingContainer/Clothing): A list of clothing items the avatar is wearing

## Properties

- [`Age`](/api/Sandbox.ClothingContainer/Age): The avatar's age. Default is 0.0f. We'll pick a skin based on this.
- [`DisplayName`](/api/Sandbox.ClothingContainer/DisplayName): A user set name for this setup
- [`Height`](/api/Sandbox.ClothingContainer/Height): The avatar's height. Default is 0.5f.
- [`PrefersHuman`](/api/Sandbox.ClothingContainer/PrefersHuman): If true, this avatar prefers to use a human model when possible
- [`Tint`](/api/Sandbox.ClothingContainer/Tint): For the citizen the skin color is dynamic, based on a gradient. This is 0-1.

## Methods

- [`Add`](/api/Sandbox.ClothingContainer/Add): Add clothing item
- [`AddRange`](/api/Sandbox.ClothingContainer/AddRange)
- [`Apply`](/api/Sandbox.ClothingContainer/Apply): Dress a skinned model renderer with an outfit. Doesn't download missing clothing.
- [`ApplyAsync`](/api/Sandbox.ClothingContainer/ApplyAsync): Dresses a skinned model with an outfit. Will apply all the clothes it can immediately, then download any missing clothing.
- [`CreateFromConnection`](/api/Sandbox.ClothingContainer/CreateFromConnection): Create the container from a connection's avatar, filtered to only items they are verified to own.
- [`CreateFromJson`](/api/Sandbox.ClothingContainer/CreateFromJson): Create the container from json definitions
- [`CreateFromLocalUser`](/api/Sandbox.ClothingContainer/CreateFromLocalUser): Create the container from the local user's setup, stripped of any unowned items.
- [`Deserialize`](/api/Sandbox.ClothingContainer/Deserialize): Deserialize from Json
- [`FindEntry`](/api/Sandbox.ClothingContainer/FindEntry): Find a clothing entry matching this clothing item
- [`GetBodyGroups`](/api/Sandbox.ClothingContainer/GetBodyGroups): Return a list of bodygroups and what their value should be
- [`Has`](/api/Sandbox.ClothingContainer/Has): Returns true if we have this clothing item
- [`Normalize`](/api/Sandbox.ClothingContainer/Normalize): Restrict things like Height to their sensible limits
- [`RemoveUnownedItems`](/api/Sandbox.ClothingContainer/RemoveUnownedItems): Removes any clothing items that require Steam inventory ownership but the local user doesn't own.
- [`Reset`](/api/Sandbox.ClothingContainer/Reset): Clear the outfit from this model, make it named
- [`Serialize`](/api/Sandbox.ClothingContainer/Serialize): Serialize to Json
- [`Toggle`](/api/Sandbox.ClothingContainer/Toggle): Add a clothing item if we don't already contain it, else remove it
