Script¶
Scripts are abstract base classes representing Lua code that can be executed in the game.
Inherits: Instance
Properties¶
- Source:
string - IsEnabled:
boolean - LinkedScript:
FileLinkAsset - Compatibility:
boolean
Methods¶
Call(funcName: string, args: any) → nil¶
Calls a function in the script with the given arguments.
CallAsync(funcName: string, args: any) → nil¶
Calls a function in the script asynchronously with the given arguments.
LinkWithScriptFile(scriptPath: string) → nil¶
Link script with the target file path