On this page←API Reference Return to API Reference index←packageNianticSpatial.Nsdk.MetaQuest NianticSpatial.Nsdk.MetaQuest←classXRTexture NianticSpatial.Nsdk.MetaQuest.XRTexture Method Copy Copy Declaration public void Copy(ref Texture2D target, Material copyMaterial = null, bool pushToGpu = true) Parameters NameTypeSummarytargetTexture2DThe 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.copyMaterialMaterialThe material to use for copying. If null, the format of the target must match the format of the XRTexture.pushToGpuboolWhether to push the texture data to the GPU after copying.
If the format is not compatible, the texture will be re-created with the format of the source texture.