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

    Function getTexture

    • Get a single texture or sprite sheet from the cache.

      Parameters

      • src: string

        The texture path to load. This may be a standard texture path or a "virtual texture" beginning with the "#" character that is retrieved from canvas.sceneTextures.

      Returns Texture<Resource> | Spritesheet<ISpritesheetData> | null

      A texture, a sprite sheet or null if not found in cache.