Highroad Engine v1.3
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.HighroadEngine.DemonstratorManager Class Reference

This class allows for a fast demo scene boot, without a RaceManager You just have to put it in a scene for the cameras to auto bind themselves to the vehicle and for that vehicle to be bound to Player1's input. If more than one vehicle/camera are present in the scene and active, a button appears in the GUI to switch between vehicles and cameras Disabling FindCamerasInScene and FindVehiclesInScene allows you to associate cameras and vehicles manually via the Cameras and Vehicles lists More...

Inheritance diagram for MoreMountains.HighroadEngine.DemonstratorManager:

Public Member Functions

virtual void Start ()
 Objects initialization More...
 
virtual void Update ()
 Updates active camera and vehicle if needed More...
 
virtual void HideUI ()
 Masks UI controls if necessary More...
 
virtual void RefreshCamera ()
 Updates the active camera More...
 

Public Attributes

bool ShowGui = true
 Hide or show GUI Tool. More...
 
bool FindCamerasInScene = true
 Whether or not this manager should find all active cameras in the scene. More...
 
CameraController[] Cameras
 The "manual" list of cameras if you'd rather force that. More...
 
bool FindVehiclesInScene = true
 Whether or not the manager should find all active vehicles in the scene. More...
 
BaseController[] Vehicles
 The "manual" list of vehicles to use. More...
 

Protected Member Functions

virtual void OnGUI ()
 Displays the UI controls allowing to change camera and vehicle More...
 

Protected Attributes

int _wantedCameraIndex = 0
 
int _wantedVehicleIndex = 0
 
int _currentCameraIndex = -1
 
int _currentVehicleIndex = -1
 

Detailed Description

This class allows for a fast demo scene boot, without a RaceManager You just have to put it in a scene for the cameras to auto bind themselves to the vehicle and for that vehicle to be bound to Player1's input. If more than one vehicle/camera are present in the scene and active, a button appears in the GUI to switch between vehicles and cameras Disabling FindCamerasInScene and FindVehiclesInScene allows you to associate cameras and vehicles manually via the Cameras and Vehicles lists

Member Function Documentation

◆ HideUI()

virtual void MoreMountains.HighroadEngine.DemonstratorManager.HideUI ( )
virtual

Masks UI controls if necessary

◆ OnGUI()

virtual void MoreMountains.HighroadEngine.DemonstratorManager.OnGUI ( )
protectedvirtual

Displays the UI controls allowing to change camera and vehicle

◆ RefreshCamera()

virtual void MoreMountains.HighroadEngine.DemonstratorManager.RefreshCamera ( )
virtual

Updates the active camera

◆ Start()

virtual void MoreMountains.HighroadEngine.DemonstratorManager.Start ( )
virtual

Objects initialization

◆ Update()

virtual void MoreMountains.HighroadEngine.DemonstratorManager.Update ( )
virtual

Updates active camera and vehicle if needed

Member Data Documentation

◆ _currentCameraIndex

int MoreMountains.HighroadEngine.DemonstratorManager._currentCameraIndex = -1
protected

◆ _currentVehicleIndex

int MoreMountains.HighroadEngine.DemonstratorManager._currentVehicleIndex = -1
protected

◆ _wantedCameraIndex

int MoreMountains.HighroadEngine.DemonstratorManager._wantedCameraIndex = 0
protected

◆ _wantedVehicleIndex

int MoreMountains.HighroadEngine.DemonstratorManager._wantedVehicleIndex = 0
protected

◆ Cameras

CameraController [] MoreMountains.HighroadEngine.DemonstratorManager.Cameras

The "manual" list of cameras if you'd rather force that.

◆ FindCamerasInScene

bool MoreMountains.HighroadEngine.DemonstratorManager.FindCamerasInScene = true

Whether or not this manager should find all active cameras in the scene.

◆ FindVehiclesInScene

bool MoreMountains.HighroadEngine.DemonstratorManager.FindVehiclesInScene = true

Whether or not the manager should find all active vehicles in the scene.

◆ ShowGui

bool MoreMountains.HighroadEngine.DemonstratorManager.ShowGui = true

Hide or show GUI Tool.

◆ Vehicles

BaseController [] MoreMountains.HighroadEngine.DemonstratorManager.Vehicles

The "manual" list of vehicles to use.


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