Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function controlObject

    • A hook event that fires when a foundry.canvas.placeables.PlaceableObject is selected or deselected. Substitute the PlaceableObject name in the hook event to target a specific PlaceableObject type, for example "controlToken".

      Parameters

      • object: PlaceableObject

        The object instance which is selected/deselected.

      • controlled: boolean

        Whether the PlaceableObject is selected or not.

      Returns void