API

Class MeshUVSpaceRendererSince

Class used to render in the mesh UV space 5.49.1

Index
clearColor: any = ...

Clear color of the texture

texture: Nullable<Texture> = null

Target texture used for rendering If you don't set the property, a RenderTargetTexture will be created internally given the options provided to the constructor. If you provide a RenderTargetTexture, it will be used directly.

  • Projects and renders a texture in the mesh UV space

    Parameters

    • texture: BaseTexture

      The texture

    • position: Vector3

      The position of the center of projection (world space coordinates)

    • normal: Vector3

      The direction of the projection (world space coordinates)

    • size: Vector3

      The size of the projection

    • angle: number = 0

      The rotation angle around the direction of the projection (default: 0)

    • checkIsReady: boolean = true

      If true, it will check if the texture is ready before rendering (default: true). If the texture is not ready, a new attempt will be scheduled in 16ms

    Returns void