C# Class DeveloperConsole, TheUnseen

Developer Console class
Inheritance: MonoBehaviour
Afficher le fichier Open project: henryj41043/TheUnseen Class Usage Examples

Méthodes publiques

Свойство Type Description
aliasList DeveloperConsoleAlias[],
autocompleteBoxMaxSize Vector2
autocompleteKeyCode KeyCode,
autocompleteSelectedColor Color
copyLogOutput bool
disallowedChars char[]
guiSkin UnityEngine.GUISkin
lineHeight float
onlyAcceptAliases bool
showCursorWhenActive bool
textFieldHeight float
toggleKeyCode KeyCode,
transitionTime float
xSizePercent float
ySizePercent float

Méthodes publiques

Méthode Description
ApplyAutocompleteText ( ) : void
ApplyCommandsToGameObject ( GameObject go, string workWithText, bool printResult ) : void
CopyLogOutout ( String condition, String stackTrace, LogType type ) : void
DrawAutocompleteWindow ( string title, string names, Vector2 offset, int selectedIndex ) : void
DrawAutocompleteWindow ( string title, string names, Vector2 offset, int selectedIndex, int windowIndex ) : void
GetField ( GameObject gameObject, Component component, string fieldName ) : void
GetProperty ( GameObject gameObject, Component component, string propertyName ) : void
OnDisable ( ) : void
OnGUI ( ) : void
PrintToConsole ( string text ) : void
RunMethod ( GameObject gameObject, Component component, string methodName, string arguments, bool printResult ) : void
ScrollToDisplaySelected ( ) : void
SetField ( GameObject gameObject, Component component, string fieldName, string argument ) : void
SetProperty ( GameObject gameObject, Component component, string propertyName, string argument ) : void
Update ( ) : void

Private Methods

Méthode Description
FindAllGameObjects ( ) : IEnumerator
ParseStringToObject ( Type objectType, string argument, object &returnObject ) : bool
Start ( ) : IEnumerator

Method Details

ApplyAutocompleteText() public méthode

public ApplyAutocompleteText ( ) : void
Résultat void

ApplyCommandsToGameObject() public méthode

public ApplyCommandsToGameObject ( GameObject go, string workWithText, bool printResult ) : void
go GameObject
workWithText string
printResult bool
Résultat void

CopyLogOutout() public méthode

public CopyLogOutout ( String condition, String stackTrace, LogType type ) : void
condition String
stackTrace String
type LogType
Résultat void

DrawAutocompleteWindow() public méthode

public DrawAutocompleteWindow ( string title, string names, Vector2 offset, int selectedIndex ) : void
title string
names string
offset Vector2
selectedIndex int
Résultat void

DrawAutocompleteWindow() public méthode

public DrawAutocompleteWindow ( string title, string names, Vector2 offset, int selectedIndex, int windowIndex ) : void
title string
names string
offset Vector2
selectedIndex int
windowIndex int
Résultat void

GetField() public méthode

public GetField ( GameObject gameObject, Component component, string fieldName ) : void
gameObject GameObject
component Component
fieldName string
Résultat void

GetProperty() public méthode

public GetProperty ( GameObject gameObject, Component component, string propertyName ) : void
gameObject GameObject
component Component
propertyName string
Résultat void

OnDisable() public méthode

public OnDisable ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

PrintToConsole() public méthode

public PrintToConsole ( string text ) : void
text string
Résultat void

RunMethod() public méthode

public RunMethod ( GameObject gameObject, Component component, string methodName, string arguments, bool printResult ) : void
gameObject GameObject
component Component
methodName string
arguments string
printResult bool
Résultat void

ScrollToDisplaySelected() public méthode

public ScrollToDisplaySelected ( ) : void
Résultat void

SetField() public méthode

public SetField ( GameObject gameObject, Component component, string fieldName, string argument ) : void
gameObject GameObject
component Component
fieldName string
argument string
Résultat void

SetProperty() public méthode

public SetProperty ( GameObject gameObject, Component component, string propertyName, string argument ) : void
gameObject GameObject
component Component
propertyName string
argument string
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

aliasList public_oe property

List of all aliases the console will utilise at runtime
public DeveloperConsoleAlias[], aliasList
Résultat DeveloperConsoleAlias[],

autocompleteBoxMaxSize public_oe property

public Vector2 autocompleteBoxMaxSize
Résultat Vector2

autocompleteKeyCode public_oe property

The key used to trigger text autocompletion during typing
public KeyCode, autocompleteKeyCode
Résultat KeyCode,

autocompleteSelectedColor public_oe property

public Color autocompleteSelectedColor
Résultat Color

copyLogOutput public_oe property

Whether or not to print standard log (Debug.Log) output to the Developer Console
public bool copyLogOutput
Résultat bool

disallowedChars public_oe property

public char[] disallowedChars
Résultat char[]

guiSkin public_oe property

The GUI Skin the console will utilise for rendering
public GUISkin,UnityEngine guiSkin
Résultat UnityEngine.GUISkin

lineHeight public_oe property

Height of each text line in the console�s output window
public float lineHeight
Résultat float

onlyAcceptAliases public_oe property

Whether or not to only accept aliases and not the standard variable and function call syntax
public bool onlyAcceptAliases
Résultat bool

showCursorWhenActive public_oe property

public bool showCursorWhenActive
Résultat bool

textFieldHeight public_oe property

Height in pixels of the console�s textbox
public float textFieldHeight
Résultat float

toggleKeyCode public_oe property

The key used to toggle the display of the console
public KeyCode, toggleKeyCode
Résultat KeyCode,

transitionTime public_oe property

Time (in seconds) that the console takes to enter and leave the frame
public float transitionTime
Résultat float

xSizePercent public_oe property

Width of the console in percentage of the screen size (0.0 to 1.0)
public float xSizePercent
Résultat float

ySizePercent public_oe property

Height of the console in percentage of the screen size (0.0 to 1.0)
public float ySizePercent
Résultat float