Skip to content

Commit

Permalink
Fix FocusProvider warning when using SRP
Browse files Browse the repository at this point in the history
  • Loading branch information
FejZa committed May 17, 2024
1 parent 0c3e70e commit f80bee5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Runtime/Input/Modules/FocusProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,12 @@ private void EnsureUiRaycastCameraSetup()
uiRaycastCamera.allowMSAA = false;
uiRaycastCamera.allowDynamicResolution = false;
uiRaycastCamera.targetDisplay = 0;
uiRaycastCamera.stereoTargetEye = StereoTargetEyeMask.Both;

if (RenderPipelineUtilities.GetActiveRenderingPipeline() == RealityToolkit.Definitions.Utilities.UnityRenderPipeline.Legacy)
{
uiRaycastCamera.stereoTargetEye = StereoTargetEyeMask.Both;
}

uiRaycastCamera.cullingMask = Camera.main.cullingMask;

if (uiRaycastCameraTargetTexture == null)
Expand Down

0 comments on commit f80bee5

Please sign in to comment.