Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-01-21, 02:06 PM   #1
Vampyr78
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: May 2016
Posts: 10
How to setup ModelScene.

Does anyone know how do you setup ModelScene widget to actually display actor's model. I can't find any useful information. I have this code and it doesn't show anything apart from backdrop.

Code:
frame.actor = frame:CreateActor()
frame:SetWidth(150)
frame:SetHeight(200)
frame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", 
		   edgeFile = "Interface/Tooltips/UI-Tooltip-Border", 
		   tile = true,
		   tileSize = 16,
		   edgeSize = 16, 
		   insets = {left = 1,
				 right = 1,
				 top = 1,
				 bottom = 1}}) 
frame:SetBackdropColor(0, 0, 0, 1)
frame:Show()
frame.actor:SetModelByUnit("player", false, true)
frame.actor:Show()
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How to setup ModelScene.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off