Api > Texture2D > UpdateExternalTexture()
Texture2D.UpdateExternalTexture(IntPtr nativeTex)⚓︎
Updates Unity texture to use different native texture object.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
nativeTex | IntPtr | Native 2D texture object. |
Usage⚓︎
---@type Texture2D
local texture2d;
---@type IntPtr
local nativeTex;
texture2d.UpdateExternalTexture(nativeTex)