Texture2D.UpdateExternalTexture

Switch to Manual
public void UpdateExternalTexture (IntPtr nativeTex);

Parameters

nativeTex原生 2D 纹理对象。

Description

更新 Unity 纹理以使用不同的原生纹理对象。

This function is mostly useful for native code plugins that create platform specific texture objects outside of Unity, and need to use these textures in Unity Scenes. For a texture created with CreateExternalTexture, this function switches to another underlying texture object if/when it changes.

另请参阅:CreateExternalTexture