realitycollective / com.realitytoolkit.core

The all-purpose framework for building the next reality
MIT License
3 stars 0 forks source link

FocusProvider warning when using SRP #117

Closed FejZa closed 1 month ago

FejZa commented 3 months ago

Overview

Your project uses a scriptable render pipeline. You can use Camera.stereoTargetEye only with the built-in renderer.
UnityEngine.Camera:set_stereoTargetEye (UnityEngine.StereoTargetEyeMask)
RealityToolkit.Input.Modules.FocusProvider:EnsureUiRaycastCameraSetup () (at ./Library/PackageCache/com.realitytoolkit.core/Runtime/Input/Modules/FocusProvider.cs:615)
RealityToolkit.Input.Modules.FocusProvider:get_UIRaycastCamera () (at ./Library/PackageCache/com.realitytoolkit.core/Runtime/Input/Modules/FocusProvider.cs:88)
RealityToolkit.Input.Interactables.InteractableCanvas:AssignWorldCanvasCamera () (at ./Library/PackageCache/com.realitytoolkit.core/Runtime/Input/Interactables/InteractableCanvas.cs:65)
RealityToolkit.Input.Interactables.InteractableCanvas:OnEnable () (at ./Library/PackageCache/com.realitytoolkit.core/Runtime/Input/Interactables/InteractableCanvas.cs:50)
SimonDarksideJ commented 3 months ago

Curious, I wonder what the SRP alternative is?

FejZa commented 1 month ago

SRP handles this internally and the property should simply not be used anymore in SRPs.