Is the cameraData.historyManager of the SceneView always null?

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;
......
}
1 Like

I’m not surprised. The Scene view is for editing, and renders differently than the Game view in certain aspects. It won’t render lighting accurately for instance. On the other hand it renders additional things like outlines, colliders, grid, icons, handles and so forth. Even if there were historical data of past frames available, and whatever you intend to render with them, it just wouldn’t look anything like in the game view.