Adventure Creator  1.75.4
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2019
AC.Marker Class Reference
Inheritance diagram for AC.Marker:
AC.PlayerStart

Public Member Functions

virtual void DrawGizmos ()
 

Protected Member Functions

void Awake ()
 
void OnDrawGizmos ()
 
void OnDrawGizmosSelected ()
 

Properties

Vector3 Position [get]
 
float ForwardAngle [get]
 
Vector3 ForwardDirection [get]
 
Quaternion Rotation [get]
 
Transform Transform [get]
 

Detailed Description

A component used to create reference transforms, as needed by the PlayerStart and various Actions. When the game begins, the renderer will be disabled and the GameObject will be rotated if the game is 2D.

Property Documentation

◆ ForwardAngle

float AC.Marker.ForwardAngle
get

The Marker's forward-facing angle, corrected for 2D if necessary

◆ ForwardDirection

Vector3 AC.Marker.ForwardDirection
get

The Marker's forward direction, corrected for 2D if necessary

◆ Position

Vector3 AC.Marker.Position
get

The Marker's position

◆ Rotation

Quaternion AC.Marker.Rotation
get

The Marker's rotation, corrected for 2D if necessary

◆ Transform

Transform AC.Marker.Transform
get

A cache of the Markers's transform component