Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit d87566c

Browse files
authored
Merge pull request #54 from DolbyIO/develop
1.2.0 PR
2 parents 763f3ab + ffe0e60 commit d87566c

File tree

555 files changed

+21492
-36961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

555 files changed

+21492
-36961
lines changed

.github/workflows/package.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Package Unity Plugin
2+
on: workflow_dispatch
3+
4+
jobs:
5+
package:
6+
runs-on: macos-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/upload-artifact@v3
10+
with:
11+
name: dolbyio-comms-unity-plugin
12+
path: ${{github.workspace}}/

Projects~/Demo/Assets/Character/Models.meta renamed to Assets.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Projects~/Demo/Assets/Environment/Art/Materials.meta renamed to Assets/Materials.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,26 @@ Material:
77
m_CorrespondingSourceObject: {fileID: 0}
88
m_PrefabInstance: {fileID: 0}
99
m_PrefabAsset: {fileID: 0}
10-
m_Name: Blue_Mat
11-
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
10+
m_Name: Video
11+
m_Shader: {fileID: 4800000, guid: 83986edd2cc4d4a55bc7e00079fd44fb, type: 3}
1212
m_ValidKeywords: []
13-
m_InvalidKeywords: []
13+
m_InvalidKeywords:
14+
- _SURFACE_TYPE_TRANSPARENT
1415
m_LightmapFlags: 4
1516
m_EnableInstancingVariants: 0
1617
m_DoubleSidedGI: 0
17-
m_CustomRenderQueue: 2000
18-
stringTagMap:
19-
RenderType: Opaque
20-
disabledShaderPasses: []
18+
m_CustomRenderQueue: -1
19+
stringTagMap: {}
20+
disabledShaderPasses:
21+
- DepthOnly
22+
- SHADOWCASTER
2123
m_SavedProperties:
2224
serializedVersion: 3
2325
m_TexEnvs:
26+
- _AlphaTex:
27+
m_Texture: {fileID: 0}
28+
m_Scale: {x: 1, y: 1}
29+
m_Offset: {x: 0, y: 0}
2430
- _BaseMap:
2531
m_Texture: {fileID: 0}
2632
m_Scale: {x: 1, y: 1}
@@ -79,41 +85,49 @@ Material:
7985
m_Offset: {x: 0, y: 0}
8086
m_Ints: []
8187
m_Floats:
88+
- PixelSnap: 0
8289
- _AlphaClip: 0
8390
- _Blend: 0
91+
- _BlendOp: 0
8492
- _BumpScale: 1
8593
- _ClearCoatMask: 0
8694
- _ClearCoatSmoothness: 0
8795
- _Cull: 2
8896
- _Cutoff: 0.5
8997
- _DetailAlbedoMapScale: 1
9098
- _DetailNormalMapScale: 1
91-
- _DstBlend: 0
99+
- _DstBlend: 10
100+
- _EnableExternalAlpha: 0
92101
- _EnvironmentReflections: 1
93-
- _GlossMapScale: 1
94-
- _Glossiness: 0.5
95-
- _GlossyReflections: 1
102+
- _GlossMapScale: 0
103+
- _Glossiness: 0
104+
- _GlossinessSource: 0
105+
- _GlossyReflections: 0
96106
- _Metallic: 0
97-
- _Mode: 0
98107
- _OcclusionStrength: 1
99-
- _Parallax: 0.02
108+
- _Parallax: 0.005
100109
- _QueueOffset: 0
101110
- _ReceiveShadows: 1
111+
- _SampleGI: 0
112+
- _Shininess: 0
102113
- _Smoothness: 0.5
114+
- _SmoothnessSource: 0
103115
- _SmoothnessTextureChannel: 0
116+
- _SpecSource: 0
104117
- _SpecularHighlights: 1
105-
- _SrcBlend: 1
106-
- _Surface: 0
107-
- _UVSec: 0
118+
- _SrcBlend: 5
119+
- _Surface: 1
108120
- _WorkflowMode: 1
109-
- _ZWrite: 1
121+
- _ZWrite: 0
110122
m_Colors:
111-
- _BaseColor: {r: 0.48507768, g: 0.67556465, b: 0.7830189, a: 1}
112-
- _Color: {r: 0.48507768, g: 0.6755646, b: 0.7830188, a: 1}
123+
- _BaseColor: {r: 1, g: 0.9764151, b: 0.9764151, a: 1}
124+
- _Color: {r: 1, g: 0.9764151, b: 0.9764151, a: 1}
113125
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
114-
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
126+
- _Flip: {r: 1, g: 1, b: 1, a: 1}
127+
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
128+
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
115129
m_BuildTextureStacks: []
116-
--- !u!114 &3492286539524700102
130+
--- !u!114 &9170485700502161804
117131
MonoBehaviour:
118132
m_ObjectHideFlags: 11
119133
m_CorrespondingSourceObject: {fileID: 0}
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Projects~/Demo/Assets/Mobile/Scripts.meta renamed to Assets/Scripts.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Projects~/Demo/Assets/Environment/Shaders.meta renamed to Assets/Shaders.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Shaders/Video.shader

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
Shader "Unlit/Video"
2+
{
3+
Properties
4+
{
5+
_MainTex ("Texture", 2D) = "black" {}
6+
}
7+
SubShader
8+
{
9+
Tags { "RenderType"="Opaque" }
10+
LOD 100
11+
12+
Pass
13+
{
14+
CGPROGRAM
15+
#pragma vertex vert
16+
#pragma fragment frag
17+
// make fog work
18+
#pragma multi_compile_fog
19+
20+
#include "UnityCG.cginc"
21+
22+
struct appdata
23+
{
24+
float4 vertex : POSITION;
25+
float2 uv : TEXCOORD0;
26+
};
27+
28+
struct v2f
29+
{
30+
float2 uv : TEXCOORD0;
31+
UNITY_FOG_COORDS(1)
32+
float4 vertex : SV_POSITION;
33+
};
34+
35+
sampler2D _MainTex;
36+
float4 _MainTex_ST;
37+
38+
v2f vert (appdata v)
39+
{
40+
v2f o;
41+
o.vertex = UnityObjectToClipPos(v.vertex);
42+
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
43+
return o;
44+
}
45+
46+
fixed4 frag (v2f i) : SV_Target
47+
{
48+
// sample the texture
49+
fixed4 col = tex2D(_MainTex, i.uv);
50+
return col;
51+
}
52+
ENDCG
53+
}
54+
}
55+
}

