modules.script#
- class modules.script.Script(context: EmberEngine, uuid: UUID = None, path: Path = None, active: bool = False, class_name: str = '', class_name_f: str = '', exports: dict = {})#
Bases:
object- __init__(context: EmberEngine, uuid: UUID = None, path: Path = None, active: bool = False, class_name: str = '', class_name_f: str = '', exports: dict = {}) None#
- init_instance(gameObject: GameObject = None) bool#
Initialize script attached to this gameObject, Try to load and parse the script, then convert to module in sys.
Loads exported attribute, values from scene instance will override default class values
- Parameters:
script (GameObject.Script) – The Script object containing a file path