Open
Description
Package version
3.1.0-exp.7
Environment
* OS:Windows
* Unity version: 2022.4.3f1
* Graphics API: Not relevant
* Browser: Chrome 115.0.5790.170 (Build officiel) (64 bits) (cohort: Stable)
Steps To Reproduce
- Create a blank Unity project
- Add the com.unity.renderstreaming package in the latest version and fix all issues detected by the wizard window.
- Import the com.unity.renderstreaming package sample in the project.
- Modify the existing CameraControl input map by adding an action that listen on Mouse left with a multi tap interaction:
- Add the following line in the
Start
method ofBroadcastSample.cs
:map["DoubleClick"].AddListener((a) => Debug.LogError($"[Input Receiver] double click {Time.realtimeSinceStartup} {a.phase} {a.ReadValue<float>()}"));
- Download the server app through the wizard, launch it, launch the Broadcast scene
- Open Chrome on the appropriate page (receiver/index.html) and double click in the canvas element.
- Look at the logs in Unity.
Current Behavior
The double click action is starting but canceled right away as we can see in the log.
Expected Behavior
The double click action should be triggered when a double click is done.
Anything else?
On the same scene I have a PlayerInput using the same action map and a similar script to print logs. This way the events are handled directly in Unity without the UnityRenderStreaming and WebRTC part. In that case the logs show that the double click is correctly detected when I perform it.