• Register a runtime behavior (class extending gdjs.RuntimeBehavior) that can be used by a gdjs.RuntimeObject.

    The type of the behavior must be complete, with the namespace of the extension. For example, if you are providing a Draggable behavior in the DraggableBehavior extension, the full name of the type of the behavior is "DraggableBehavior::Draggable".

    Parameters

    • behaviorTypeName: string

      The name of the type of the behavior.

    • Ctor: typeof RuntimeBehavior

      The constructor of the Object.

    Returns void