文档

Unity Engine

Unity Engine

IssuePluginCustomTextureUpdateV1(IntPtr, Texture, uint)

Deprecated. Use CommandBuffer.IssuePluginCustomTextureUpdateV2 instead.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
Deprecated. Use IssuePluginCustomTextureUpdateV2 to register TextureUpdate callbacks instead. Callbacks will be passed event IDs kUnityRenderingExtEventUpdateTextureBeginV2 or kUnityRenderingExtEventUpdateTextureEndV2, and data parameter of type UnityRenderingExtTextureUpdateParamsV2.
public void IssuePluginCustomTextureUpdateV1(IntPtr callback, Texture targetTexture, uint userData)

Parameters

callback

Native code callback to queue for Unity's renderer to invoke.

targetTexture

Texture resource to be updated.

userData

User data to send to the native plugin.

Remarks

Send a texture update event to a native code plugin.