API ReferenceSandbox
public sealed class Sandbox.Dresser : Sandbox.Component
Allows easily dressing a citizen or human in clothing
Constructors
Showing 1 constructors
public Dresser()
No results match this filter.
Methods
Showing 5 methods
public System.Threading.Tasks.ValueTask Apply()
public void CancelDressing()
If we're dressing in an async way - stop it.
public void Clear()
public void OnManualChange(float a, float b)
Called when Height, Age or Tint is changed
public void Randomize()
Make a random outfit
No results match this filter.
Properties
Showing 10 properties
public bool Sandbox.Dresser.ApplyHeightScale { get; set; }
Should we change the height too?
public Sandbox.SkinnedModelRenderer Sandbox.Dresser.BodyTarget { get; set; }
Who are we dressing? This should be the renderer of the body of a Citizen or Human
public System.Collections.Generic.List`1<Sandbox.ClothingContainer.ClothingEntry> Sandbox.Dresser.Clothing { get; set; }
public bool Sandbox.Dresser.IsDressing { get; set; }
True if we're dressing, in an async way
public float Sandbox.Dresser.ManualAge { get; set; }
public float Sandbox.Dresser.ManualHeight { get; set; }
public float Sandbox.Dresser.ManualTint { get; set; }
public bool Sandbox.Dresser.RemoveUnownedItems { get; set; }
When using `Sandbox.Dresser.ClothingSource.OwnerConnection`, strip any clothing items that are not owned in their Steam Inventory. Disable only if your game handles ownership checks itself.
public Sandbox.Dresser.ClothingSource Sandbox.Dresser.Source { get; set; }
Where to get the clothing from
public System.Collections.Generic.List`1<string> Sandbox.Dresser.WorkshopItems { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Dresser |