Skip to content
Version 2.11.0
↓ Get the launcher

IWardrobePreview interface

A live 3D preview of the local player wearing an ARBITRARY saved outfit (region→fashionId), rendered by the game’s own UI-model pipeline into a render texture a RenderTextureHostElement displays. Unlike IEntityPortrait (which shows an entity’s CURRENT worn outfit), this dresses a fresh self model with the outfit you pass — for a wardrobe hover/click preview. The model is created asynchronously; Texture stays null for a few frames until the game delivers it.

public interface IWardrobePreview
name description
IsActive { get; } True while a preview subject is active (model created or being created).
Texture { get; } The boxed UnityEngine.Texture to display, or null while inactive / still loading.
Hide() Hide the preview and release the model back to the game’s pool.
Orbit(…) Rotate the preview subject. dx/dy are pointer-drag deltas in pixels (horizontal drag spins the model).
Pan(…) Pan the preview camera (shift+drag). dx/dy are pointer-drag deltas in pixels; the look-at point slides so different parts of the model can be framed.
SetViewport(…) Report the display box’s current pixel size so the preview sizes its render texture to match.
Show(…) Show a preview of self wearing outfit (region→fashionId; 0 = empty slot). A non-player id hides the preview instead.
Zoom(…) Zoom the preview camera. Positive delta moves closer (e.g. scroll-wheel up).