Dresserclass
Creates clothing renderers for the outfit owned by this Dresser.
Constructors1
Showing 1 constructors
public Dresser()
No results match this filter.
Methods10
Showing 10 methods
public System.Threading.Tasks.Task ApplyAsync(Sandbox.ClothingContainer clothing, System.Threading.CancellationToken token = null)
Applies an outfit immediately and downloads missing items. Completion uses the current appearance properties, including edits made while the download was pending. A newer outfit request, retargeting or destruction cancels this request.
| Parameter | Type | Description |
|---|---|---|
| clothing | ClothingContainer | — |
| token = null | CancellationToken | — |
Task—public void CancelDressing()
If we're dressing in an async way - stop it.
void—public void Clear()
Removes the outfit while preserving the current appearance.
void—public static Sandbox.Dresser GetOrCreate(Sandbox.SkinnedModelRenderer body)
Finds the Dresser for a body or adds a transient, manually controlled one. Reuse the returned component for outfit requests and live appearance edits.
| Parameter | Type | Description |
|---|---|---|
| body | SkinnedModelRenderer | — |
public void OnManualChange(float a, float b)
Called when Height, Age or Tint is changed
| Parameter | Type | Description |
|---|---|---|
| a | float | — |
| b | float | — |
void—public void Randomize()
Make a random outfit
void—No results match this filter.
Properties19
Showing 19 properties
public bool Sandbox.Dresser.ApplyHeightScale { get; set; }
Should we change the height too?
bool—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 float Sandbox.Dresser.ChestSize { get; set; }
Normalized chest deformation. Clothing loads initialize this value; subsequent edits control the model.
float—public float Sandbox.Dresser.ChinSize { get; set; }
Normalized chin deformation. Clothing loads initialize this value; subsequent edits control the model.
float—public System.Collections.Generic.List`1<Sandbox.ClothingContainer.ClothingEntry> Sandbox.Dresser.Clothing { get; set; }
public float Sandbox.Dresser.EyeAlign { get; set; }
Citizen-only horizontal iris alignment from zero to one. The midpoint preserves Iris Center. This rotates the iris projection around the eyeball without changing the eye bones.
float—public float Sandbox.Dresser.EyeColor { get; set; }
Position on the eye colour gradient, from zero to one. Local and owner avatars populate this automatically.
float—public static Sandbox.Gradient Sandbox.Dresser.EyeColorGradient { get; set; }
Shared sRGB iris palette for dressing and the avatar editor, starting at Citizen's brown. Browns occupy the first 15%, leaving room for hazel, green, teal, blue and grey.
public float Sandbox.Dresser.HeadShape { get; set; }
Normalized head deformation. Clothing loads initialize this value; subsequent edits control the model.
float—public bool Sandbox.Dresser.IsDressing { get; set; }
True if we're dressing, in an async way
bool—public float Sandbox.Dresser.ManualAge { get; set; }
float—public float Sandbox.Dresser.ManualHeight { get; set; }
float—public float Sandbox.Dresser.ManualTint { get; set; }
float—public float Sandbox.Dresser.NeckSize { get; set; }
Normalized neck deformation. Clothing loads initialize this value; subsequent edits control the model.
float—public float Sandbox.Dresser.NoseSize { get; set; }
Normalized nose deformation. Clothing loads initialize this value; subsequent edits control the model.
float—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.
bool—public Sandbox.Dresser.ClothingSource Sandbox.Dresser.Source { get; set; }
Where to get the clothing from
public float Sandbox.Dresser.WaistSize { get; set; }
Normalized waist deformation. Clothing loads initialize this value; subsequent edits control the model.
float—public System.Collections.Generic.List`1<string> Sandbox.Dresser.WorkshopItems { get; set; }
List<string>—No results match this filter.