A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'Unity Render Streaming' started by GEESCAN, Dec 30, 2021.
how to select 3d object on web? raycast can not work.
Is this the same issue?
nope, I mean use ray to check 3d object in scene:
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if(Physics.Raycast(ray,out hit, 100f))
this work in editor,but can not work on web rendering ( RenderStreaming ).
You need to use Input System instead of legacy Input APIs.
tks it works， but there is another issue :
the mouse click point is not exactly， has some offset， use WebBrowserInput Example
How about other samples?
You can set the resolution of unity editor and web page to be the same value