C# 클래스 CSharpInterpreter, CSharp-Interpreter-for-Unity-3D

Implements a hosting environment for the C# Interpreter as a Component that can be attached to a GameObject in Unity 3D.
상속: MonoBehaviour, CSI.IConsole
파일 보기 프로젝트 열기: keyword/CSharp-Interpreter-for-Unity-3D 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bottomMargin float
includeAsset UnityEngine.Object
includeFile string
leftMargin float
maxHistorySize int
maxOutputLineCount int
maxOutputLineWidth int
maxOutputSize int
queuedAsset UnityEngine.Object
rightMargin float
showInteractiveGUI bool
showOutputAsEditorSelection bool
showOutputText bool
showTooltipText bool
splitterFraction float
toolboxWidth int
topMargin float

공개 메소드들

메소드 설명
AddGlobal ( string name, object value ) : object

Adds the specified global variable to the interpreter environment.

CSI ( CSI callback ) : void
ClearHistory ( ) : void
ClearHistory ( string &history ) : void
ClearOutput ( ) : void
ClearOutput ( string &outputText ) : void
ExecuteCode ( string inputText ) : bool

Execute the specified code in the interpreter environment.

ExecuteFile ( string inputFilename ) : bool

Execute the specified file in the interpreter environment.

GetHistory ( ) : string[]
GetLastExecuteResult ( ) : object
GetOutput ( ) : string
HasGlobal ( string name ) : bool
Invoke ( Action action ) : void

Implements a helper method that can be used to execute a statement and hide the result from the interpreter output windows.

IsEditorAvailable ( ) : bool
RemoveGlobal ( string name ) : bool
Select ( GameObject gameObject ) : bool
Select ( IEnumerable unityObjects ) : bool
Select ( Transform transform ) : bool
Select ( UnityEngine unityObject ) : bool
Select ( object obj ) : bool

비공개 메소드들

메소드 설명
Awake ( ) : void
CSI ( ) : int
CSI ( string s ) : string
EnforceParameterLimits ( ) : void
ForceWarning ( string message ) : void
ForceWarning ( string message, UnityEngine context ) : void
GetAssetText ( object asset, string &assetName ) : string
GetDefaultIncludeFilename ( ) : string
GetFullPathOfAssembly ( Assembly assembly ) : string
OnDrawGUI ( ) : void

Called when the GUI needs to be drawn.

OnExecuteInput ( ) : void

Called when the input text need to be executed (e.g., when Enter is pressed).

OnGUI ( ) : void

Draws the GUI and execute its interaction logic; called by Unity on a frequent basis.

OnGetUnknownItem ( object key ) : object
OnMetaRequest ( ) : bool

Called when metadata should be displayed (e.g., when Alt+F1 is pressed).

OnNavigateHistory ( bool useTrueForOlderOrFalseForNewerOrNullForUndo ) : void

Called when the history needs ot be navigated (e.g., when the up-arrow, down-arrow or escape key is pressed).

PromptForInput ( string prompt ) : void
Reinitialize ( ) : bool

Performs initialization of this instance, which can be called at startup or in play mode when the Unity Editor rebuilds scripts.

Reset ( ) : void
ResolveFilename ( string filename ) : string
Select ( string selectionPropertyName, object selectionPropertyValue ) : bool
SetUnityEditorProperty ( string objectTypeName, string propertyName, object propertyValue ) : bool
Start ( ) : void

Performs one-time initialization of this instance; called by Unity.

Update ( ) : void

Perform the update logic; called by Unity on every frame.

메소드 상세

AddGlobal() 공개 메소드

Adds the specified global variable to the interpreter environment.
public AddGlobal ( string name, object value ) : object
name string
value object
리턴 object

CSI() 공개 메소드

public CSI ( CSI callback ) : void
callback CSI
리턴 void

ClearHistory() 공개 메소드

public ClearHistory ( ) : void
리턴 void

ClearHistory() 공개 메소드

public ClearHistory ( string &history ) : void
history string
리턴 void

ClearOutput() 공개 메소드

public ClearOutput ( ) : void
리턴 void

ClearOutput() 공개 메소드

public ClearOutput ( string &outputText ) : void
outputText string
리턴 void

ExecuteCode() 공개 메소드

Execute the specified code in the interpreter environment.
public ExecuteCode ( string inputText ) : bool
inputText string
리턴 bool

ExecuteFile() 공개 메소드

Execute the specified file in the interpreter environment.
public ExecuteFile ( string inputFilename ) : bool
inputFilename string
리턴 bool

GetHistory() 공개 메소드

public GetHistory ( ) : string[]
리턴 string[]

GetLastExecuteResult() 공개 메소드

public GetLastExecuteResult ( ) : object
리턴 object

GetOutput() 공개 메소드

public GetOutput ( ) : string
리턴 string

HasGlobal() 공개 메소드

public HasGlobal ( string name ) : bool
name string
리턴 bool

Invoke() 공개 메소드

Implements a helper method that can be used to execute a statement and hide the result from the interpreter output windows.
public Invoke ( Action action ) : void
action Action The action delegate to be executed.
리턴 void

IsEditorAvailable() 공개 메소드

public IsEditorAvailable ( ) : bool
리턴 bool

RemoveGlobal() 공개 메소드

public RemoveGlobal ( string name ) : bool
name string
리턴 bool

Select() 공개 메소드

public Select ( GameObject gameObject ) : bool
gameObject GameObject
리턴 bool

Select() 공개 메소드

public Select ( IEnumerable unityObjects ) : bool
unityObjects IEnumerable
리턴 bool

Select() 공개 메소드

public Select ( Transform transform ) : bool
transform Transform
리턴 bool

Select() 공개 메소드

public Select ( UnityEngine unityObject ) : bool
unityObject UnityEngine
리턴 bool

Select() 공개 메소드

public Select ( object obj ) : bool
obj object
리턴 bool

프로퍼티 상세

bottomMargin 공개적으로 프로퍼티

public float bottomMargin
리턴 float

includeAsset 공개적으로 프로퍼티

public Object,UnityEngine includeAsset
리턴 UnityEngine.Object

includeFile 공개적으로 프로퍼티

public string includeFile
리턴 string

leftMargin 공개적으로 프로퍼티

public float leftMargin
리턴 float

maxHistorySize 공개적으로 프로퍼티

public int maxHistorySize
리턴 int

maxOutputLineCount 공개적으로 프로퍼티

public int maxOutputLineCount
리턴 int

maxOutputLineWidth 공개적으로 프로퍼티

public int maxOutputLineWidth
리턴 int

maxOutputSize 공개적으로 프로퍼티

public int maxOutputSize
리턴 int

queuedAsset 공개적으로 프로퍼티

public Object,UnityEngine queuedAsset
리턴 UnityEngine.Object

rightMargin 공개적으로 프로퍼티

public float rightMargin
리턴 float

showInteractiveGUI 공개적으로 프로퍼티

public bool showInteractiveGUI
리턴 bool

showOutputAsEditorSelection 공개적으로 프로퍼티

public bool showOutputAsEditorSelection
리턴 bool

showOutputText 공개적으로 프로퍼티

public bool showOutputText
리턴 bool

showTooltipText 공개적으로 프로퍼티

public bool showTooltipText
리턴 bool

splitterFraction 공개적으로 프로퍼티

public float splitterFraction
리턴 float

toolboxWidth 공개적으로 프로퍼티

public int toolboxWidth
리턴 int

topMargin 공개적으로 프로퍼티

public float topMargin
리턴 float