C# Класс DeveloperConsole, TheUnseen

Developer Console class
Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
FindAllGameObjects ( ) : IEnumerator
ParseStringToObject ( Type objectType, string argument, object &returnObject ) : bool
Start ( ) : IEnumerator

Описание методов

ApplyAutocompleteText() публичный Метод

public ApplyAutocompleteText ( ) : void
Результат void

ApplyCommandsToGameObject() публичный Метод

public ApplyCommandsToGameObject ( GameObject go, string workWithText, bool printResult ) : void
go GameObject
workWithText string
printResult bool
Результат void

CopyLogOutout() публичный Метод

public CopyLogOutout ( String condition, String stackTrace, LogType type ) : void
condition String
stackTrace String
type LogType
Результат void

DrawAutocompleteWindow() публичный Метод

public DrawAutocompleteWindow ( string title, string names, Vector2 offset, int selectedIndex ) : void
title string
names string
offset Vector2
selectedIndex int
Результат void

DrawAutocompleteWindow() публичный Метод

public DrawAutocompleteWindow ( string title, string names, Vector2 offset, int selectedIndex, int windowIndex ) : void
title string
names string
offset Vector2
selectedIndex int
windowIndex int
Результат void

GetField() публичный Метод

public GetField ( GameObject gameObject, Component component, string fieldName ) : void
gameObject GameObject
component Component
fieldName string
Результат void

GetProperty() публичный Метод

public GetProperty ( GameObject gameObject, Component component, string propertyName ) : void
gameObject GameObject
component Component
propertyName string
Результат void

OnDisable() публичный Метод

public OnDisable ( ) : void
Результат void

OnGUI() публичный Метод

public OnGUI ( ) : void
Результат void

PrintToConsole() публичный Метод

public PrintToConsole ( string text ) : void
text string
Результат void

RunMethod() публичный Метод

public RunMethod ( GameObject gameObject, Component component, string methodName, string arguments, bool printResult ) : void
gameObject GameObject
component Component
methodName string
arguments string
printResult bool
Результат void

ScrollToDisplaySelected() публичный Метод

public ScrollToDisplaySelected ( ) : void
Результат void

SetField() публичный Метод

public SetField ( GameObject gameObject, Component component, string fieldName, string argument ) : void
gameObject GameObject
component Component
fieldName string
argument string
Результат void

SetProperty() публичный Метод

public SetProperty ( GameObject gameObject, Component component, string propertyName, string argument ) : void
gameObject GameObject
component Component
propertyName string
argument string
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

aliasList публичное свойство

List of all aliases the console will utilise at runtime
public DeveloperConsoleAlias[], aliasList
Результат DeveloperConsoleAlias[],

autocompleteBoxMaxSize публичное свойство

public Vector2 autocompleteBoxMaxSize
Результат Vector2

autocompleteKeyCode публичное свойство

The key used to trigger text autocompletion during typing
public KeyCode, autocompleteKeyCode
Результат KeyCode,

autocompleteSelectedColor публичное свойство

public Color autocompleteSelectedColor
Результат Color

copyLogOutput публичное свойство

Whether or not to print standard log (Debug.Log) output to the Developer Console
public bool copyLogOutput
Результат bool

disallowedChars публичное свойство

public char[] disallowedChars
Результат char[]

guiSkin публичное свойство

The GUI Skin the console will utilise for rendering
public GUISkin,UnityEngine guiSkin
Результат UnityEngine.GUISkin

lineHeight публичное свойство

Height of each text line in the console�s output window
public float lineHeight
Результат float

onlyAcceptAliases публичное свойство

Whether or not to only accept aliases and not the standard variable and function call syntax
public bool onlyAcceptAliases
Результат bool

showCursorWhenActive публичное свойство

public bool showCursorWhenActive
Результат bool

textFieldHeight публичное свойство

Height in pixels of the console�s textbox
public float textFieldHeight
Результат float

toggleKeyCode публичное свойство

The key used to toggle the display of the console
public KeyCode, toggleKeyCode
Результат KeyCode,

transitionTime публичное свойство

Time (in seconds) that the console takes to enter and leave the frame
public float transitionTime
Результат float

xSizePercent публичное свойство

Width of the console in percentage of the screen size (0.0 to 1.0)
public float xSizePercent
Результат float

ySizePercent публичное свойство

Height of the console in percentage of the screen size (0.0 to 1.0)
public float ySizePercent
Результат float