Model
widget type65 methodsavailable in: camelot
CreateFrame("Model", …) makes one. It has every method of Frame, plus 65 of its own.
Inherits from
- Model · 65
- Frame · 126
- Region · 16
- ScriptRegion · 55
- ScriptRegionResizing · 13
- AnimatableObject · 3
- Object · 5
- FrameScriptObject · 21
The number is each type's own documented methods. A Model has all of them.
Methods
In the emulator: 33 implemented, 32 guessed.
| method | what it does | status |
|---|---|---|
AdvanceTime | Advances the model's animation. · by wowlua() | guessed |
ClearFog | Removes the model's fog. · by wowlua() | guessed |
ClearModel | Removes the model from the frame. · by wowlua() | implemented |
ClearTransform | Resets the model's transform. · by wowlua() | guessed |
GetCameraDistance | Returns the camera's distance from the model. · by wowlua(): number | guessed |
GetCameraFacing | Returns the camera's facing in radians. · by wowlua(): number | guessed |
GetCameraPosition | Returns the camera's position. · by wowlua(): (number, number, number) | guessed |
GetCameraRoll | Returns the camera's roll in radians. · by wowlua(): number | guessed |
GetCameraTarget | Returns the point the camera looks at. · by wowlua(): (number, number, number) | guessed |
GetDesaturation | Returns how strongly the model is desaturated. · by wowlua(): number | guessed |
GetFacing | Returns the offset of the rotation angle. · warcraft.wiki.gg ↗(): number | guessed |
GetFogColor | Returns the color of the model's fog. · by wowlua(): (number, number, number, number) | guessed |
GetFogFar | Returns the distance where the model's fog ends. · by wowlua(): number | guessed |
GetFogNear | Returns the distance where the model's fog begins. · by wowlua(): number | guessed |
GetLight | Returns whether the model is lit and its light settings. · by wowlua(): (boolean, ModelLight) | guessed |
GetModelAlpha | Returns the model's alpha. · by wowlua(): number | guessed |
GetModelDrawLayer | Returns the model's draw layer and sublevel. · by wowlua(): (DrawLayer, number) | guessed |
GetModelFileID | Returns the file ID associated with the currently displayed model. · warcraft.wiki.gg ↗(): number | guessed |
GetModelScale | Returns the model's scale. · by wowlua(): number | guessed |
GetPaused | Whether the model's animation is paused. · by wowlua(): boolean | guessed |
GetPitch | Returns the model's pitch. · by wowlua(): number | guessed |
GetPosition | Returns the model's position. · by wowlua(): (number, number, number) | guessed |
GetRoll | Returns the model's roll. · by wowlua(): number | guessed |
GetShadowEffect | Returns the strength of the model's shadow effect. · by wowlua(): number | guessed |
GetViewInsets | Returns the insets of the model's view from the frame's edges. · by wowlua(): (number, number, number, number) | guessed |
GetViewTranslation | Returns the offset of the model's view. · by wowlua(): (number, number) | guessed |
GetWorldScale | Returns the model's world scale. · by wowlua(): number | guessed |
HasAttachmentPoints | Whether the model has attachment points. · by wowlua(): boolean | guessed |
HasCustomCamera | Whether the model uses a custom camera. · by wowlua(): boolean | guessed |
IsUsingModelCenterToTransform | Whether transforms use the model's center as their origin. · by wowlua(): boolean | implemented |
MakeCurrentCameraCustom | Turns the model's current camera into a custom camera that can be changed. · by wowlua() | guessed |
ReplaceIconTexture | Replaces the icon texture shown on the model. · by wowlua(asset: FileAsset) | guessed |
SetCamera | Selects a predefined camera. · warcraft.wiki.gg ↗(cameraIndex: number) | implemented |
SetCameraDistance | Sets the camera's distance from the model. · by wowlua(distance: number) | implemented |
SetCameraFacing | Sets the camera's facing. · by wowlua(radians: number) | implemented |
SetCameraPosition | Sets the camera's position. · by wowlua(positionX: number, positionY: number, positionZ: number) | implemented |
SetCameraRoll | Sets the camera's roll. · by wowlua(radians: number) | implemented |
SetCameraTarget | Sets the point the camera looks at. · by wowlua(targetX: number, targetY: number, targetZ: number) | implemented |
SetCustomCamera | Switches the model to a custom camera. · by wowlua(cameraIndex: number) | implemented |
SetDesaturation | Sets how strongly the model is desaturated. · by wowlua(strength: number) | implemented |
SetFacing | Rotates the displayed model for the given angle in counter-clockwise direction. · warcraft.wiki.gg ↗(facing: number) | implemented |
SetFogColor | Sets the color used for the fogging in the model frame. · warcraft.wiki.gg ↗(colorR: number, colorG: number, colorB: number, a: number?) | implemented |
SetFogFar | Sets the far clipping plane for fogging. · warcraft.wiki.gg ↗(fogFar: number) | implemented |
SetFogNear | Sets the near clipping plane for fogging. · warcraft.wiki.gg ↗(fogNear: number) | implemented |
SetGlow | Sets the model's glow. · by wowlua(glow: number) | implemented |
SetGradientMask | Sets a gradient mask on the model. · by wowlua(grad0: number, grad1: number, grad2: number, grad3: number) | implemented |
SetLight | Specifies model lighting. · warcraft.wiki.gg ↗(enabled: boolean, light: ModelLight) | implemented |
SetModel | Sets the model to display a certain mesh. · warcraft.wiki.gg ↗(asset: string, noMip: boolean) | implemented |
SetModelAlpha | Sets the model's alpha. · by wowlua(alpha: number) | implemented |
SetModelDrawLayer | Sets the model's draw layer. · by wowlua(layer: DrawLayer) | implemented |
SetModelScale | Sets the model's scale. · by wowlua(scale: number) | implemented |
SetParticlesEnabled | Sets whether the model shows particle effects. · by wowlua(enabled: boolean) | implemented |
SetPaused | Pauses or resumes the model's animation. · by wowlua(paused: boolean) | implemented |
SetPitch | Sets the model's pitch. · by wowlua(pitch: number) | implemented |
SetPosition | Positions a model relative to the bottom-left corner. · warcraft.wiki.gg ↗(positionX: number, positionY: number, positionZ: number) | implemented |
SetRoll | Sets the model's roll. · by wowlua(roll: number) | implemented |
SetSequence | Sets the animation-sequence to be played. · warcraft.wiki.gg ↗(sequence: number) | implemented |
SetSequenceTime | Plays one of the model's animations from the given time. · by wowlua(sequence: number, timeOffset: number) | implemented |
SetShadowEffect | Sets the strength of the model's shadow effect. · by wowlua(strength: number) | implemented |
SetTransform | Sets the model's position, rotation and scale. · by wowlua(translation: Vector3DMixin?, rotation: Vector3DMixin?, scale: number?) | implemented |
SetUseGBuffer | Sets whether the model renders through the G-buffer. · by wowlua(useGBuffer: boolean) | implemented |
SetViewInsets | Sets the insets of the model's view from the frame's edges. · by wowlua(left: number, right: number, top: number, bottom: number) | implemented |
SetViewTranslation | Sets the offset of the model's view. · by wowlua(x: number, y: number) | implemented |
TransformCameraSpaceToModelSpace | Converts a position from camera space to model space. · by wowlua(cameraPosition: Vector3DMixin): Vector3DMixin | guessed |
UseModelCenterToTransform | Sets whether transforms use the model's center as their origin. · by wowlua(useCenter: boolean) | guessed |
sources
Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.