C# Class TrackBuildREditor, ProjectPhoenix

Inheritance: Editor
Mostrar archivo Open project: Alx666/ProjectPhoenix

Public Properties

Property Type Description
_stageToolbarTexturesA UnityEngine.Texture2D[]
_stageToolbarTexturesB UnityEngine.Texture2D[]
boundaryModeString string[]
pitModeString string[]
pointModeString string[]
trackModeString string[]

Public Methods

Method Description
OnInspectorGUI ( ) : void

Private Methods

Method Description
CleanUp ( ) : void
DrawTrack ( ) : void

This function renders and controls the layout track function in the menu Users can click place track points into the scene for a quick and easy creation of a track

NearestmMousePercentage ( ) : float

Get the nearest point on the track curve to the mouse position We essentailly project the track onto a 2D plane that is the editor camera and then find a point on that

OnDestroy ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnSceneGUI ( ) : void
SceneGUIPointBased ( ) : void
UpdateGui ( ) : void

Handle GUI changes and repaint requests

Method Details

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void

Property Details

_stageToolbarTexturesA public_oe static_oe property

public static Texture2D[],UnityEngine _stageToolbarTexturesA
return UnityEngine.Texture2D[]

_stageToolbarTexturesB public_oe static_oe property

public static Texture2D[],UnityEngine _stageToolbarTexturesB
return UnityEngine.Texture2D[]

boundaryModeString public_oe static_oe property

public static string[] boundaryModeString
return string[]

pitModeString public_oe static_oe property

public static string[] pitModeString
return string[]

pointModeString public_oe static_oe property

public static string[] pointModeString
return string[]

trackModeString public_oe static_oe property

public static string[] trackModeString
return string[]