Public Attributes | Protected Member Functions | List of all members
Components.ClickAndLoadScene Class Reference

This class will load a given scene (from the inspector fields) whenever the user clicks on the associated GUI game object. More...

Inheritance diagram for Components.ClickAndLoadScene:
Components.EntryHover

Public Attributes

string SceneToLoad
 The field for the inspector, to allow the developer to select a given scene to load whenever the user clicks on the element. More...
 
- Public Attributes inherited from Components.EntryHover
Color HoverColor = Color.yellow
 The background color for when the mouse is hovering the component. More...
 
Color DisabledColor = new Color(0.49f, 0.49f, 0.49f)
 The background color for when the component is flagged as disabled. More...
 

Protected Member Functions

override void OnClick ()
 Load the gaven scene when the user clicked on the element. More...
 
- Protected Member Functions inherited from Components.EntryHover
void Start ()
 Set-up the component by retrieve every base component of the game object and setting the cursor as visible on the GUI. Then checking if whether or not we should put the disabled color if the button is disabled. More...
 
void ActivateHover ()
 Fired whenever the user starts hovering. This saves the current background color and replace it by the hover one. More...
 
void DeactivateHover ()
 Fired whenever the user stops hovering. This restore the previous background color. More...
 

Additional Inherited Members

- Protected Attributes inherited from Components.EntryHover
bool IsEnabled = true
 Whether the component must be in disabled or enabled state (requires restart). More...
 

Detailed Description

This class will load a given scene (from the inspector fields) whenever the user clicks on the associated GUI game object.

Member Function Documentation

override void Components.ClickAndLoadScene.OnClick ( )
inlineprotectedvirtual

Load the gaven scene when the user clicked on the element.

Reimplemented from Components.EntryHover.

Member Data Documentation

string Components.ClickAndLoadScene.SceneToLoad

The field for the inspector, to allow the developer to select a given scene to load whenever the user clicks on the element.


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