ドキュメント

Unity Engine

Unity Engine

UpdateExternalTexture(nint)

Updates Unity texture to use different native texture object.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

UpdateExternalTexture(IntPtr)

public void UpdateExternalTexture(nint nativeTex)

Parameters

nativeTex

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