CreatorPreview
constCreatorPreview:object
Defined in: client/api.d.ts:2788
Framing and posing for a creator preview. Independent of which UI is driving the session.
Type Declaration
Section titled “Type Declaration”freeze()
Section titled “freeze()”freeze(
frozen?):void
Pauses the avatar’s animation so it holds still. Does NOT stop a playIdle ability – that is a separate lane.
Parameters
Section titled “Parameters”frozen?
Section titled “frozen?”boolean
Defaults to true.
Returns
Section titled “Returns”void
playIdle()
Section titled “playIdle()”playIdle(
abilityClassPath,channel?):boolean
Holds a posing idle on the live avatar via the game’s own ability system – local only, not replicated. Returns whether it was QUEUED. The channel is released automatically when the session ends. Requires an active session.
Parameters
Section titled “Parameters”abilityClassPath
Section titled “abilityClassPath”string
An Able ability CLASS path ending _C.
channel?
Section titled “channel?”string
“FullBody” (default) or “PartialBody”.
Returns
Section titled “Returns”boolean
restoreCamera()
Section titled “restoreCamera()”restoreCamera():
void
Hands the view back to the normal player camera.
Returns
Section titled “Returns”void
rotate()
Section titled “rotate()”rotate(
deltaYaw):void
Turns the live avatar for inspection. Relative, so call it per input frame.
Parameters
Section titled “Parameters”deltaYaw
Section titled “deltaYaw”number
Degrees to turn the avatar by, relative.
Returns
Section titled “Returns”void
setCamera()
Section titled “setCamera()”setCamera(
frame):void
Points a spawned camera at the player and makes it the view target. Call restoreCamera() when done.
Parameters
Section titled “Parameters”Front-view framing on the live avatar; shift nudges it laterally so a side panel doesn’t cover it.
number
number
height?
Section titled “height?”number
pitch?
Section titled “pitch?”number
shift?
Section titled “shift?”number
Returns
Section titled “Returns”void