FakeGizmoDemo
From Unify Community Wiki
(Difference between revisions)
(New page: == Introduction == This is a simple demo package that demonstrates two things: creating a fake Runtime Gizmo, and procedural creation of an in-game mesh object. The fake Gizmo is a three-...) |
(→Introduction) |
||
Line 6: | Line 6: | ||
To use it, you would drag/drop the script, ''s_GizmoCreate.cs'' onto your GameObject. This script procedurally creates the actual Gizmo, which is built by two other scripts, ''s_Gizmo.cs'' and ''s_GizmoClick.cs''. | To use it, you would drag/drop the script, ''s_GizmoCreate.cs'' onto your GameObject. This script procedurally creates the actual Gizmo, which is built by two other scripts, ''s_Gizmo.cs'' and ''s_GizmoClick.cs''. | ||
− | + | Unity package can be downloaded from [[Media:FakeGizmoDemo.zip]] | |
+ | |||
+ | What it looks like: | ||
+ | [[Image:Fakegizmodemo.jpg]] |
Revision as of 20:49, 14 March 2010
Introduction
This is a simple demo package that demonstrates two things: creating a fake Runtime Gizmo, and procedural creation of an in-game mesh object.
The fake Gizmo is a three-arrow axis object that can be attached to an in-Hierarchy object. By clicking on one of the arrows, the Gizmo moves itself and the parent object in that axis direction. Note - it's not mouse-draggable as such, just holding the mouse down generates the movement.
To use it, you would drag/drop the script, s_GizmoCreate.cs onto your GameObject. This script procedurally creates the actual Gizmo, which is built by two other scripts, s_Gizmo.cs and s_GizmoClick.cs.
Unity package can be downloaded from Media:FakeGizmoDemo.zip