Next: , Previous: , Up: Interaction   [Contents][Index]


9.12 Transform Window

Component: TransformWindow

NOTE: This component uses the Legacy Unity GUI and is not supported on mobile devices This component allows the user to modify objects of a given tag in the scene. This powerful functionality adds transform manipulation directly into your game, great for user-created objects and levels.

To use, add this component to an object in your scene and set the ’Ray Mask’ you wish to allow the player to edit

Field of TransformWindow: LayerMask rayMask

Collision layers of objects that we can transform

Interaction Settings

Field of TransformWindow: int windowID

Unique identifier for the legacy Unity GUI window

Default value: 1234

Field of TransformWindow: Rect guiArea

Normalized viewport rectangle indicating the area for the legacy Unity GUI window

Default value: new Rect(0.8f, .4f, .19f, .4f)

Field of TransformWindow: int mouseButton

Mouse button for activating transform on an object. 0 = left, 1 = right, 2 = middle.

Default value: 2

Field of TransformWindow: LayerMask rayMask

Collision layers of objects that we can transform

Interaction Settings

Field of TransformWindow: int windowID

Unique identifier for the legacy Unity GUI window

Default value: 1234

Field of TransformWindow: Rect guiArea

Normalized viewport rectangle indicating the area for the legacy Unity GUI window

Default value: new Rect(0.8f, .4f, .19f, .4f)

Field of TransformWindow: int mouseButton

Mouse button for activating transform on an object. 0 = left, 1 = right, 2 = middle.

Default value: 2


Next: , Previous: , Up: Interaction   [Contents][Index]