ViewportPosition

From Headbone Creative
Revision as of 04:07, 21 April 2013 by Tyson Joehler (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This script will reposition the object to the specified position in the viewport when the level starts.

Contents

Public Variables

viewportPosition : Vector2

This is the relative position on the camera's view where the object will be positioned.

depth : float

This is how far back from the camera the object will be positioned.

autoDepth : bool

If this is set to true, the depth will be set to the local Z position of the current object.

viewCamera : Camera

This is the camera to use. If not set, this script will use the camera at the top of the object hierarchy or the main camera.

Public Functions

void UpdatePosition ()

This will update the position of the object on the screen relative to the view camera selected.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox