Game Development Community

GuObjectView.setObject() not working in playGUI

by gamer · in Torque Game Engine · 03/28/2006 (7:15 pm) · 4 replies

I put a GUIObjectView inside the playGui,
then called QuickInvSlot.setObject("preview","GameTwo/data/shapes/crossbow/weapon.dts","","");
but the objectView is not populated with the image.why?
thanks

#1
03/29/2006 (3:24 am)
Is your guiObjectView instance in the editor named "QuickInvSlot"?
#2
03/29/2006 (10:04 am)
Yes it sure is
#3
03/29/2006 (10:22 am)
The guiObjectView instance is a child of a GameTSCtrl, is that a problem? Because if it's a child of a GuiBitMap then it works.
#4
03/29/2006 (3:03 pm)
Sounds like it is a problem. Just make a transparent png image and use that as a parent.