Skip to main content

Texture2D.UpdateExternalTexture(IntPtr nativeTex)

Updates Unity texture to use different native texture object.

Parameters:

NameTypeDescription
nativeTexIntPtrNative 2D texture object.

Usage

---@type Texture2D
local texture2d;

---@type IntPtr
local nativeTex;


texture2d.UpdateExternalTexture(nativeTex)