Game Development Community

How to drag and drop from ObjectView to 3D space?

by Scott Peal · in General Discussion · 08/29/2009 (10:07 pm) · 2 replies

Has anyone got sample code or a resource pointer to how to do a drag and drop from an ObjectView control from a GUI onto the 3D scene space? I found the code to do a drag and drop from the GUI Library Control Palette to a GUI (guiEditorPalette.ed.cs), that seems to work with GUI type controls and not 3D objects.

Much appreciated!

#1
08/31/2009 (5:42 am)
I was under the impression that the RTS pack would have an example script on how to do this. But there is something I know of that has done this. It was part of AFX pack 2. Perhaps you could speak with Jeff Faust to get an idea?
#2
08/31/2009 (7:36 am)
I imagine that a GuiObjectView would provide a callback for 'on mouse down' events? I'd look into that. You'd need to figure out how to get an event for releasing the mouse in the world view, and create a character at the appropriate spot.