Hilo3d API - v2.0.0-alpha.3
    Preparing search index...

    Class SpriteFrame

    One rectangular texture-atlas frame.

    Pixel coordinates use the conventional top-left image origin. UV conversion accounts for the texture's flipY policy so the same frame data works through WebGL2 and WebGPU.

    Index
    duration: number | null
    height: number
    texture: Texture
    width: number
    x: number
    y: number
    • Write the normalized [u, v, width, height] transform consumed by SpriteMaterial.

      Parameters

      • target: Float32Array

        Reusable four-component output.

      Returns Float32Array