Game Development Community

Missing unMount Object function from GuiObjectView

by Playware · in Torque Game Engine Advanced · 12/02/2008 (8:54 pm) · 3 replies

Hi,

I am using TGEA 1.7.1 and having some problem with GuiObjectView control. There is function 'setModel' instead of 'setObject' from previous build. In previous build there was a function 'unMountObject' to unMount from GuiObjectView. here actual problem starts.


In new 1.7.1 version, unMounting function from GuiObjectView if not defined. How we can get it work? Anybody has any idea or some patch of code , so I can use it to work.



Thanks.

#1
12/03/2008 (3:53 am)
I've modified the GuiObjectView code to support multiple mount points (as the stock version only allows you to mount a single object at a time). I don't have the code in front of me, but IIRC you could create a console function that sets the mMountedObject to NULL. I believe the ::renderWorld() function checks for that to render the object. Tell me if that doesn't work; I'll look at it further.
#2
12/04/2008 (1:45 am)
Hi Mark,


I am very new to TGEA. I couldn't get your hint. If I can get modified code for GuiObjectView, so it can support multiple objects and unmount them also.



could you post GuiObjectView code modification. I shall be very thankfull to you.



Thanks.
#3
03/04/2009 (6:47 am)
Mark, I would like to ask you to at least tell me the concept behind making the GuiObjectView support multiple mount points, as I have tried several things and nothing worked :(