-
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.
com.unity.renderstreaming@3.0.1-preview
## [3.0.1] - 2021-03-04 ### Fixed - Fixed a script error when importing the package sample ### Changed - `Camerastreamer` uses a `TargetTexture` on the `Camera` component if the `RenderTexture` is attached on the `Camera`. ## [3.0.0] - 2021-03-02 Version 3.0.0 has a big change in the package design. This mainly addresses moving scripts from the sample folder to Package Manager. ### Added - Supported iOS platform. - Added new samples. - Added a documentation for samples. - Added components (`InputSystemChannelSender`, `InputSystemChannelReceiver`, `WebBrowserInputChannelReceiver`, `SingleConnection` and `Broadcast`). ### Changed - Moved scripts from the sample folder to Package Manager. - Upgrading WebRTC package to `2.3.3-preview`.
- Loading branch information
Unity Technologies
committed
Mar 4, 2021
1 parent
be149cd
commit 814fab7
Showing
11 changed files
with
130 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System.Linq; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace Unity.RenderStreaming.Editor | ||
{ | ||
[CustomEditor(typeof(CameraStreamer))] | ||
public class CameraStreamerEditor : UnityEditor.Editor | ||
{ | ||
readonly GUIContent[] renderTextureAntiAliasing = new GUIContent[4] | ||
{ | ||
EditorGUIUtility.TrTextContent("None"), | ||
EditorGUIUtility.TrTextContent("2 samples"), | ||
EditorGUIUtility.TrTextContent("4 samples"), | ||
EditorGUIUtility.TrTextContent("8 samples") | ||
}; | ||
|
||
readonly int[] renderTextureAntiAliasingValues = new int[4] {1, 2, 4, 8}; | ||
|
||
readonly GUIContent antiAliasing = | ||
EditorGUIUtility.TrTextContent("Anti-aliasing", "Number of anti-aliasing samples."); | ||
|
||
readonly GUIContent[] renderTextureDepthBuffer = new GUIContent[3] | ||
{ | ||
EditorGUIUtility.TrTextContent("No depth buffer"), | ||
EditorGUIUtility.TrTextContent("At least 16 bits depth (no stencil)"), | ||
EditorGUIUtility.TrTextContent("At least 24 bits depth (with stencil)") | ||
}; | ||
|
||
readonly int[] renderTextureDepthBufferValues = new int[3] {0, 16, 24}; | ||
|
||
readonly GUIContent depthBuffer = EditorGUIUtility.TrTextContent("Depth Buffer", "Format of the depth buffer."); | ||
|
||
public override void OnInspectorGUI() | ||
{ | ||
serializedObject.Update(); | ||
|
||
EditorGUILayout.PropertyField(serializedObject.FindProperty("streamingSize")); | ||
var antiAliasingProperty = serializedObject.FindProperty("antiAliasing"); | ||
EditorGUILayout.IntPopup(antiAliasingProperty, renderTextureAntiAliasing, renderTextureAntiAliasingValues, antiAliasing); | ||
var depthBufferProperty = serializedObject.FindProperty("depth"); | ||
EditorGUILayout.IntPopup(depthBufferProperty, renderTextureDepthBuffer, renderTextureDepthBufferValues, depthBuffer); | ||
|
||
serializedObject.ApplyModifiedProperties(); | ||
|
||
EditorGUILayout.HelpBox("If TargetTexture is attached on Camera, use that RenderTexture setting first.", MessageType.Info); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
Samples~/Example/Gyro/Unity.RenderStreaming.GyroSample.asmdef
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "Unity.RenderStreaming.GyroSample", | ||
"references": [ | ||
"Unity.InputSystem", | ||
"Unity.RenderStreaming.Runtime" | ||
], | ||
"includePlatforms": [], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
7 changes: 7 additions & 0 deletions
7
Samples~/Example/Gyro/Unity.RenderStreaming.GyroSample.asmdef.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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