x


3d Object attach to mouse

Hello Everybody,

I have a little question for you... I want attach a 3D Object to mouse... I can attach a texture, or gui to mouse with this codes but i need attach and 3d object to my mouse...

My Codes ;

GUI.Button (Rect(mousex,mousey,50,50), Obje);

or

GUI.DrawTexture(Rect(vectorx-15,-vectory + Screen.height-15,30,30),texture);

but how can i attach a 3D object to my mouse?

Can you help me ?

more ▼

asked Aug 29 '10 at 06:12 AM

Vincenzo Albery gravatar image

Vincenzo Albery
49 20 24 34

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Problem Solved!

more ▼

answered Sep 18 '10 at 01:20 AM

Vincenzo Albery gravatar image

Vincenzo Albery
49 20 24 34

so, how'd you solve it?

Sep 20 '10 at 04:43 AM zannghast

I attach a plane to my object and i attach this plane to mouse :)

Sep 24 '10 at 11:28 AM Vincenzo Albery

And how did you attach it too the mouse? Please post what you did :D!

Mar 10 '11 at 03:10 PM Fishman92

HEY I NEED THIS SCRIPT

Nov 15 '11 at 11:26 PM Tracey P

"Problem Solved!"... Would be really nice of you to describe how you solved the problem. It would help others and Unity Answers would have one more answer...

Oct 16 '12 at 02:22 PM Balazs.2.0
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x984
x885
x454
x323

asked: Aug 29 '10 at 06:12 AM

Seen: 1500 times

Last Updated: Oct 16 '12 at 02:22 PM