UpdateExternalTexture
7/14/25Less than 1 minute
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)