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

    Interface TokenDetectionMode<Source>

    interface TokenDetectionMode<Source extends boolean = false> {
        enabled: boolean;
        range: Source extends true ? number | null : number;
    }

    Type Parameters

    • Source extends boolean = false
    Index

    Properties

    Properties

    enabled: boolean

    Whether or not this detection mode is presently enabled.

    range: Source extends true ? number | null : number

    The maximum range in distance units at which this mode can detect targets. If null, which is only possible for modes in the document source, the detection range is unlimited. On document preparation null is converted to Infinity.