I used the CameraHistoryItem according to the official website example and used it in the render pass. It works normally for Camera.Main, but I can’t see the correct result in the Scene window. By setting breakpoints, I found that in the Scene window, the cameraData.historyManager is always null, and the subsequent content cannot be executed.The following is the part of the code written in RecordRenderGraph:
UniversalCameraData cameraData = frameData.Get<UniversalCameraData>();
if (cameraData.historyManager == null) { return; }
cameraData.historyManager.RequestAccess<XXHistory>();
var history = cameraData.historyManager.GetHistoryForWrite<XXHistory>();
if (history != null)
{
var historyDesc = cameraData.cameraTargetDescriptor;
historyDesc.depthBufferBits = 0;
historyDesc.msaaSamples = 1;
history.Update(historyDesc);
RTHandle historyTexture = history?.currentTexture;
......
}