phaser - v4.0.0-rc.4
    Preparing search index...

    Function CreateInteractiveObject

    • Creates a new Interactive Object.

      This is called automatically by the Input Manager when you enable a Game Object for input.

      The resulting Interactive Object is mapped to the Game Object's input property.

      Parameters

      • gameObject: GameObject

        The Game Object to which this Interactive Object is bound.

      • hitArea: any

        The hit area for this Interactive Object. Typically a geometry shape, like a Rectangle or Circle.

      • hitAreaCallback: HitAreaCallback

        The 'contains' check callback that the hit area shape will use for all hit tests.

      Returns InteractiveObject