C# Class TrackBuildREditorInspector, ProjectPhoenix

Datei anzeigen Open project: Alx666/ProjectPhoenix Class Usage Examples

Public Methods

Method Description
CleanUp ( ) : void

Called to ensure we're not leaking stuff into the Editor

OnInspectorGUI ( TrackBuildR, _trackBuildR, int selectedPointIndex, int selectedCurveIndex ) : void

Private Methods

Method Description
CurveTextureSelector ( TrackBuildRTrack, _track, int textureIndex, string label ) : int

A stub of GUI for selecting the texture for a specific part of the track on a specific curve IE. The track texture, the wall texture, etc...

GotoScenePoint ( Vector3 position ) : void

A little hacking of the Unity Editor to allow us to focus on an arbitrary point in 3D Space We're replicating pressing the F button in scene view to focus on the selected object Here we can focus on a 3D point

RenderPreview ( TrackBuildR, _trackBuildR ) : void
TextureGUI ( TrackBuildRTexture &texture ) : bool

The Texture display GUI

Title ( string titleString, Color colour ) : void

A GUI stub that displays the coloured titles in the inspector for Track BuildR

UpdateDiagram ( TrackBuildRTrack, _track ) : void

Deals with modifing the diagram used in track building

Method Details

CleanUp() public static method

Called to ensure we're not leaking stuff into the Editor
public static CleanUp ( ) : void
return void

OnInspectorGUI() public static method

public static OnInspectorGUI ( TrackBuildR, _trackBuildR, int selectedPointIndex, int selectedCurveIndex ) : void
_trackBuildR TrackBuildR,
selectedPointIndex int
selectedCurveIndex int
return void