|
Hi all, I want to make a gameObject (a Plane or cube) to scale while i press and drag the left arrow mouse down. Is this possible? Can you point out best practices or tutorials or working script. Plz help me m new to scripting and i need ur help. thanks in advance.
(comments are locked)
|
|
Create a script called "ResizableObject" and add it to your object. And Then create a script called "InputHandler" and create a new gameObject and add this script to it. This just scales-up the object not scale-down. It's relatively easy to implement that if you want. thank u so much hdsenevi, its really usefull.. i m trying to scale down in the same script but no success.. i hope u'l guide me for that aswell.. thank u..
Aug 15 '12 at 04:47 PM
anvi
and one more thing, how can i limit that resizable object that it will resize within specific area..
Aug 15 '12 at 05:05 PM
anvi
(comments are locked)
|

Learn by doing. Find a tutorial on responding to mouse events (particularly drag). Find a tutorial on scaling objects. Link that stuff together. BAM.
To expand on that, start with one of the OFFICIAL unity tutorials. Youtube is great for some things but I have yet to see a Youtube tutorial actually explain what's going on. Look under the Support link along the top of the page, that's where they're hidden.