Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug in URP 10.2: Can no longer modify camera transform in beginCameraRendering event

Discussion in 'Universal Render Pipeline' started by ElliotB, Jan 5, 2021.

  1. ElliotB

    ElliotB

    Joined:
    Aug 11, 2013
    Posts:
    267
    Hi,

    I have a beginCameraRendering event which is used to position the camera and other objects before they are rendered (in this case, to remove pixel creep by snapping object positions to camera pixels). This worked fine URP 7 and URP 8.

    I've just updated to URP 10.2 and this feature no longer works. For URP 10.2, after modifying the camera transform during a beginCameraRendering event it will still use the previous transform for rendering (although, curiously, the updated transform is used for the purposes of frustum view culling and shadow maps). The old behavior still works if I use the events RenderPipelineManager.bergin/endFrameRendering, but that isn't really the same event.

    Cheers,
    Elliot
     
  2. pyphehe

    pyphehe

    Joined:
    Feb 17, 2018
    Posts:
    10
    Same problem for me