class
Dresser
public sealed class Dresser : Component Allows easily dressing a citizen or human in clothing
Constructors
Dresser() Properties
| Name | Type | Description |
|---|---|---|
Source | ClothingSource | Where to get the clothing from |
RemoveUnownedItems | Boolean | When using OwnerConnection, strip any clothing items that are not owned in their Steam Inventory. Disable only if your game handles ownership checks itself. |
BodyTarget | SkinnedModelRenderer | Who are we dressing? This should be the renderer of the body of a Citizen or Human |
ApplyHeightScale | Boolean | Should we change the height too? |
ManualHeight | Single | |
ManualTint | Single | |
ManualAge | Single | |
Clothing | List<ClothingEntry> | |
WorkshopItems | List<String> | |
IsDressing | Boolean | True if we're dressing, in an async way |
Methods
Void CancelDressing() If we're dressing in an async way - stop it.
Void Clear() ValueTask Apply() Void Randomize() Make a random outfit
Void OnManualChange(Single a, Single b) Called when Height, Age or Tint is changed