Stores information about Entity collisions. Setting up collisions is done with SpawnEntityOptions.onOverlap.

Remarks

If you set up collisions, the data in this interface is the data of the entity your are colliding with. For example if you set up SpawnEntityOptions.onOverlap | onOverlap on a player entity, any overlapData you recieve will be the data of entities the player has collided with, but will not include player collision data.

interface EntityButton {
    buttonID: string;
    onClick?: (() => void);
}

Properties

Properties

buttonID: string
onClick?: (() => void)

Type declaration

    • (): void
    • Returns void