Back To Index

SceneTransition

Jump To Parameters
Jump To Function Definitions


Parameter Definitions

Select the parameter name from below to jump directly to it on this page.

BeforeTravel
LoadSceneName
OnAnyPlayerEnterTrigger
OnAnyPlayerExitTrigger
OnOwnerEnterTrigger
OnOwnerExitTrigger
SpawnAtPoint
activeOnEnter
autoTravel
buttonToTravel
database
sendAllTogether


BeforeTravel

UnityEvent, travel has been called, but this event fires right before.

Exposed Value Type Default Value
private UnityEvent null

Back To Top


LoadSceneName

The name of the scene to load. This must be an exact spelling according to what is in the build settings.

Exposed Value Type Default Value
protected string ””

Back To Top


OnAnyPlayerEnterTrigger

UnityEvent, called when ANY player enter the trigger, owner or networked player

Exposed Value Type Default Value
private UnityEvent null

Back To Top


OnAnyPlayerExitTrigger

UnityEvent, called when ANY player exits the trigger, owner or networked player

Exposed Value Type Default Value
private UnityEvent null

Back To Top


OnOwnerEnterTrigger

UnityEvent that is called when the owner enters this trigger, not a networked player.

Exposed Value Type Default Value
private UnityEvent null

Back To Top


OnOwnerExitTrigger

UnityEvent that is called when the owner exits this trigger, not the networked player.

Exposed Value Type Default Value
private UnityEvent null

Back To Top


SpawnAtPoint

The name of the LoadPoint object to spawn at in the desired scene. This naming must be exact.

Exposed Value Type Default Value
protected string ””

Back To Top


activeOnEnter

The gameobjects to active/deactive when entering/exiting this trigger.

Exposed Value Type Default Value
protected GameObject[] null

Back To Top


autoTravel

When entring this trigger whether or not to automatically move to the new scene or not.

Exposed Value Type Default Value
protected bool false

Back To Top


buttonToTravel

The button that must be pressed when inside this trigger to travel the new scene.

Exposed Value Type Default Value
protected string “E”

Back To Top


database

The scene database that holds a list of all scenes and LoadPoint objects in those scenes.

Exposed Value Type Default Value
private SceneDatabase None

Back To Top


sendAllTogether

Whether to send everyone when traveling or to just send the person entering.

Exposed Value Type Default Value
public bool true

Back To Top

Function Definitions

Select the function name from below to jump directly to it on this page.

OnTriggerEnter
OnTriggerExit
SetDatabase
Travel
Update


protected virtual void OnTriggerEnter(Collider other)

Will do actions only when a vThirdPersonController enters the trigger and nothing else.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
other Collider type, only vThirdPersonController players fire this

Back To Top


protected virtual void OnTriggerExit(Collider other)

Will do actions only when a vThirdPersonController leaves the trigger and nothing else.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
other Collider type, only vThirdPersonController players fire this

Back To Top


public virtual void SetDatabase(SceneDatabase input)

Used for automation. Sets the database variable with the input sceneDatabase.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
input SceneDatabase type, the sceneDatabase to have this component reference

Back To Top


public virtual void Travel()

Calls SendToScene RPC for everyone or yourself based on the sendAllTogether variable. Finds the scene to load from the database and calls NetworkLoadLevel from the NetworkManager component.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top


protected virtual void Update()

If a owning vThirdPersonController is in the trigger and presses the buttonToTravel it will call the Travel function.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top