screenSizeOverride in URP does nothing?

Pretty much the title. The documentation reads:

https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@14.0/api/UnityEngine.Rendering.Universal.UniversalAdditionalCameraData.html#UnityEngine_Rendering_Universal_UniversalAdditionalCameraData_screenSizeOverride

public Vector4 screenSizeOverride { get; set; }

‘Screen size used when Screen Coordinates Override is active.’

But no matter what I set (including the mentioned override) I cannot get this to change camera behavior in URP. I opened up the source for URP on github, and the only references I can see to this field on cameraData are setting it a value, but it doesn’t appear to be read. Does this actually do anything?

(First time posting in the new forums, and this was a confusing experience. Apologies if this ended up in the wrong area?)

Cheers,
Elliot

Ok, so this does do something - see the test here for an easy way to replicate it:

But it doesn’t do what I expected! What this does is override screen properties used for postprocess effects such as lens distortion or vignette. It does not change/override the output screen size texture.

1 Like