Skip to main content
API Reference NianticSpatial.Nsdk.MetaQuest XRTexture

Copy


Declaration

public void Copy(ref Texture2D target, Material copyMaterial = null, bool pushToGpu = true)

Parameters

NameTypeSummary
targetTexture2D
The target texture to copy to. If the texture is not allocated prior, it will be created.
If the format is not compatible, the texture will be re-created with the format of the source texture.
copyMaterialMaterial
The material to use for copying. If null, the format of the target must match the format of the XRTexture.
pushToGpubool
Whether to push the texture data to the GPU after copying.