Experimental: this API is experimental and might be changed or removed in the future.

PaintContext.destinationRenderTexture

切换到手册
public RenderTexture destinationRenderTexture ;

描述

(只读)写入编辑操作以修改数据的 RenderTexture。

此 RenderTexture 存储 PaintContext 代表的已修改数据。 地形工具通常从 sourceRenderTexture 读取,修改数据,然后写入到 /destinationRenderTexture/。 Scatter 函数(PaintContext.ScatterHeightmapPaintContext.ScatterAlphamap)从 destinationRenderTexture 读取,从而将已修改数据送回源地形瓦片。 destinationRenderTexturePaintContext.CreateRenderTargets 创建,其大小和格式与 sourceRenderTexture 匹配。

另请参阅:PaintContextPaintContext.sourceRenderTexture