-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [3.1.0-exp.3] - 2022-03-01 ### Changed - Upgraded the version of Input System package `1.3.0`. - Upgraded the version of WebRTC package `2.4.0-exp.6`. - Added microphone device option for streaming audio in the "Bidirectional" sample. - Integrate AR Foundation Sample (only use AR Foundation version 4.1.9, deprecated version 2.1) ### Fixed - Fixed the worker thread is not closed when stopping the signaling client. - Fixed keyboard input sending only sends one key at a time from browser. - Fixed video flipped vertically when uging GLES/GLCore graphics API. - Fixed the crach when encoding the high resolution on macOS using HWA. - Fixed the gap of the input position between sender and receiver. - Fixed the unexpected behaviour of input after using Gyro sample.
- Loading branch information
Unity Technologies
committed
Mar 1, 2022
1 parent
0e9bb06
commit ab9568d
Showing
63 changed files
with
548 additions
and
3,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
|
||
To control the camera on the remote PC, we need to link the input events on web browsers to the actions in Unity. **Input System** makes it easy to implement the input processing. | ||
|
||
## Check settings of Input System | ||
|
||
First, please check [the settings](use-inputsystem.md) for using Input System. | ||
|
||
## Adding components for input processing | ||
|
||
Open the Unity scene which created in [the previous page](create-camera.md), and select **Main Camera** in the Hierarchy window. Add the **Input Receiver** component in the Inspector window. | ||
|
@@ -12,6 +16,10 @@ The initial condition of the inspector of **Input Receiver** is below. | |
|
||
![Add InputReceiver component](images/inputreceiver_inspector.png) | ||
|
||
Add the **Input Receiver** component to the **Broadcast** component property. | ||
|
||
![Assign InputReceiver to streams](images/assign_inputreceiver_to_streams.png) | ||
|
||
## Setting Input Actions | ||
|
||
We will use the [**Input Actions**](https://docs.unity3d.com/Packages/[email protected]/manual/Actions.html) feature of the Input System. Input Actions is a mechanism for mapping various inputs to Unity actions, and it provides editing tools that make it easy for anyone to use. We will use Input Actions to define mouse actions. | ||
|
@@ -44,9 +52,9 @@ The result will look like this. Note that the last step is to press the **Save A | |
|
||
![Control camera 01](images/control_camera_07.png) | ||
|
||
## Setting `InputReceiver` component | ||
## Setting [`InputReceiver`](../api/Unity.RenderStreaming.InputReceiver.html) component | ||
|
||
Drag the **Control** asset to the **Input Actions** property of the `InputReceiver` component. | ||
Drag the **Control** asset to the **Input Actions** property of the [`InputReceiver`](../api/Unity.RenderStreaming.InputReceiver.html) component. | ||
|
||
![Control camera 01](images/assign_inputactions_to_inputreceiver.png) | ||
|
||
|
@@ -70,7 +78,7 @@ public class PlayerController : MonoBehaviour | |
} | ||
``` | ||
|
||
Once you have copied the script and saved the file, assign `PlayerController.Look` to the **InputReceiver** component's **Look** event. | ||
Once you have copied the script and saved the file, assign `PlayerController.Look` to the [`InputReceiver`](../api/Unity.RenderStreaming.InputReceiver.html) component's **Look** event. | ||
|
||
![Control camera 01](images/assign_event_to_inputreceiver.png) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ Check Package Manager window, Click `+` button and select `Add package from git | |
Input the string below to the input field. | ||
|
||
``` | ||
[email protected].2 | ||
[email protected].3 | ||
``` | ||
|
||
The list of version string is [here](https://github.com/Unity-Technologies/com.unity.renderstreaming/tags). In most cases, the latest version is recommended to use. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ Check Package Manager window, Click `+` button and select `Add package from git | |
Input the string below to the input field. | ||
|
||
``` | ||
[email protected].2 | ||
[email protected].3 | ||
``` | ||
|
||
The list of version string is [here](https://github.com/Unity-Technologies/com.unity.renderstreaming/tags). In most cases, the latest version is recommended to use. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.