Photon Bolt Engine API 1.3

Classes | Static Public Member Functions | Public Attributes | List of all members
Photon.Bolt.Utils.BoltConsole Class Reference

The in-game console window More...

Inheritance diagram for Photon.Bolt.Utils.BoltConsole:

Classes

struct  Line
 

Static Public Member Functions

static void Write (string line)
 Write one line to the console More...
 
static void Write (string line, Color color)
 Write one line to the console More...
 

Public Attributes

float scrollIndex = 0
 
bool visible = true
 

Detailed Description

The in-game console window

Example: Writing a custom message to the console.

void Start() {
BoltConsole.Write("[Start:" + this.gameObject.name + "]);
}

Member Function Documentation

◆ Write() [1/2]

static void Photon.Bolt.Utils.BoltConsole.Write ( string  line)
inlinestatic

Write one line to the console

Parameters
lineText to write

Example: Writing a custom message to the console.

void OnSpawn() {
BoltConsole.Write("[Spawn:" + this.gameObject.name + "]);
}

◆ Write() [2/2]

static void Photon.Bolt.Utils.BoltConsole.Write ( string  line,
Color  color 
)
inlinestatic

Write one line to the console

Parameters
lineText to write
colorColor of the text

Example: Writing a custom message to the console in color.

void OnDeath() {
BoltConsole.Write("[Death:" + this.gameObject.name + "], Color.Red);
}

Member Data Documentation

◆ scrollIndex

float Photon.Bolt.Utils.BoltConsole.scrollIndex = 0

◆ visible

bool Photon.Bolt.Utils.BoltConsole.visible = true