|
Hello, I was wondering if there is a way to place an image on a GUI of, say a sphere. And when the user clicks on the 'GUI Sphere' and then drags it onto the scene, an object sphere will follow the mouse until the user places it where ever? Is this possible? Is it a lot more harder than it sounds? About My Scene: I have a camera looking downwards to the scene, with a little GUI window to the left (where the objects/images will be placed. Would appreciate any help. Thanks VIDEO:: http://olliejones.com/GUIHelp.mov
(comments are locked)
|
|
Heres the full script:
Just replace the words in the button with a texture of your object so it looks like you're dragging stuff. Okay, I gave this ago and all the button does is jump around the screen every time I click on it.
Nov 23 '10 at 01:43 PM
oliver-jones
Sorry bout that there was an error on the y coordinates. I've re written and tested this full script. It'll work fine now. =)
Nov 23 '10 at 03:33 PM
denewbie
Okay, its looking good - but how would I transform that button into an object/model? - As if I'm dragging something from my inventory?
Nov 23 '10 at 05:12 PM
oliver-jones
I've added a second portion to show how you can get the effect.
Nov 24 '10 at 10:23 AM
denewbie
Texture2D can hold any image in psd, png, gif, jpg etc. But if you want to have transparency you'll need to use psd, gif or png only.
Nov 24 '10 at 10:27 AM
denewbie
(comments are locked)
|
|
Thx for denewbie...it really works :) BTW 4 oliver jones if you haven't get it done ( I guess you'd already figure it ou), maybe you'll want to use custom skin to change the button images :)
(comments are locked)
|