Assets/Shaders/Video.shader.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/WelcomeWindow.cs

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -65,28 +65,6 @@ void OnGUI()
6565

6666
GUILayout.Space(40);
6767

68-
GUILayout.BeginHorizontal();
69-
GUILayout.FlexibleSpace();
70-
if (GUILayout.Button("Getting Started", GUILayout.Height(30)))
71-
{
72-
Application.OpenURL("https://api-references.dolby.io/comms-sdk-dotnet/documentation/unity/getting-started/example.html");
73-
}
74-
GUILayout.FlexibleSpace();
75-
GUILayout.EndHorizontal();
76-
77-
GUILayout.Space(5);
78-
79-
GUILayout.BeginHorizontal();
80-
GUILayout.FlexibleSpace();
81-
if (GUILayout.Button("Visual Scripting", GUILayout.Height(30)))
82-
{
83-
Application.OpenURL("https://api-references.dolby.io/comms-sdk-dotnet/documentation/unity/visualscripting/nodes.html");
84-
}
85-
GUILayout.FlexibleSpace();
86-
GUILayout.EndHorizontal();
87-
88-
GUILayout.Space(40);
89-
9068
GUILayout.BeginHorizontal();
9169
GUILayout.FlexibleSpace();
9270
GUILayout.Label("Insert your App Key to get started:");
@@ -101,10 +79,17 @@ void OnGUI()
10179
GUILayout.FlexibleSpace();
10280
GUILayout.EndHorizontal();
10381

104-
GUILayout.Space(10);
82+
GUILayout.Space(15);
10583

10684
GUILayout.BeginHorizontal();
10785
GUILayout.FlexibleSpace();
86+
if (GUILayout.Button("How to get an App Key", GUILayout.Height(30)))
87+
{
88+
Application.OpenURL("https://docs.dolby.io/communications-apis/page/registering-your-application-in-the-unity-editor");
89+
}
90+
91+
GUILayout.Space(60);
92+
10893
if (GUILayout.Button("Begin", GUILayout.Width(50), GUILayout.Height(30)))
10994
{
11095
var result = VSAttribution.SendAttributionEvent(_actionName, CustomerKey);
@@ -126,26 +111,24 @@ void OnGUI()
126111
GUILayout.FlexibleSpace();
127112
GUILayout.EndHorizontal();
128113

129-
GUILayout.Space(20);
114+
GUILayout.Space(40);
130115

131116
GUILayout.BeginHorizontal();
132117
GUILayout.FlexibleSpace();
133-
GUILayout.Label("You can find your App Key in the Dolby.io dashboard at");
134-
if (GUILayout.Button("https://dashboard.dolby.io", EditorStyles.linkLabel))
118+
if (GUILayout.Button("Getting Started", GUILayout.Height(30)))
135119
{
136-
Application.OpenURL("https://dashboard.dolby.io");
120+
Application.OpenURL("https://api-references.dolby.io/comms-sdk-dotnet/documentation/unity/getting-started/example.html");
137121
}
138122
GUILayout.FlexibleSpace();
139123
GUILayout.EndHorizontal();
140124

141-
GUILayout.Space(10);
125+
GUILayout.Space(5);
142126

143127
GUILayout.BeginHorizontal();
144128
GUILayout.FlexibleSpace();
145-
GUILayout.Label("For help, see");
146-
if (GUILayout.Button("here", EditorStyles.linkLabel))
129+
if (GUILayout.Button("Visual Scripting", GUILayout.Height(30)))
147130
{
148-
Application.OpenURL("https://docs.dolby.io/communications-apis/docs/guides-api-authentication#locating-your-app-key-and-app-secret");
131+
Application.OpenURL("https://api-references.dolby.io/comms-sdk-dotnet/documentation/unity/visualscripting/nodes.html");
149132
}
150133
GUILayout.FlexibleSpace();
151134
GUILayout.EndHorizontal();

0 commit comments

Comments
 (0)