Mixin

Inherits: Object

Experimental! Adds functionality to MixinScript objects.

Description

A class which extends the run-time functionality of objects that use MixinScript. All scripts added to MixinScript must inherit from Mixin.

Warning: Mixin objects are instantiated internally and cannot be used as a Node in the scene tree. Do not instantiate Mixin objects manually.

Properties

Object owner

Property Descriptions

Getter get_owner()

The object that uses this mixin to drive its own behavior. You can reference the owner from within a mixin, use properties and call methods on the owner that are defined in other mixin scripts.