Simple Waypoint System  5.4
Public Member Functions | Public Attributes | List of all members
PathManager

Stores waypoints, accessed by walker objects. Provides gizmo visualization in the editor. More...

Inheritance diagram for PathManager:
BezierPathManager

Public Member Functions

void Create (Transform parent=null)
 Create or update waypoint representation from child objects or external parent. More...
 
virtual void Create (Transform[] waypoints, bool makeChildren=false)
 Create or update waypoint representation from the array passed in, optionally parenting them to the path. More...
 
virtual float GetHandleSize (Vector3 pos)
 
virtual Vector3[] GetPathPoints (bool local=false)
 Returns waypoint positions (path positions) as Vector3 array. More...
 
virtual Transform GetWaypoint (int index)
 Returns this waypoint transform according to the index passed in. More...
 
virtual int GetWaypointIndex (int point)
 Converts bezier points on the path to waypoint index. More...
 
virtual int GetWaypointCount ()
 Returns waypoint length (should be equal to events count). More...
 

Public Attributes

Transform[] waypoints = new Transform[]{}
 Waypoint array creating the path. More...
 
bool drawCurved = true
 Toggles drawing of linear or curved gizmo lines. More...
 
bool drawDirection = false
 Toggles drawing of waypoint direction rotation. More...
 
Color color1 = new Color(1, 0, 1, 0.5f)
 Gizmo color for path ends. More...
 
Color color2 = new Color(1, 235 / 255f, 4 / 255f, 0.5f)
 Gizmo color for lines and waypoints. More...
 
Vector3 size = new Vector3(.7f, .7f, .7f)
 Gizmo size for path ends. More...
 
float radius = .4f
 Gizmo radius for waypoints. More...
 
bool skipCustomNames = true
 Skip custom names on waypoint renaming. More...
 
GameObject replaceObject
 Gameobject for replacing waypoints. More...
 

Detailed Description

Stores waypoints, accessed by walker objects. Provides gizmo visualization in the editor.

Member Function Documentation

void Create ( Transform  parent = null)

Create or update waypoint representation from child objects or external parent.

virtual void Create ( Transform[]  waypoints,
bool  makeChildren = false 
)
virtual

Create or update waypoint representation from the array passed in, optionally parenting them to the path.

Reimplemented in BezierPathManager.

virtual float GetHandleSize ( Vector3  pos)
virtual
virtual Vector3 [] GetPathPoints ( bool  local = false)
virtual

Returns waypoint positions (path positions) as Vector3 array.

Reimplemented in BezierPathManager.

virtual Transform GetWaypoint ( int  index)
virtual

Returns this waypoint transform according to the index passed in.

Reimplemented in BezierPathManager.

virtual int GetWaypointCount ( )
virtual

Returns waypoint length (should be equal to events count).

Reimplemented in BezierPathManager.

virtual int GetWaypointIndex ( int  point)
virtual

Converts bezier points on the path to waypoint index.

Reimplemented in BezierPathManager.

Member Data Documentation

Color color1 = new Color(1, 0, 1, 0.5f)

Gizmo color for path ends.

Color color2 = new Color(1, 235 / 255f, 4 / 255f, 0.5f)

Gizmo color for lines and waypoints.

bool drawCurved = true

Toggles drawing of linear or curved gizmo lines.

bool drawDirection = false

Toggles drawing of waypoint direction rotation.

float radius = .4f

Gizmo radius for waypoints.

GameObject replaceObject

Gameobject for replacing waypoints.

Vector3 size = new Vector3(.7f, .7f, .7f)

Gizmo size for path ends.

bool skipCustomNames = true

Skip custom names on waypoint renaming.

Transform [] waypoints = new Transform[]{}

Waypoint array creating the path.


The documentation for this class was generated from the following file: