文档

Unity Engine

Unity Engine

UpdateExternalTexture(IntPtr)

Updates Unity texture to use different native texture object.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void UpdateExternalTexture(IntPtr nativeTex)

Parameters

nativeTex

Native 3D texture object.

Remarks

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 Texture3D.CreateExternalTexture, this function switches to another underlying texture object if/when it changes.
Additional Resources: Texture3D.CreateExternalTexture.