Click or drag to resize

ScriptExecutionContextActivateType Method

Attempt to activate the specified ScriptType. Activation will cause an instance of the type to be constructed and initialized in the current ScriptDomain.

Namespace:  UMod.Scripting.Runtime
Assembly:  UMod (in UMod.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public ScriptProxy ActivateType(
	ScriptType type,
	GameObject parent = null
)

Parameters

type
Type: UMod.ScriptingScriptType
The ScriptType to activate
parent (Optional)
Type: GameObject
The parent game object fo the script. Only applicable if the scripts derives from MonoBehaviour

Return Value

Type: ScriptProxy
A proxy object representing the created type
See Also