Dave Boyle

Basic client / server communication working. Successfully sending messages over …

…the network to load a video.
Showing 222 changed files with 4407 additions and 0 deletions
No preview for this file type
1 +fileFormatVersion: 2
2 +guid: 37da56ded89bead4c8fe5d5e119efa06
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 638fde39baec37944bf5f23e4583cf9e
3 +folderAsset: yes
4 +timeCreated: 1464981812
5 +licenseType: Pro
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 3df1765d650dcc64a87b0591ada0d885
3 +folderAsset: yes
4 +timeCreated: 1464981785
5 +licenseType: Pro
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 38f35a7700670f241a99d8d45a9141fe
3 +folderAsset: yes
4 +timeCreated: 1464981785
5 +licenseType: Pro
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!29 &1
4 +SceneSettings:
5 + m_ObjectHideFlags: 0
6 + m_PVSData:
7 + m_PVSObjectsArray: []
8 + m_PVSPortalsArray: []
9 + m_OcclusionBakeSettings:
10 + smallestOccluder: 5
11 + smallestHole: .25
12 + backfaceThreshold: 100
13 +--- !u!104 &2
14 +RenderSettings:
15 + m_Fog: 0
16 + m_FogColor: {r: .5, g: .5, b: .5, a: 1}
17 + m_FogMode: 3
18 + m_FogDensity: .00999999978
19 + m_LinearFogStart: 0
20 + m_LinearFogEnd: 300
21 + m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
22 + m_SkyboxMaterial: {fileID: 0}
23 + m_HaloStrength: .5
24 + m_FlareStrength: 1
25 + m_FlareFadeSpeed: 3
26 + m_HaloTexture: {fileID: 0}
27 + m_SpotCookie: {fileID: 0}
28 + m_ObjectHideFlags: 0
29 +--- !u!127 &3
30 +LevelGameManager:
31 + m_ObjectHideFlags: 0
32 +--- !u!157 &4
33 +LightmapSettings:
34 + m_ObjectHideFlags: 0
35 + m_LightProbes: {fileID: 0}
36 + m_Lightmaps: []
37 + m_LightmapsMode: 1
38 + m_BakedColorSpace: 0
39 + m_UseDualLightmapsInForward: 0
40 + m_LightmapEditorSettings:
41 + m_Resolution: 50
42 + m_LastUsedResolution: 0
43 + m_TextureWidth: 1024
44 + m_TextureHeight: 1024
45 + m_BounceBoost: 1
46 + m_BounceIntensity: 1
47 + m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
48 + m_SkyLightIntensity: 0
49 + m_Quality: 0
50 + m_Bounces: 1
51 + m_FinalGatherRays: 1000
52 + m_FinalGatherContrastThreshold: .0500000007
53 + m_FinalGatherGradientThreshold: 0
54 + m_FinalGatherInterpolationPoints: 15
55 + m_AOAmount: 0
56 + m_AOMaxDistance: .100000001
57 + m_AOContrast: 1
58 + m_LODSurfaceMappingDistance: 1
59 + m_Padding: 0
60 + m_TextureCompression: 0
61 + m_LockAtlas: 0
62 +--- !u!1 &5
63 +GameObject:
64 + m_ObjectHideFlags: 0
65 + m_PrefabParentObject: {fileID: 0}
66 + m_PrefabInternal: {fileID: 0}
67 + serializedVersion: 4
68 + m_Component:
69 + - 4: {fileID: 6}
70 + - 20: {fileID: 7}
71 + - 92: {fileID: 8}
72 + - 81: {fileID: 9}
73 + - 114: {fileID: 10}
74 + m_Layer: 0
75 + m_Name: Main Camera
76 + m_TagString: MainCamera
77 + m_Icon: {fileID: 0}
78 + m_NavMeshLayer: 0
79 + m_StaticEditorFlags: 0
80 + m_IsActive: 1
81 +--- !u!4 &6
82 +Transform:
83 + m_ObjectHideFlags: 0
84 + m_PrefabParentObject: {fileID: 0}
85 + m_PrefabInternal: {fileID: 0}
86 + m_GameObject: {fileID: 5}
87 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
88 + m_LocalPosition: {x: 0, y: 0, z: 0}
89 + m_LocalScale: {x: 1, y: 1, z: 1}
90 + m_Children: []
91 + m_Father: {fileID: 0}
92 + m_RootOrder: 1
93 +--- !u!20 &7
94 +Camera:
95 + m_ObjectHideFlags: 0
96 + m_PrefabParentObject: {fileID: 0}
97 + m_PrefabInternal: {fileID: 0}
98 + m_GameObject: {fileID: 5}
99 + m_Enabled: 1
100 + serializedVersion: 2
101 + m_ClearFlags: 2
102 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: .0196078438}
103 + m_NormalizedViewPortRect:
104 + serializedVersion: 2
105 + x: 0
106 + y: 0
107 + width: 1
108 + height: 1
109 + near clip plane: .150000006
110 + far clip plane: 1000
111 + field of view: 70
112 + orthographic: 0
113 + orthographic size: 100
114 + m_Depth: 0
115 + m_CullingMask:
116 + serializedVersion: 2
117 + m_Bits: 4294967295
118 + m_RenderingPath: -1
119 + m_TargetTexture: {fileID: 0}
120 + m_TargetDisplay: 0
121 + m_HDR: 0
122 + m_OcclusionCulling: 0
123 + m_StereoConvergence: 10
124 + m_StereoSeparation: .0219999999
125 +--- !u!92 &8
126 +Behaviour:
127 + m_ObjectHideFlags: 0
128 + m_PrefabParentObject: {fileID: 0}
129 + m_PrefabInternal: {fileID: 0}
130 + m_GameObject: {fileID: 5}
131 + m_Enabled: 1
132 +--- !u!81 &9
133 +AudioListener:
134 + m_ObjectHideFlags: 0
135 + m_PrefabParentObject: {fileID: 0}
136 + m_PrefabInternal: {fileID: 0}
137 + m_GameObject: {fileID: 5}
138 + m_Enabled: 1
139 +--- !u!114 &10
140 +MonoBehaviour:
141 + m_ObjectHideFlags: 0
142 + m_PrefabParentObject: {fileID: 0}
143 + m_PrefabInternal: {fileID: 0}
144 + m_GameObject: {fileID: 5}
145 + m_Enabled: 1
146 + m_EditorHideFlags: 0
147 + m_Script: {fileID: 11500000, guid: bc18b279b733ab946888907433108fa5, type: 3}
148 + m_Name:
149 + m_EditorClassIdentifier:
150 +--- !u!196 &11
151 +NavMeshSettings:
152 + m_ObjectHideFlags: 0
153 + m_BuildSettings:
154 + agentRadius: .5
155 + agentHeight: 2
156 + agentSlope: 45
157 + agentClimb: .400000006
158 + ledgeDropHeight: 0
159 + maxJumpAcrossDistance: 0
160 + accuratePlacement: 0
161 + minRegionArea: 2
162 + widthInaccuracy: 16.666666
163 + heightInaccuracy: 10
164 + m_NavMesh: {fileID: 0}
165 +--- !u!1 &782348078
166 +GameObject:
167 + m_ObjectHideFlags: 0
168 + m_PrefabParentObject: {fileID: 0}
169 + m_PrefabInternal: {fileID: 0}
170 + serializedVersion: 4
171 + m_Component:
172 + - 4: {fileID: 782348080}
173 + - 114: {fileID: 782348079}
174 + m_Layer: 0
175 + m_Name: MovieManager
176 + m_TagString: Untagged
177 + m_Icon: {fileID: 0}
178 + m_NavMeshLayer: 0
179 + m_StaticEditorFlags: 0
180 + m_IsActive: 1
181 +--- !u!114 &782348079
182 +MonoBehaviour:
183 + m_ObjectHideFlags: 0
184 + m_PrefabParentObject: {fileID: 0}
185 + m_PrefabInternal: {fileID: 0}
186 + m_GameObject: {fileID: 782348078}
187 + m_Enabled: 1
188 + m_EditorHideFlags: 0
189 + m_Script: {fileID: 11500000, guid: e97ef6d0bfd7238498bb990e58ae4ca2, type: 3}
190 + m_Name:
191 + m_EditorClassIdentifier:
192 + _logVideoLoads: 1
193 + _useExternalTextures: 0
194 +--- !u!4 &782348080
195 +Transform:
196 + m_ObjectHideFlags: 0
197 + m_PrefabParentObject: {fileID: 0}
198 + m_PrefabInternal: {fileID: 0}
199 + m_GameObject: {fileID: 782348078}
200 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
201 + m_LocalPosition: {x: 0, y: 0, z: 0}
202 + m_LocalScale: {x: 1, y: 1, z: 1}
203 + m_Children: []
204 + m_Father: {fileID: 0}
205 + m_RootOrder: 3
206 +--- !u!1 &1074124163
207 +GameObject:
208 + m_ObjectHideFlags: 0
209 + m_PrefabParentObject: {fileID: 0}
210 + m_PrefabInternal: {fileID: 0}
211 + serializedVersion: 4
212 + m_Component:
213 + - 4: {fileID: 1074124166}
214 + - 33: {fileID: 1074124165}
215 + - 23: {fileID: 1074124164}
216 + m_Layer: 0
217 + m_Name: Sphere
218 + m_TagString: Untagged
219 + m_Icon: {fileID: 0}
220 + m_NavMeshLayer: 0
221 + m_StaticEditorFlags: 0
222 + m_IsActive: 1
223 +--- !u!23 &1074124164
224 +Renderer:
225 + m_ObjectHideFlags: 0
226 + m_PrefabParentObject: {fileID: 0}
227 + m_PrefabInternal: {fileID: 0}
228 + m_GameObject: {fileID: 1074124163}
229 + m_Enabled: 1
230 + m_CastShadows: 0
231 + m_ReceiveShadows: 0
232 + m_LightmapIndex: 255
233 + m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
234 + m_Materials:
235 + - {fileID: 2100000, guid: ab72c05bbf469b14b8dc263f3da57a6b, type: 2}
236 + m_SubsetIndices:
237 + m_StaticBatchRoot: {fileID: 0}
238 + m_UseLightProbes: 0
239 + m_LightProbeAnchor: {fileID: 0}
240 + m_ScaleInLightmap: 1
241 + m_SortingLayerID: 0
242 + m_SortingOrder: 0
243 +--- !u!33 &1074124165
244 +MeshFilter:
245 + m_ObjectHideFlags: 0
246 + m_PrefabParentObject: {fileID: 0}
247 + m_PrefabInternal: {fileID: 0}
248 + m_GameObject: {fileID: 1074124163}
249 + m_Mesh: {fileID: 4300000, guid: a52e7a3bc245b48dead7ed46dc38ecec, type: 2}
250 +--- !u!4 &1074124166
251 +Transform:
252 + m_ObjectHideFlags: 0
253 + m_PrefabParentObject: {fileID: 0}
254 + m_PrefabInternal: {fileID: 0}
255 + m_GameObject: {fileID: 1074124163}
256 + m_LocalRotation: {x: 0, y: 1, z: 0, w: -4.37113883e-08}
257 + m_LocalPosition: {x: 0, y: 0, z: 0}
258 + m_LocalScale: {x: 1, y: 1, z: 1}
259 + m_Children: []
260 + m_Father: {fileID: 0}
261 + m_RootOrder: 4
262 +--- !u!1 &1848005465
263 +GameObject:
264 + m_ObjectHideFlags: 0
265 + m_PrefabParentObject: {fileID: 0}
266 + m_PrefabInternal: {fileID: 0}
267 + serializedVersion: 4
268 + m_Component:
269 + - 4: {fileID: 1848005466}
270 + - 114: {fileID: 1848005467}
271 + m_Layer: 0
272 + m_Name: DemoInfo
273 + m_TagString: Untagged
274 + m_Icon: {fileID: 0}
275 + m_NavMeshLayer: 0
276 + m_StaticEditorFlags: 0
277 + m_IsActive: 1
278 +--- !u!4 &1848005466
279 +Transform:
280 + m_ObjectHideFlags: 0
281 + m_PrefabParentObject: {fileID: 0}
282 + m_PrefabInternal: {fileID: 0}
283 + m_GameObject: {fileID: 1848005465}
284 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
285 + m_LocalPosition: {x: 0, y: 0, z: 0}
286 + m_LocalScale: {x: 1, y: 1, z: 1}
287 + m_Children: []
288 + m_Father: {fileID: 0}
289 + m_RootOrder: 0
290 +--- !u!114 &1848005467
291 +MonoBehaviour:
292 + m_ObjectHideFlags: 0
293 + m_PrefabParentObject: {fileID: 0}
294 + m_PrefabInternal: {fileID: 0}
295 + m_GameObject: {fileID: 1848005465}
296 + m_Enabled: 1
297 + m_EditorHideFlags: 0
298 + m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
299 + m_Name:
300 + m_EditorClassIdentifier:
301 + _title: 360 Sphere Video
302 + _description: This demo shows playback of a 360 degree VR equirectangular video. Use
303 + the mouse to look around.
304 +--- !u!1 &1853078886
305 +GameObject:
306 + m_ObjectHideFlags: 0
307 + m_PrefabParentObject: {fileID: 0}
308 + m_PrefabInternal: {fileID: 0}
309 + serializedVersion: 4
310 + m_Component:
311 + - 4: {fileID: 1853078887}
312 + - 114: {fileID: 1853078888}
313 + - 114: {fileID: 1853078890}
314 + m_Layer: 0
315 + m_Name: Movie
316 + m_TagString: Untagged
317 + m_Icon: {fileID: 0}
318 + m_NavMeshLayer: 0
319 + m_StaticEditorFlags: 0
320 + m_IsActive: 1
321 +--- !u!4 &1853078887
322 +Transform:
323 + m_ObjectHideFlags: 0
324 + m_PrefabParentObject: {fileID: 0}
325 + m_PrefabInternal: {fileID: 0}
326 + m_GameObject: {fileID: 1853078886}
327 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
328 + m_LocalPosition: {x: 0, y: 0, z: 0}
329 + m_LocalScale: {x: 1, y: 1, z: 1}
330 + m_Children: []
331 + m_Father: {fileID: 0}
332 + m_RootOrder: 2
333 +--- !u!114 &1853078888
334 +MonoBehaviour:
335 + m_ObjectHideFlags: 0
336 + m_PrefabParentObject: {fileID: 0}
337 + m_PrefabInternal: {fileID: 0}
338 + m_GameObject: {fileID: 1853078886}
339 + m_Enabled: 1
340 + m_EditorHideFlags: 0
341 + m_Script: {fileID: 11500000, guid: 8225388bc511e1f40be2e753ddefe282, type: 3}
342 + m_Name:
343 + m_EditorClassIdentifier:
344 + _folder:
345 + _filename: sample-sphere-1024x512-divx.avi
346 + _useStreamingAssetsPath: 1
347 + _loop: 1
348 + _colourFormat: 2
349 + _allowAudio: 0
350 + _useAudioDelay: 0
351 + _useAudioMixer: 0
352 + _useDisplaySync: 0
353 + _loadOnStart: 1
354 + _playOnStart: 1
355 + _editorPreview: 0
356 + _ignoreFlips: 1
357 + _volume: .5
358 + _audioBalance: 0
359 + _textureFilterMode: 1
360 + _textureWrapMode: 1
361 + _clips: []
362 +--- !u!114 &1853078890
363 +MonoBehaviour:
364 + m_ObjectHideFlags: 0
365 + m_PrefabParentObject: {fileID: 0}
366 + m_PrefabInternal: {fileID: 0}
367 + m_GameObject: {fileID: 1853078886}
368 + m_Enabled: 1
369 + m_EditorHideFlags: 0
370 + m_Script: {fileID: 11500000, guid: 72fc29f9cbb939141bc513bfa454dbaa, type: 3}
371 + m_Name:
372 + m_EditorClassIdentifier:
373 + _mesh: {fileID: 1074124164}
374 + _movie: {fileID: 1853078888}
375 + _defaultTexture: {fileID: 0}
1 +fileFormatVersion: 2
2 +guid: e3d8fcbaa9c16d94e8e00718bef11898
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: c19938fc9bd298241bff54a2407c0533
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!29 &1
4 +SceneSettings:
5 + m_ObjectHideFlags: 0
6 + m_PVSData:
7 + m_PVSObjectsArray: []
8 + m_PVSPortalsArray: []
9 + m_OcclusionBakeSettings:
10 + smallestOccluder: 5
11 + smallestHole: .25
12 + backfaceThreshold: 100
13 +--- !u!104 &2
14 +RenderSettings:
15 + m_Fog: 0
16 + m_FogColor: {r: .5, g: .5, b: .5, a: 1}
17 + m_FogMode: 3
18 + m_FogDensity: .00999999978
19 + m_LinearFogStart: 0
20 + m_LinearFogEnd: 300
21 + m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
22 + m_SkyboxMaterial: {fileID: 0}
23 + m_HaloStrength: .5
24 + m_FlareStrength: 1
25 + m_FlareFadeSpeed: 3
26 + m_HaloTexture: {fileID: 0}
27 + m_SpotCookie: {fileID: 0}
28 + m_ObjectHideFlags: 0
29 +--- !u!127 &3
30 +LevelGameManager:
31 + m_ObjectHideFlags: 0
32 +--- !u!157 &4
33 +LightmapSettings:
34 + m_ObjectHideFlags: 0
35 + m_LightProbes: {fileID: 0}
36 + m_Lightmaps: []
37 + m_LightmapsMode: 1
38 + m_BakedColorSpace: 0
39 + m_UseDualLightmapsInForward: 0
40 + m_LightmapEditorSettings:
41 + m_Resolution: 50
42 + m_LastUsedResolution: 0
43 + m_TextureWidth: 1024
44 + m_TextureHeight: 1024
45 + m_BounceBoost: 1
46 + m_BounceIntensity: 1
47 + m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
48 + m_SkyLightIntensity: 0
49 + m_Quality: 0
50 + m_Bounces: 1
51 + m_FinalGatherRays: 1000
52 + m_FinalGatherContrastThreshold: .0500000007
53 + m_FinalGatherGradientThreshold: 0
54 + m_FinalGatherInterpolationPoints: 15
55 + m_AOAmount: 0
56 + m_AOMaxDistance: .100000001
57 + m_AOContrast: 1
58 + m_LODSurfaceMappingDistance: 1
59 + m_Padding: 0
60 + m_TextureCompression: 0
61 + m_LockAtlas: 0
62 +--- !u!196 &5
63 +NavMeshSettings:
64 + m_ObjectHideFlags: 0
65 + m_BuildSettings:
66 + agentRadius: .5
67 + agentHeight: 2
68 + agentSlope: 45
69 + agentClimb: .400000006
70 + ledgeDropHeight: 0
71 + maxJumpAcrossDistance: 0
72 + accuratePlacement: 0
73 + minRegionArea: 2
74 + widthInaccuracy: 16.666666
75 + heightInaccuracy: 10
76 + m_NavMesh: {fileID: 0}
77 +--- !u!1 &1976860020
78 +GameObject:
79 + m_ObjectHideFlags: 0
80 + m_PrefabParentObject: {fileID: 0}
81 + m_PrefabInternal: {fileID: 0}
82 + serializedVersion: 4
83 + m_Component:
84 + - 4: {fileID: 1976860021}
85 + - 20: {fileID: 1976860022}
86 + - 92: {fileID: 1976860024}
87 + - 124: {fileID: 1976860025}
88 + - 81: {fileID: 1976860023}
89 + - 114: {fileID: 1976860026}
90 + - 114: {fileID: 1976860027}
91 + - 114: {fileID: 1976860028}
92 + m_Layer: 0
93 + m_Name: Main Camera
94 + m_TagString: MainCamera
95 + m_Icon: {fileID: 0}
96 + m_NavMeshLayer: 0
97 + m_StaticEditorFlags: 0
98 + m_IsActive: 1
99 +--- !u!4 &1976860021
100 +Transform:
101 + m_ObjectHideFlags: 0
102 + m_PrefabParentObject: {fileID: 0}
103 + m_PrefabInternal: {fileID: 0}
104 + m_GameObject: {fileID: 1976860020}
105 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
106 + m_LocalPosition: {x: 0, y: 1, z: -10}
107 + m_LocalScale: {x: 1, y: 1, z: 1}
108 + m_Children: []
109 + m_Father: {fileID: 0}
110 + m_RootOrder: 0
111 +--- !u!20 &1976860022
112 +Camera:
113 + m_ObjectHideFlags: 0
114 + m_PrefabParentObject: {fileID: 0}
115 + m_PrefabInternal: {fileID: 0}
116 + m_GameObject: {fileID: 1976860020}
117 + m_Enabled: 1
118 + serializedVersion: 2
119 + m_ClearFlags: 1
120 + m_BackGroundColor: {r: .097014904, g: .097014904, b: .097014904, a: .0196078438}
121 + m_NormalizedViewPortRect:
122 + serializedVersion: 2
123 + x: 0
124 + y: 0
125 + width: 1
126 + height: 1
127 + near clip plane: .300000012
128 + far clip plane: 1000
129 + field of view: 60
130 + orthographic: 0
131 + orthographic size: 100
132 + m_Depth: -1
133 + m_CullingMask:
134 + serializedVersion: 2
135 + m_Bits: 4294967295
136 + m_RenderingPath: -1
137 + m_TargetTexture: {fileID: 0}
138 + m_TargetDisplay: 0
139 + m_HDR: 0
140 + m_OcclusionCulling: 0
141 + m_StereoConvergence: 10
142 + m_StereoSeparation: .0219999999
143 +--- !u!81 &1976860023
144 +AudioListener:
145 + m_ObjectHideFlags: 0
146 + m_PrefabParentObject: {fileID: 0}
147 + m_PrefabInternal: {fileID: 0}
148 + m_GameObject: {fileID: 1976860020}
149 + m_Enabled: 1
150 +--- !u!92 &1976860024
151 +Behaviour:
152 + m_ObjectHideFlags: 0
153 + m_PrefabParentObject: {fileID: 0}
154 + m_PrefabInternal: {fileID: 0}
155 + m_GameObject: {fileID: 1976860020}
156 + m_Enabled: 1
157 +--- !u!124 &1976860025
158 +Behaviour:
159 + m_ObjectHideFlags: 0
160 + m_PrefabParentObject: {fileID: 0}
161 + m_PrefabInternal: {fileID: 0}
162 + m_GameObject: {fileID: 1976860020}
163 + m_Enabled: 1
164 +--- !u!114 &1976860026
165 +MonoBehaviour:
166 + m_ObjectHideFlags: 0
167 + m_PrefabParentObject: {fileID: 0}
168 + m_PrefabInternal: {fileID: 0}
169 + m_GameObject: {fileID: 1976860020}
170 + m_Enabled: 1
171 + m_EditorHideFlags: 0
172 + m_Script: {fileID: 11500000, guid: e97ef6d0bfd7238498bb990e58ae4ca2, type: 3}
173 + m_Name:
174 + m_EditorClassIdentifier:
175 + _logVideoLoads: 1
176 + _useExternalTextures: 0
177 +--- !u!114 &1976860027
178 +MonoBehaviour:
179 + m_ObjectHideFlags: 0
180 + m_PrefabParentObject: {fileID: 0}
181 + m_PrefabInternal: {fileID: 0}
182 + m_GameObject: {fileID: 1976860020}
183 + m_Enabled: 1
184 + m_EditorHideFlags: 0
185 + m_Script: {fileID: 11500000, guid: e60819a824743a54d82b5522e52cea3e, type: 3}
186 + m_Name:
187 + m_EditorClassIdentifier:
188 + _folder:
189 + _filename: sample-blue-480x256-divx.avi
190 + _useStreamingAssetsPath: 1
191 + _guiSkin: {fileID: 11400000, guid: eb821627fb1a0c044a6fd7a6dabe3147, type: 2}
192 + _async: 1
193 +--- !u!114 &1976860028
194 +MonoBehaviour:
195 + m_ObjectHideFlags: 0
196 + m_PrefabParentObject: {fileID: 0}
197 + m_PrefabInternal: {fileID: 0}
198 + m_GameObject: {fileID: 1976860020}
199 + m_Enabled: 1
200 + m_EditorHideFlags: 0
201 + m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
202 + m_Name:
203 + m_EditorClassIdentifier:
204 + _title: Frame Extract
205 + _description: This demo shows how to use scripting to load a movie and extract frames
206 + from it.
1 +fileFormatVersion: 2
2 +guid: 473e3433f3e171c4c8045cb635d6de47
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: b35ed56d5659dc4448455cd722998f9e
3 +folderAsset: yes
4 +timeCreated: 1464981786
5 +licenseType: Pro
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: eb821627fb1a0c044a6fd7a6dabe3147
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 1102003ee10456942bffb2b369d6a7b8
3 +TrueTypeFontImporter:
4 + serializedVersion: 3
5 + fontSize: 16
6 + forceTextureCase: -2
7 + characterSpacing: 1
8 + characterPadding: 0
9 + includeFontData: 1
10 + fontNames: []
11 + fallbackFontReferences: []
12 + customCharacters:
13 + fontRenderingMode: 0
14 + ascentCalculationMode: 1
15 + userData:
16 + assetBundleName:
17 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 41dc463a61e06694b85593cb70e17848
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: -1
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 89756d2e84d7799499b64043123ddf38
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: -1
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 5fa7bcd58e1876e41952c9349da60879
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: -1
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: b6b9f1741e3bb6241aab55422ae1f133
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: -1
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: ccce2d09cdddb2d4da068267090c1548
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: -1
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: be0cffc23968d704980274205bc44645
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: -1
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 7fbbedb31432e4d408b2e3fbd0dbd862
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: -1
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 01d77d6197097f04d92df9c5a034133c
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: -1
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: e8b5fb4ca0fdd2c4eadc7cbe065543a4
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: -1
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: ea4d6941301057a42beac6f4dfc80562
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 8dd8deb53a2651d41b718dc1c9b5d683
3 +folderAsset: yes
4 +timeCreated: 1464981786
5 +licenseType: Pro
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 3
6 + m_ObjectHideFlags: 0
7 + m_PrefabParentObject: {fileID: 0}
8 + m_PrefabInternal: {fileID: 0}
9 + m_Name: Checker
10 + m_Shader: {fileID: 7, guid: 0000000000000000e000000000000000, type: 0}
11 + m_SavedProperties:
12 + serializedVersion: 2
13 + m_TexEnvs:
14 + data:
15 + first:
16 + name: _MainTex
17 + second:
18 + m_Texture: {fileID: 2800000, guid: 2328c4cf9521e554ba76b3ba4b59fd88, type: 1}
19 + m_Scale: {x: 10, y: 10}
20 + m_Offset: {x: 0, y: 0}
21 + m_Floats: {}
22 + m_Colors:
23 + data:
24 + first:
25 + name: _Color
26 + second: {r: 1, g: 1, b: 1, a: 1}
1 +fileFormatVersion: 2
2 +guid: 01779df11e1ccda45a756158a5404329
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 2328c4cf9521e554ba76b3ba4b59fd88
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -3
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: 0
31 + aniso: -1
32 + mipBias: -1
33 + wrapMode: -1
34 + nPOTScale: 1
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 3
6 + m_ObjectHideFlags: 0
7 + m_PrefabParentObject: {fileID: 0}
8 + m_PrefabInternal: {fileID: 0}
9 + m_Name: FallOff
10 + m_Shader: {fileID: 10750, guid: 0000000000000000f000000000000000, type: 0}
11 + m_ShaderKeywords: []
12 + m_CustomRenderQueue: -1
13 + m_SavedProperties:
14 + serializedVersion: 2
15 + m_TexEnvs:
16 + data:
17 + first:
18 + name: _MainTex
19 + second:
20 + m_Texture: {fileID: 0}
21 + m_Scale: {x: 1, y: 1}
22 + m_Offset: {x: 0, y: 0}
23 + data:
24 + first:
25 + name: _BumpMap
26 + second:
27 + m_Texture: {fileID: 0}
28 + m_Scale: {x: 1, y: 1}
29 + m_Offset: {x: 0, y: 0}
30 + data:
31 + first:
32 + name: _Illum
33 + second:
34 + m_Texture: {fileID: 0}
35 + m_Scale: {x: 1, y: 1}
36 + m_Offset: {x: 0, y: 0}
37 + m_Floats:
38 + data:
39 + first:
40 + name: _Cutoff
41 + second: .106153868
42 + data:
43 + first:
44 + name: _InvFade
45 + second: .539999962
46 + data:
47 + first:
48 + name: _EmissionLM
49 + second: 0
50 + m_Colors:
51 + data:
52 + first:
53 + name: _Color
54 + second: {r: 1, g: 1, b: 1, a: 1}
55 + data:
56 + first:
57 + name: _TintColor
58 + second: {r: .5, g: .5, b: .5, a: .5}
1 +fileFormatVersion: 2
2 +guid: bb3e8f04c8bae7241a1385563182c4c0
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: cc90a732ad112a541100162a44295342
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 1
8 + enableMipMap: 1
9 + linearTexture: 0
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 1
13 + mipMapFadeDistanceStart: 2
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 1
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: 1
28 + maxTextureSize: 1024
29 + textureSettings:
30 + filterMode: 1
31 + aniso: 1
32 + mipBias: 0
33 + wrapMode: 1
34 + nPOTScale: 0
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 0
47 + spriteTessellationDetail: -1
48 + textureType: -1
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 3
6 + m_ObjectHideFlags: 0
7 + m_PrefabParentObject: {fileID: 0}
8 + m_PrefabInternal: {fileID: 0}
9 + m_Name: FillBackground
10 + m_Shader: {fileID: 4800000, guid: 8a4586dc48a384548add1a8ad59d54a4, type: 3}
11 + m_ShaderKeywords: []
12 + m_CustomRenderQueue: -1
13 + m_SavedProperties:
14 + serializedVersion: 2
15 + m_TexEnvs:
16 + data:
17 + first:
18 + name: _MainTex
19 + second:
20 + m_Texture: {fileID: 0}
21 + m_Scale: {x: 1, y: 1}
22 + m_Offset: {x: 0, y: 0}
23 + m_Floats: {}
24 + m_Colors:
25 + data:
26 + first:
27 + name: _Color
28 + second: {r: 1, g: 1, b: 1, a: 1}
1 +fileFormatVersion: 2
2 +guid: fe6a8b0c4b26eb946a943716f2a75230
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 3
6 + m_ObjectHideFlags: 0
7 + m_PrefabParentObject: {fileID: 0}
8 + m_PrefabInternal: {fileID: 0}
9 + m_Name: InsideSphere
10 + m_Shader: {fileID: 4800000, guid: e5cfefc20f1df4f4593782b611cce905, type: 3}
11 + m_ShaderKeywords: []
12 + m_CustomRenderQueue: -1
13 + m_SavedProperties:
14 + serializedVersion: 2
15 + m_TexEnvs:
16 + data:
17 + first:
18 + name: _MainTex
19 + second:
20 + m_Texture: {fileID: 0}
21 + m_Scale: {x: 1, y: 1}
22 + m_Offset: {x: 0, y: 0}
23 + m_Floats: {}
24 + m_Colors:
25 + data:
26 + first:
27 + name: _Color
28 + second: {r: 1, g: 1, b: 1, a: 1}
1 +fileFormatVersion: 2
2 +guid: ab72c05bbf469b14b8dc263f3da57a6b
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 4709c038b4aff104da37cb49fbc4c28c
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: b41bea1b7b36cd644a8146d6890d8d1a
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 0230324d8fc49374c8e88bc7bfd21f49
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
This diff could not be displayed because it is too large.
1 +fileFormatVersion: 2
2 +guid: a52e7a3bc245b48dead7ed46dc38ecec
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +Shader "Projector/Additive" {
2 + Properties {
3 + _Color ("Main Color", Color) = (1,1,1,1)
4 + _ShadowTex ("Cookie", 2D) = "" { TexGen ObjectLinear }
5 + _FalloffTex ("FallOff", 2D) = "" { TexGen ObjectLinear }
6 + }
7 + Subshader {
8 + Pass {
9 + ZWrite off
10 + Fog { Color (0, 0, 0) }
11 + Color [_Color]
12 + ColorMask RGB
13 + Blend One One
14 + Offset -1, -1
15 + SetTexture [_ShadowTex] {
16 + combine texture * primary, ONE - texture
17 + Matrix [_Projector]
18 + }
19 + SetTexture [_FalloffTex] {
20 + constantColor (0,0,0,0)
21 + combine previous lerp (texture) constant
22 + Matrix [_ProjectorClip]
23 + }
24 + }
25 + }
26 +}
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: 127f6970f3d965a4896c7cdfdb6431cc
3 +ShaderImporter:
4 + defaultTextures: []
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 1c4cd5292ed42dd4db2cdc4451d1abab
3 +TextureImporter:
4 + fileIDToRecycleName: {}
5 + serializedVersion: 2
6 + mipmaps:
7 + mipMapMode: 0
8 + enableMipMap: 0
9 + linearTexture: 1
10 + correctGamma: 0
11 + fadeOut: 0
12 + borderMipMap: 0
13 + mipMapFadeDistanceStart: 1
14 + mipMapFadeDistanceEnd: 3
15 + bumpmap:
16 + convertToNormalMap: 0
17 + externalNormalMap: 0
18 + heightScale: 0.25
19 + normalMapFilter: 0
20 + isReadable: 0
21 + grayScaleToAlpha: 0
22 + generateCubemap: 0
23 + cubemapConvolution: 0
24 + cubemapConvolutionSteps: 7
25 + cubemapConvolutionExponent: 1.5
26 + seamlessCubemap: 0
27 + textureFormat: -1
28 + maxTextureSize: 64
29 + textureSettings:
30 + filterMode: -1
31 + aniso: 1
32 + mipBias: -1
33 + wrapMode: 1
34 + nPOTScale: 0
35 + lightmap: 0
36 + rGBM: 0
37 + compressionQuality: 50
38 + allowsAlphaSplitting: 0
39 + spriteMode: 0
40 + spriteExtrude: 1
41 + spriteMeshType: 1
42 + alignment: 0
43 + spritePivot: {x: 0.5, y: 0.5}
44 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
45 + spritePixelsToUnits: 100
46 + alphaIsTransparency: 1
47 + spriteTessellationDetail: -1
48 + textureType: 2
49 + buildTargetSettings: []
50 + spriteSheet:
51 + sprites: []
52 + outline: []
53 + spritePackingTag:
54 + userData:
55 + assetBundleName:
56 + assetBundleVariant:
1 +Shader "UI/Default-ExtraTexture"
2 +{
3 + Properties
4 + {
5 + [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
6 + _OverlayTex ("Overlay Texture", 2D) = "white" {}
7 + _Color ("Tint", Color) = (1,1,1,1)
8 +
9 + _StencilComp ("Stencil Comparison", Float) = 8
10 + _Stencil ("Stencil ID", Float) = 0
11 + _StencilOp ("Stencil Operation", Float) = 0
12 + _StencilWriteMask ("Stencil Write Mask", Float) = 255
13 + _StencilReadMask ("Stencil Read Mask", Float) = 255
14 +
15 + _ColorMask ("Color Mask", Float) = 15
16 + }
17 +
18 + SubShader
19 + {
20 + Tags
21 + {
22 + "Queue"="Transparent"
23 + "IgnoreProjector"="True"
24 + "RenderType"="Transparent"
25 + "PreviewType"="Plane"
26 + "CanUseSpriteAtlas"="True"
27 + }
28 +
29 + Stencil
30 + {
31 + Ref [_Stencil]
32 + Comp [_StencilComp]
33 + Pass [_StencilOp]
34 + ReadMask [_StencilReadMask]
35 + WriteMask [_StencilWriteMask]
36 + }
37 +
38 + Cull Off
39 + Lighting Off
40 + ZWrite Off
41 + ZTest [unity_GUIZTestMode]
42 + Fog { Mode Off }
43 + Blend SrcAlpha OneMinusSrcAlpha
44 + ColorMask [_ColorMask]
45 +
46 + Pass
47 + {
48 + CGPROGRAM
49 + #pragma vertex vert
50 + #pragma fragment frag
51 + #include "UnityCG.cginc"
52 +
53 + struct appdata_t
54 + {
55 + float4 vertex : POSITION;
56 + float4 color : COLOR;
57 + float2 texcoord : TEXCOORD0;
58 + };
59 +
60 + struct v2f
61 + {
62 + float4 vertex : SV_POSITION;
63 + fixed4 color : COLOR;
64 + half2 texcoord : TEXCOORD0;
65 + };
66 +
67 + fixed4 _Color;
68 +
69 + v2f vert(appdata_t IN)
70 + {
71 + v2f OUT;
72 + OUT.vertex = mul(UNITY_MATRIX_MVP, IN.vertex);
73 + OUT.texcoord = IN.texcoord;
74 +#ifdef UNITY_HALF_TEXEL_OFFSET
75 + OUT.vertex.xy += (_ScreenParams.zw-1.0)*float2(-1,1);
76 +#endif
77 + OUT.color = IN.color * _Color;
78 + return OUT;
79 + }
80 +
81 + sampler2D _MainTex;
82 + sampler2D _OverlayTex;
83 +
84 + fixed4 frag(v2f IN) : SV_Target
85 + {
86 + half4 color = tex2D(_MainTex, IN.texcoord) * IN.color;
87 + color *= tex2D(_OverlayTex, IN.texcoord);
88 + clip (color.a - 0.01);
89 + return color;
90 + }
91 + ENDCG
92 + }
93 + }
94 +}
1 +fileFormatVersion: 2
2 +guid: b5ea53ec906a4de46a3a55cd5e5e7a24
3 +ShaderImporter:
4 + defaultTextures: []
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
1 +Shader "UI/Default Font - Extra Texture" {
2 + Properties {
3 + _MainTex ("Font Texture", 2D) = "white" {}
4 + _OverlayTex ("Overlay Texture", 2D) = "white" {}
5 + _Color ("Text Color", Color) = (1,1,1,1)
6 +
7 + _StencilComp ("Stencil Comparison", Float) = 8
8 + _Stencil ("Stencil ID", Float) = 0
9 + _StencilOp ("Stencil Operation", Float) = 0
10 + _StencilWriteMask ("Stencil Write Mask", Float) = 255
11 + _StencilReadMask ("Stencil Read Mask", Float) = 255
12 +
13 + _ColorMask ("Color Mask", Float) = 15
14 + }
15 +
16 + SubShader {
17 +
18 + Tags
19 + {
20 + "Queue"="Transparent"
21 + "IgnoreProjector"="True"
22 + "RenderType"="Transparent"
23 + "PreviewType"="Plane"
24 + }
25 +
26 + Stencil
27 + {
28 + Ref [_Stencil]
29 + Comp [_StencilComp]
30 + Pass [_StencilOp]
31 + ReadMask [_StencilReadMask]
32 + WriteMask [_StencilWriteMask]
33 + }
34 +
35 + Lighting Off
36 + Cull Off
37 + ZTest [unity_GUIZTestMode]
38 + ZWrite Off
39 + Fog { Mode Off }
40 + Blend SrcAlpha OneMinusSrcAlpha
41 + ColorMask [_ColorMask]
42 +
43 + Pass
44 + {
45 + CGPROGRAM
46 + #pragma vertex vert
47 + #pragma fragment frag
48 +
49 + #include "UnityCG.cginc"
50 +
51 + struct appdata_t {
52 + float4 vertex : POSITION;
53 + fixed4 color : COLOR;
54 + float2 texcoord : TEXCOORD0;
55 + };
56 +
57 + struct v2f {
58 + float4 vertex : SV_POSITION;
59 + fixed4 color : COLOR;
60 + float2 texcoord : TEXCOORD0;
61 + float2 texcoord2 : TEXCOORD1;
62 + };
63 +
64 + sampler2D _MainTex;
65 + sampler2D _OverlayTex;
66 + uniform float4 _MainTex_ST;
67 + uniform float4 _OverlayTex_ST;
68 + uniform fixed4 _Color;
69 +
70 + v2f vert (appdata_t v)
71 + {
72 + v2f o;
73 + o.vertex = mul(UNITY_MATRIX_MVP, v.vertex);
74 + o.color = v.color * _Color;
75 + o.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex);
76 +#ifdef UNITY_HALF_TEXEL_OFFSET
77 + o.vertex.xy += (_ScreenParams.zw-1.0)*float2(-1,1);
78 +#endif
79 + o.texcoord2 = (o.vertex.xy + 1) / 2;
80 + return o;
81 + }
82 +
83 + fixed4 frag (v2f i) : SV_Target
84 + {
85 + fixed4 col = i.color;
86 + col.a *= tex2D(_MainTex, i.texcoord).a;
87 + clip (col.a - 0.01);
88 + col.rgb *= tex2D(_OverlayTex, i.texcoord2).rgb;
89 + return col;
90 + }
91 + ENDCG
92 + }
93 + }
94 +}
1 +fileFormatVersion: 2
2 +guid: e743b5967a3df1d46a73b81989e531d2
3 +ShaderImporter:
4 + defaultTextures: []
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: cb4bf77dfdec29c488807ed356843bbd
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 35647be038e352947ad5087a4630de94
3 +NativeFormatImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!29 &1
4 +SceneSettings:
5 + m_ObjectHideFlags: 0
6 + m_PVSData:
7 + m_PVSObjectsArray: []
8 + m_PVSPortalsArray: []
9 + m_OcclusionBakeSettings:
10 + smallestOccluder: 5
11 + smallestHole: .25
12 + backfaceThreshold: 100
13 +--- !u!104 &2
14 +RenderSettings:
15 + m_Fog: 0
16 + m_FogColor: {r: .5, g: .5, b: .5, a: 1}
17 + m_FogMode: 3
18 + m_FogDensity: .00999999978
19 + m_LinearFogStart: 0
20 + m_LinearFogEnd: 300
21 + m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
22 + m_SkyboxMaterial: {fileID: 0}
23 + m_HaloStrength: .5
24 + m_FlareStrength: 1
25 + m_FlareFadeSpeed: 3
26 + m_HaloTexture: {fileID: 0}
27 + m_SpotCookie: {fileID: 0}
28 + m_ObjectHideFlags: 0
29 +--- !u!127 &3
30 +LevelGameManager:
31 + m_ObjectHideFlags: 0
32 +--- !u!157 &4
33 +LightmapSettings:
34 + m_ObjectHideFlags: 0
35 + m_LightProbes: {fileID: 0}
36 + m_Lightmaps: []
37 + m_LightmapsMode: 1
38 + m_BakedColorSpace: 0
39 + m_UseDualLightmapsInForward: 0
40 + m_LightmapEditorSettings:
41 + m_Resolution: 50
42 + m_LastUsedResolution: 0
43 + m_TextureWidth: 1024
44 + m_TextureHeight: 1024
45 + m_BounceBoost: 1
46 + m_BounceIntensity: 1
47 + m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
48 + m_SkyLightIntensity: 0
49 + m_Quality: 0
50 + m_Bounces: 1
51 + m_FinalGatherRays: 1000
52 + m_FinalGatherContrastThreshold: .0500000007
53 + m_FinalGatherGradientThreshold: 0
54 + m_FinalGatherInterpolationPoints: 15
55 + m_AOAmount: 0
56 + m_AOMaxDistance: .100000001
57 + m_AOContrast: 1
58 + m_LODSurfaceMappingDistance: 1
59 + m_Padding: 0
60 + m_TextureCompression: 0
61 + m_LockAtlas: 0
62 +--- !u!1 &5
63 +GameObject:
64 + m_ObjectHideFlags: 0
65 + m_PrefabParentObject: {fileID: 0}
66 + m_PrefabInternal: {fileID: 0}
67 + serializedVersion: 4
68 + m_Component:
69 + - 4: {fileID: 6}
70 + - 20: {fileID: 7}
71 + - 92: {fileID: 8}
72 + - 114: {fileID: 17}
73 + - 114: {fileID: 9}
74 + m_Layer: 0
75 + m_Name: Main Camera
76 + m_TagString: MainCamera
77 + m_Icon: {fileID: 0}
78 + m_NavMeshLayer: 0
79 + m_StaticEditorFlags: 0
80 + m_IsActive: 1
81 +--- !u!4 &6
82 +Transform:
83 + m_ObjectHideFlags: 0
84 + m_PrefabParentObject: {fileID: 0}
85 + m_PrefabInternal: {fileID: 0}
86 + m_GameObject: {fileID: 5}
87 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
88 + m_LocalPosition: {x: 0, y: 0, z: -2.79980826}
89 + m_LocalScale: {x: 1, y: 1, z: 1}
90 + m_Children: []
91 + m_Father: {fileID: 0}
92 + m_RootOrder: 2
93 +--- !u!20 &7
94 +Camera:
95 + m_ObjectHideFlags: 0
96 + m_PrefabParentObject: {fileID: 0}
97 + m_PrefabInternal: {fileID: 0}
98 + m_GameObject: {fileID: 5}
99 + m_Enabled: 1
100 + serializedVersion: 2
101 + m_ClearFlags: 2
102 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: .0196078438}
103 + m_NormalizedViewPortRect:
104 + serializedVersion: 2
105 + x: 0
106 + y: 0
107 + width: 1
108 + height: 1
109 + near clip plane: .300000012
110 + far clip plane: 1000
111 + field of view: 60
112 + orthographic: 0
113 + orthographic size: 100
114 + m_Depth: 0
115 + m_CullingMask:
116 + serializedVersion: 2
117 + m_Bits: 4294967295
118 + m_RenderingPath: -1
119 + m_TargetTexture: {fileID: 0}
120 + m_TargetDisplay: 0
121 + m_HDR: 0
122 + m_OcclusionCulling: 0
123 + m_StereoConvergence: 10
124 + m_StereoSeparation: .0219999999
125 +--- !u!92 &8
126 +Behaviour:
127 + m_ObjectHideFlags: 0
128 + m_PrefabParentObject: {fileID: 0}
129 + m_PrefabInternal: {fileID: 0}
130 + m_GameObject: {fileID: 5}
131 + m_Enabled: 1
132 +--- !u!114 &9
133 +MonoBehaviour:
134 + m_ObjectHideFlags: 0
135 + m_PrefabParentObject: {fileID: 0}
136 + m_PrefabInternal: {fileID: 0}
137 + m_GameObject: {fileID: 5}
138 + m_Enabled: 1
139 + m_EditorHideFlags: 0
140 + m_Script: {fileID: 11500000, guid: 768c1627121f60f43b408c62ed9ab2f9, type: 3}
141 + m_Name:
142 + m_EditorClassIdentifier:
143 + _guiSkin: {fileID: 11400000, guid: eb821627fb1a0c044a6fd7a6dabe3147, type: 2}
144 + _speaker: {fileID: 2800000, guid: 1c4cd5292ed42dd4db2cdc4451d1abab, type: 3}
145 + _material: {fileID: 2100000, guid: bb3e8f04c8bae7241a1385563182c4c0, type: 2}
146 + _numChannels: 8
147 +--- !u!196 &11
148 +NavMeshSettings:
149 + m_ObjectHideFlags: 0
150 + m_BuildSettings:
151 + agentRadius: .5
152 + agentHeight: 2
153 + agentSlope: 45
154 + agentClimb: .400000006
155 + ledgeDropHeight: 0
156 + maxJumpAcrossDistance: 0
157 + accuratePlacement: 0
158 + minRegionArea: 2
159 + widthInaccuracy: 16.666666
160 + heightInaccuracy: 10
161 + m_NavMesh: {fileID: 0}
162 +--- !u!114 &17
163 +MonoBehaviour:
164 + m_ObjectHideFlags: 0
165 + m_PrefabParentObject: {fileID: 0}
166 + m_PrefabInternal: {fileID: 0}
167 + m_GameObject: {fileID: 5}
168 + m_Enabled: 1
169 + m_EditorHideFlags: 0
170 + m_Script: {fileID: 11500000, guid: e97ef6d0bfd7238498bb990e58ae4ca2, type: 3}
171 + m_Name:
172 + m_EditorClassIdentifier:
173 + _logVideoLoads: 1
174 + _useExternalTextures: 0
175 +--- !u!1 &378954966
176 +GameObject:
177 + m_ObjectHideFlags: 0
178 + m_PrefabParentObject: {fileID: 0}
179 + m_PrefabInternal: {fileID: 0}
180 + serializedVersion: 4
181 + m_Component:
182 + - 4: {fileID: 378954967}
183 + - 108: {fileID: 378954968}
184 + m_Layer: 0
185 + m_Name: Point light
186 + m_TagString: Untagged
187 + m_Icon: {fileID: 0}
188 + m_NavMeshLayer: 0
189 + m_StaticEditorFlags: 0
190 + m_IsActive: 1
191 +--- !u!4 &378954967
192 +Transform:
193 + m_ObjectHideFlags: 0
194 + m_PrefabParentObject: {fileID: 0}
195 + m_PrefabInternal: {fileID: 0}
196 + m_GameObject: {fileID: 378954966}
197 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
198 + m_LocalPosition: {x: 0, y: 0, z: -2.31003428}
199 + m_LocalScale: {x: 1, y: 1, z: 1}
200 + m_Children: []
201 + m_Father: {fileID: 0}
202 + m_RootOrder: 3
203 +--- !u!108 &378954968
204 +Light:
205 + m_ObjectHideFlags: 0
206 + m_PrefabParentObject: {fileID: 0}
207 + m_PrefabInternal: {fileID: 0}
208 + m_GameObject: {fileID: 378954966}
209 + m_Enabled: 1
210 + serializedVersion: 3
211 + m_Type: 2
212 + m_Color: {r: 1, g: 1, b: 1, a: 1}
213 + m_Intensity: 1
214 + m_Range: 10
215 + m_SpotAngle: 30
216 + m_CookieSize: 10
217 + m_Shadows:
218 + m_Type: 0
219 + m_Resolution: -1
220 + m_Strength: 1
221 + m_Bias: .0500000007
222 + m_Softness: 4
223 + m_SoftnessFade: 1
224 + m_Cookie: {fileID: 0}
225 + m_DrawHalo: 0
226 + m_ActuallyLightmapped: 0
227 + m_Flare: {fileID: 0}
228 + m_RenderMode: 0
229 + m_CullingMask:
230 + serializedVersion: 2
231 + m_Bits: 4294967295
232 + m_Lightmapping: 1
233 + m_ShadowSamples: 1
234 + m_ShadowRadius: 0
235 + m_ShadowAngle: 0
236 + m_IndirectIntensity: 1
237 + m_AreaSize: {x: 1, y: 1}
238 +--- !u!1 &1173302083
239 +GameObject:
240 + m_ObjectHideFlags: 0
241 + m_PrefabParentObject: {fileID: 0}
242 + m_PrefabInternal: {fileID: 0}
243 + serializedVersion: 4
244 + m_Component:
245 + - 4: {fileID: 1173302084}
246 + - 33: {fileID: 1173302086}
247 + - 65: {fileID: 1173302087}
248 + - 23: {fileID: 1173302085}
249 + m_Layer: 0
250 + m_Name: Cube
251 + m_TagString: Untagged
252 + m_Icon: {fileID: 0}
253 + m_NavMeshLayer: 0
254 + m_StaticEditorFlags: 0
255 + m_IsActive: 1
256 +--- !u!4 &1173302084
257 +Transform:
258 + m_ObjectHideFlags: 0
259 + m_PrefabParentObject: {fileID: 0}
260 + m_PrefabInternal: {fileID: 0}
261 + m_GameObject: {fileID: 1173302083}
262 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
263 + m_LocalPosition: {x: 0, y: 0, z: .955755949}
264 + m_LocalScale: {x: 4.24944258, y: 4.24944258, z: 4.24944258}
265 + m_Children: []
266 + m_Father: {fileID: 0}
267 + m_RootOrder: 0
268 +--- !u!23 &1173302085
269 +Renderer:
270 + m_ObjectHideFlags: 0
271 + m_PrefabParentObject: {fileID: 0}
272 + m_PrefabInternal: {fileID: 0}
273 + m_GameObject: {fileID: 1173302083}
274 + m_Enabled: 1
275 + m_CastShadows: 0
276 + m_ReceiveShadows: 0
277 + m_LightmapIndex: 255
278 + m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
279 + m_Materials:
280 + - {fileID: 2100000, guid: 01779df11e1ccda45a756158a5404329, type: 2}
281 + m_SubsetIndices:
282 + m_StaticBatchRoot: {fileID: 0}
283 + m_UseLightProbes: 0
284 + m_LightProbeAnchor: {fileID: 0}
285 + m_ScaleInLightmap: 1
286 + m_SortingLayerID: 0
287 + m_SortingOrder: 0
288 +--- !u!33 &1173302086
289 +MeshFilter:
290 + m_ObjectHideFlags: 0
291 + m_PrefabParentObject: {fileID: 0}
292 + m_PrefabInternal: {fileID: 0}
293 + m_GameObject: {fileID: 1173302083}
294 + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
295 +--- !u!65 &1173302087
296 +BoxCollider:
297 + m_ObjectHideFlags: 0
298 + m_PrefabParentObject: {fileID: 0}
299 + m_PrefabInternal: {fileID: 0}
300 + m_GameObject: {fileID: 1173302083}
301 + m_Material: {fileID: 0}
302 + m_IsTrigger: 0
303 + m_Enabled: 1
304 + serializedVersion: 2
305 + m_Size: {x: 1, y: 1, z: 1}
306 + m_Center: {x: 0, y: 0, z: 0}
307 +--- !u!1 &2128281118
308 +GameObject:
309 + m_ObjectHideFlags: 0
310 + m_PrefabParentObject: {fileID: 0}
311 + m_PrefabInternal: {fileID: 0}
312 + serializedVersion: 4
313 + m_Component:
314 + - 4: {fileID: 2128281119}
315 + - 114: {fileID: 2128281120}
316 + m_Layer: 0
317 + m_Name: DemoInfo
318 + m_TagString: Untagged
319 + m_Icon: {fileID: 0}
320 + m_NavMeshLayer: 0
321 + m_StaticEditorFlags: 0
322 + m_IsActive: 1
323 +--- !u!4 &2128281119
324 +Transform:
325 + m_ObjectHideFlags: 0
326 + m_PrefabParentObject: {fileID: 0}
327 + m_PrefabInternal: {fileID: 0}
328 + m_GameObject: {fileID: 2128281118}
329 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
330 + m_LocalPosition: {x: 0, y: 0, z: 0}
331 + m_LocalScale: {x: 1, y: 1, z: 1}
332 + m_Children: []
333 + m_Father: {fileID: 0}
334 + m_RootOrder: 1
335 +--- !u!114 &2128281120
336 +MonoBehaviour:
337 + m_ObjectHideFlags: 0
338 + m_PrefabParentObject: {fileID: 0}
339 + m_PrefabInternal: {fileID: 0}
340 + m_GameObject: {fileID: 2128281118}
341 + m_Enabled: 1
342 + m_EditorHideFlags: 0
343 + m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
344 + m_Name:
345 + m_EditorClassIdentifier:
346 + _title: Multi Channel Audio
347 + _description: This demo shows how you can control the audio mixer to send video
348 + audio to different audio channels in a 7.1 speaker configuration. This is very
349 + useful for multi-user interactive installations where you want to assign a speaker
350 + per user. Your computer must be set to 7.1 for this to work correctly.
1 +fileFormatVersion: 2
2 +guid: 00afcf5f91508964b9d2b521b1745728
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!29 &1
4 +SceneSettings:
5 + m_ObjectHideFlags: 0
6 + m_PVSData:
7 + m_PVSObjectsArray: []
8 + m_PVSPortalsArray: []
9 + m_OcclusionBakeSettings:
10 + smallestOccluder: 5
11 + smallestHole: .25
12 + backfaceThreshold: 100
13 +--- !u!104 &2
14 +RenderSettings:
15 + m_Fog: 0
16 + m_FogColor: {r: .5, g: .5, b: .5, a: 1}
17 + m_FogMode: 3
18 + m_FogDensity: .00999999978
19 + m_LinearFogStart: 0
20 + m_LinearFogEnd: 300
21 + m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
22 + m_SkyboxMaterial: {fileID: 0}
23 + m_HaloStrength: .5
24 + m_FlareStrength: 1
25 + m_FlareFadeSpeed: 3
26 + m_HaloTexture: {fileID: 0}
27 + m_SpotCookie: {fileID: 0}
28 + m_ObjectHideFlags: 0
29 +--- !u!127 &3
30 +LevelGameManager:
31 + m_ObjectHideFlags: 0
32 +--- !u!157 &4
33 +LightmapSettings:
34 + m_ObjectHideFlags: 0
35 + m_LightProbes: {fileID: 0}
36 + m_Lightmaps: []
37 + m_LightmapsMode: 1
38 + m_BakedColorSpace: 0
39 + m_UseDualLightmapsInForward: 0
40 + m_LightmapEditorSettings:
41 + m_Resolution: 50
42 + m_LastUsedResolution: 0
43 + m_TextureWidth: 1024
44 + m_TextureHeight: 1024
45 + m_BounceBoost: 1
46 + m_BounceIntensity: 1
47 + m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
48 + m_SkyLightIntensity: 0
49 + m_Quality: 0
50 + m_Bounces: 1
51 + m_FinalGatherRays: 1000
52 + m_FinalGatherContrastThreshold: .0500000007
53 + m_FinalGatherGradientThreshold: 0
54 + m_FinalGatherInterpolationPoints: 15
55 + m_AOAmount: 0
56 + m_AOMaxDistance: .100000001
57 + m_AOContrast: 1
58 + m_LODSurfaceMappingDistance: 1
59 + m_Padding: 0
60 + m_TextureCompression: 0
61 + m_LockAtlas: 0
62 +--- !u!1 &5
63 +GameObject:
64 + m_ObjectHideFlags: 0
65 + m_PrefabParentObject: {fileID: 0}
66 + m_PrefabInternal: {fileID: 0}
67 + serializedVersion: 4
68 + m_Component:
69 + - 4: {fileID: 6}
70 + - 20: {fileID: 7}
71 + - 92: {fileID: 8}
72 + - 114: {fileID: 17}
73 + - 114: {fileID: 9}
74 + m_Layer: 0
75 + m_Name: Main Camera
76 + m_TagString: MainCamera
77 + m_Icon: {fileID: 0}
78 + m_NavMeshLayer: 0
79 + m_StaticEditorFlags: 0
80 + m_IsActive: 1
81 +--- !u!4 &6
82 +Transform:
83 + m_ObjectHideFlags: 0
84 + m_PrefabParentObject: {fileID: 0}
85 + m_PrefabInternal: {fileID: 0}
86 + m_GameObject: {fileID: 5}
87 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
88 + m_LocalPosition: {x: 0, y: 0, z: -2.79980826}
89 + m_LocalScale: {x: 1, y: 1, z: 1}
90 + m_Children: []
91 + m_Father: {fileID: 0}
92 + m_RootOrder: 2
93 +--- !u!20 &7
94 +Camera:
95 + m_ObjectHideFlags: 0
96 + m_PrefabParentObject: {fileID: 0}
97 + m_PrefabInternal: {fileID: 0}
98 + m_GameObject: {fileID: 5}
99 + m_Enabled: 1
100 + serializedVersion: 2
101 + m_ClearFlags: 2
102 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: .0196078438}
103 + m_NormalizedViewPortRect:
104 + serializedVersion: 2
105 + x: 0
106 + y: 0
107 + width: 1
108 + height: 1
109 + near clip plane: .300000012
110 + far clip plane: 1000
111 + field of view: 60
112 + orthographic: 0
113 + orthographic size: 100
114 + m_Depth: 0
115 + m_CullingMask:
116 + serializedVersion: 2
117 + m_Bits: 4294967295
118 + m_RenderingPath: -1
119 + m_TargetTexture: {fileID: 0}
120 + m_TargetDisplay: 0
121 + m_HDR: 0
122 + m_OcclusionCulling: 0
123 + m_StereoConvergence: 10
124 + m_StereoSeparation: .0219999999
125 +--- !u!92 &8
126 +Behaviour:
127 + m_ObjectHideFlags: 0
128 + m_PrefabParentObject: {fileID: 0}
129 + m_PrefabInternal: {fileID: 0}
130 + m_GameObject: {fileID: 5}
131 + m_Enabled: 1
132 +--- !u!114 &9
133 +MonoBehaviour:
134 + m_ObjectHideFlags: 0
135 + m_PrefabParentObject: {fileID: 0}
136 + m_PrefabInternal: {fileID: 0}
137 + m_GameObject: {fileID: 5}
138 + m_Enabled: 1
139 + m_EditorHideFlags: 0
140 + m_Script: {fileID: 11500000, guid: ac48693794e43ae42a4d08fd2bc65211, type: 3}
141 + m_Name:
142 + m_EditorClassIdentifier:
143 + _skin: {fileID: 11400000, guid: eb821627fb1a0c044a6fd7a6dabe3147, type: 2}
144 + _guiDepth: 3
145 +--- !u!196 &11
146 +NavMeshSettings:
147 + m_ObjectHideFlags: 0
148 + m_BuildSettings:
149 + agentRadius: .5
150 + agentHeight: 2
151 + agentSlope: 45
152 + agentClimb: .400000006
153 + ledgeDropHeight: 0
154 + maxJumpAcrossDistance: 0
155 + accuratePlacement: 0
156 + minRegionArea: 2
157 + widthInaccuracy: 16.666666
158 + heightInaccuracy: 10
159 + m_NavMesh: {fileID: 0}
160 +--- !u!114 &17
161 +MonoBehaviour:
162 + m_ObjectHideFlags: 0
163 + m_PrefabParentObject: {fileID: 0}
164 + m_PrefabInternal: {fileID: 0}
165 + m_GameObject: {fileID: 5}
166 + m_Enabled: 1
167 + m_EditorHideFlags: 0
168 + m_Script: {fileID: 11500000, guid: e97ef6d0bfd7238498bb990e58ae4ca2, type: 3}
169 + m_Name:
170 + m_EditorClassIdentifier:
171 + _logVideoLoads: 1
172 + _useExternalTextures: 0
173 +--- !u!1 &378954966
174 +GameObject:
175 + m_ObjectHideFlags: 0
176 + m_PrefabParentObject: {fileID: 0}
177 + m_PrefabInternal: {fileID: 0}
178 + serializedVersion: 4
179 + m_Component:
180 + - 4: {fileID: 378954967}
181 + - 108: {fileID: 378954968}
182 + m_Layer: 0
183 + m_Name: Point light
184 + m_TagString: Untagged
185 + m_Icon: {fileID: 0}
186 + m_NavMeshLayer: 0
187 + m_StaticEditorFlags: 0
188 + m_IsActive: 1
189 +--- !u!4 &378954967
190 +Transform:
191 + m_ObjectHideFlags: 0
192 + m_PrefabParentObject: {fileID: 0}
193 + m_PrefabInternal: {fileID: 0}
194 + m_GameObject: {fileID: 378954966}
195 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
196 + m_LocalPosition: {x: 0, y: 0, z: -2.31003428}
197 + m_LocalScale: {x: 1, y: 1, z: 1}
198 + m_Children: []
199 + m_Father: {fileID: 0}
200 + m_RootOrder: 3
201 +--- !u!108 &378954968
202 +Light:
203 + m_ObjectHideFlags: 0
204 + m_PrefabParentObject: {fileID: 0}
205 + m_PrefabInternal: {fileID: 0}
206 + m_GameObject: {fileID: 378954966}
207 + m_Enabled: 1
208 + serializedVersion: 3
209 + m_Type: 2
210 + m_Color: {r: 1, g: 1, b: 1, a: 1}
211 + m_Intensity: 1
212 + m_Range: 10
213 + m_SpotAngle: 30
214 + m_CookieSize: 10
215 + m_Shadows:
216 + m_Type: 0
217 + m_Resolution: -1
218 + m_Strength: 1
219 + m_Bias: .0500000007
220 + m_Softness: 4
221 + m_SoftnessFade: 1
222 + m_Cookie: {fileID: 0}
223 + m_DrawHalo: 0
224 + m_ActuallyLightmapped: 0
225 + m_Flare: {fileID: 0}
226 + m_RenderMode: 0
227 + m_CullingMask:
228 + serializedVersion: 2
229 + m_Bits: 4294967295
230 + m_Lightmapping: 1
231 + m_ShadowSamples: 1
232 + m_ShadowRadius: 0
233 + m_ShadowAngle: 0
234 + m_IndirectIntensity: 1
235 + m_AreaSize: {x: 1, y: 1}
236 +--- !u!1 &1173302083
237 +GameObject:
238 + m_ObjectHideFlags: 0
239 + m_PrefabParentObject: {fileID: 0}
240 + m_PrefabInternal: {fileID: 0}
241 + serializedVersion: 4
242 + m_Component:
243 + - 4: {fileID: 1173302084}
244 + - 33: {fileID: 1173302086}
245 + - 23: {fileID: 1173302085}
246 + m_Layer: 0
247 + m_Name: Cube
248 + m_TagString: Untagged
249 + m_Icon: {fileID: 0}
250 + m_NavMeshLayer: 0
251 + m_StaticEditorFlags: 0
252 + m_IsActive: 1
253 +--- !u!4 &1173302084
254 +Transform:
255 + m_ObjectHideFlags: 0
256 + m_PrefabParentObject: {fileID: 0}
257 + m_PrefabInternal: {fileID: 0}
258 + m_GameObject: {fileID: 1173302083}
259 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
260 + m_LocalPosition: {x: 0, y: 0, z: .955755949}
261 + m_LocalScale: {x: 4.24944258, y: 4.24944258, z: 4.24944258}
262 + m_Children: []
263 + m_Father: {fileID: 0}
264 + m_RootOrder: 0
265 +--- !u!23 &1173302085
266 +Renderer:
267 + m_ObjectHideFlags: 0
268 + m_PrefabParentObject: {fileID: 0}
269 + m_PrefabInternal: {fileID: 0}
270 + m_GameObject: {fileID: 1173302083}
271 + m_Enabled: 1
272 + m_CastShadows: 0
273 + m_ReceiveShadows: 0
274 + m_LightmapIndex: 255
275 + m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
276 + m_Materials:
277 + - {fileID: 2100000, guid: 01779df11e1ccda45a756158a5404329, type: 2}
278 + m_SubsetIndices:
279 + m_StaticBatchRoot: {fileID: 0}
280 + m_UseLightProbes: 0
281 + m_LightProbeAnchor: {fileID: 0}
282 + m_ScaleInLightmap: 1
283 + m_SortingLayerID: 0
284 + m_SortingOrder: 0
285 +--- !u!33 &1173302086
286 +MeshFilter:
287 + m_ObjectHideFlags: 0
288 + m_PrefabParentObject: {fileID: 0}
289 + m_PrefabInternal: {fileID: 0}
290 + m_GameObject: {fileID: 1173302083}
291 + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
292 +--- !u!1 &1228051957
293 +GameObject:
294 + m_ObjectHideFlags: 0
295 + m_PrefabParentObject: {fileID: 0}
296 + m_PrefabInternal: {fileID: 0}
297 + serializedVersion: 4
298 + m_Component:
299 + - 4: {fileID: 1228051958}
300 + - 114: {fileID: 1228051959}
301 + m_Layer: 0
302 + m_Name: DemoInfo
303 + m_TagString: Untagged
304 + m_Icon: {fileID: 0}
305 + m_NavMeshLayer: 0
306 + m_StaticEditorFlags: 0
307 + m_IsActive: 1
308 +--- !u!4 &1228051958
309 +Transform:
310 + m_ObjectHideFlags: 0
311 + m_PrefabParentObject: {fileID: 0}
312 + m_PrefabInternal: {fileID: 0}
313 + m_GameObject: {fileID: 1228051957}
314 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
315 + m_LocalPosition: {x: 0, y: 0, z: 0}
316 + m_LocalScale: {x: 1, y: 1, z: 1}
317 + m_Children: []
318 + m_Father: {fileID: 0}
319 + m_RootOrder: 1
320 +--- !u!114 &1228051959
321 +MonoBehaviour:
322 + m_ObjectHideFlags: 0
323 + m_PrefabParentObject: {fileID: 0}
324 + m_PrefabInternal: {fileID: 0}
325 + m_GameObject: {fileID: 1228051957}
326 + m_Enabled: 1
327 + m_EditorHideFlags: 0
328 + m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
329 + m_Name:
330 + m_EditorClassIdentifier:
331 + _title: Multiple Videos
332 + _description: This demo allows performance testing with multiple videos. Press
333 + the "+" to create another instance of a video.
1 +fileFormatVersion: 2
2 +guid: 7159c7fadb7a71a41836b660557c68f1
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!29 &1
4 +SceneSettings:
5 + m_ObjectHideFlags: 0
6 + m_PVSData:
7 + m_PVSObjectsArray: []
8 + m_PVSPortalsArray: []
9 + m_OcclusionBakeSettings:
10 + smallestOccluder: 5
11 + smallestHole: .25
12 + backfaceThreshold: 100
13 +--- !u!104 &2
14 +RenderSettings:
15 + m_Fog: 0
16 + m_FogColor: {r: .5, g: .5, b: .5, a: 1}
17 + m_FogMode: 3
18 + m_FogDensity: .00999999978
19 + m_LinearFogStart: 0
20 + m_LinearFogEnd: 300
21 + m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
22 + m_SkyboxMaterial: {fileID: 0}
23 + m_HaloStrength: .5
24 + m_FlareStrength: 1
25 + m_FlareFadeSpeed: 3
26 + m_HaloTexture: {fileID: 0}
27 + m_SpotCookie: {fileID: 0}
28 + m_ObjectHideFlags: 0
29 +--- !u!127 &3
30 +LevelGameManager:
31 + m_ObjectHideFlags: 0
32 +--- !u!157 &4
33 +LightmapSettings:
34 + m_ObjectHideFlags: 0
35 + m_LightProbes: {fileID: 0}
36 + m_Lightmaps: []
37 + m_LightmapsMode: 1
38 + m_BakedColorSpace: 0
39 + m_UseDualLightmapsInForward: 0
40 + m_LightmapEditorSettings:
41 + m_Resolution: 50
42 + m_LastUsedResolution: 0
43 + m_TextureWidth: 1024
44 + m_TextureHeight: 1024
45 + m_BounceBoost: 1
46 + m_BounceIntensity: 1
47 + m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
48 + m_SkyLightIntensity: 0
49 + m_Quality: 0
50 + m_Bounces: 1
51 + m_FinalGatherRays: 1000
52 + m_FinalGatherContrastThreshold: .0500000007
53 + m_FinalGatherGradientThreshold: 0
54 + m_FinalGatherInterpolationPoints: 15
55 + m_AOAmount: 0
56 + m_AOMaxDistance: .100000001
57 + m_AOContrast: 1
58 + m_LODSurfaceMappingDistance: 1
59 + m_Padding: 0
60 + m_TextureCompression: 0
61 + m_LockAtlas: 0
62 +--- !u!1 &5
63 +GameObject:
64 + m_ObjectHideFlags: 0
65 + m_PrefabParentObject: {fileID: 0}
66 + m_PrefabInternal: {fileID: 0}
67 + serializedVersion: 4
68 + m_Component:
69 + - 4: {fileID: 6}
70 + - 20: {fileID: 7}
71 + - 92: {fileID: 8}
72 + - 114: {fileID: 12}
73 + - 114: {fileID: 17}
74 + - 114: {fileID: 13}
75 + - 114: {fileID: 14}
76 + - 114: {fileID: 9}
77 + m_Layer: 0
78 + m_Name: Main Camera
79 + m_TagString: MainCamera
80 + m_Icon: {fileID: 0}
81 + m_NavMeshLayer: 0
82 + m_StaticEditorFlags: 0
83 + m_IsActive: 1
84 +--- !u!4 &6
85 +Transform:
86 + m_ObjectHideFlags: 0
87 + m_PrefabParentObject: {fileID: 0}
88 + m_PrefabInternal: {fileID: 0}
89 + m_GameObject: {fileID: 5}
90 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
91 + m_LocalPosition: {x: 0, y: 0, z: -2.79980826}
92 + m_LocalScale: {x: 1, y: 1, z: 1}
93 + m_Children: []
94 + m_Father: {fileID: 0}
95 + m_RootOrder: 2
96 +--- !u!20 &7
97 +Camera:
98 + m_ObjectHideFlags: 0
99 + m_PrefabParentObject: {fileID: 0}
100 + m_PrefabInternal: {fileID: 0}
101 + m_GameObject: {fileID: 5}
102 + m_Enabled: 1
103 + serializedVersion: 2
104 + m_ClearFlags: 2
105 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: .0196078438}
106 + m_NormalizedViewPortRect:
107 + serializedVersion: 2
108 + x: 0
109 + y: 0
110 + width: 1
111 + height: 1
112 + near clip plane: .300000012
113 + far clip plane: 1000
114 + field of view: 60
115 + orthographic: 0
116 + orthographic size: 100
117 + m_Depth: 0
118 + m_CullingMask:
119 + serializedVersion: 2
120 + m_Bits: 4294967295
121 + m_RenderingPath: -1
122 + m_TargetTexture: {fileID: 0}
123 + m_TargetDisplay: 0
124 + m_HDR: 0
125 + m_OcclusionCulling: 0
126 + m_StereoConvergence: 10
127 + m_StereoSeparation: .0219999999
128 +--- !u!92 &8
129 +Behaviour:
130 + m_ObjectHideFlags: 0
131 + m_PrefabParentObject: {fileID: 0}
132 + m_PrefabInternal: {fileID: 0}
133 + m_GameObject: {fileID: 5}
134 + m_Enabled: 1
135 +--- !u!114 &9
136 +MonoBehaviour:
137 + m_ObjectHideFlags: 0
138 + m_PrefabParentObject: {fileID: 0}
139 + m_PrefabInternal: {fileID: 0}
140 + m_GameObject: {fileID: 5}
141 + m_Enabled: 1
142 + m_EditorHideFlags: 0
143 + m_Script: {fileID: 11500000, guid: 782a63ed2c371794fa17db381425d391, type: 3}
144 + m_Name:
145 + m_EditorClassIdentifier:
146 + _skin: {fileID: 11400000, guid: eb821627fb1a0c044a6fd7a6dabe3147, type: 2}
147 + _demo: {fileID: 13}
148 +--- !u!196 &11
149 +NavMeshSettings:
150 + m_ObjectHideFlags: 0
151 + m_BuildSettings:
152 + agentRadius: .5
153 + agentHeight: 2
154 + agentSlope: 45
155 + agentClimb: .400000006
156 + ledgeDropHeight: 0
157 + maxJumpAcrossDistance: 0
158 + accuratePlacement: 0
159 + minRegionArea: 2
160 + widthInaccuracy: 16.666666
161 + heightInaccuracy: 10
162 + m_NavMesh: {fileID: 0}
163 +--- !u!114 &12
164 +MonoBehaviour:
165 + m_ObjectHideFlags: 0
166 + m_PrefabParentObject: {fileID: 0}
167 + m_PrefabInternal: {fileID: 0}
168 + m_GameObject: {fileID: 5}
169 + m_Enabled: 1
170 + m_EditorHideFlags: 0
171 + m_Script: {fileID: 11500000, guid: 8225388bc511e1f40be2e753ddefe282, type: 3}
172 + m_Name:
173 + m_EditorClassIdentifier:
174 + _folder:
175 + _filename:
176 + _useStreamingAssetsPath: 0
177 + _loop: 0
178 + _colourFormat: 2
179 + _allowAudio: 1
180 + _useAudioDelay: 0
181 + _useAudioMixer: 0
182 + _useDisplaySync: 0
183 + _loadOnStart: 0
184 + _playOnStart: 0
185 + _editorPreview: 0
186 + _ignoreFlips: 1
187 + _volume: 1
188 + _audioBalance: 0
189 + _textureFilterMode: 1
190 + _textureWrapMode: 1
191 + _clips: []
192 +--- !u!114 &13
193 +MonoBehaviour:
194 + m_ObjectHideFlags: 0
195 + m_PrefabParentObject: {fileID: 0}
196 + m_PrefabInternal: {fileID: 0}
197 + m_GameObject: {fileID: 5}
198 + m_Enabled: 1
199 + m_EditorHideFlags: 0
200 + m_Script: {fileID: 11500000, guid: f14b6ec72af3052428039addee13c46c, type: 3}
201 + m_Name:
202 + m_EditorClassIdentifier:
203 + _movieA: {fileID: 12}
204 + _movieB: {fileID: 14}
205 + _folder:
206 + _filenames:
207 + - sample-green-480x256-divx.avi
208 + - sample-yellow-480x256-divx.avi
209 + - sample-blue-480x256-divx.avi
210 + - sample-purple-480x256-divx.avi
211 +--- !u!114 &14
212 +MonoBehaviour:
213 + m_ObjectHideFlags: 0
214 + m_PrefabParentObject: {fileID: 0}
215 + m_PrefabInternal: {fileID: 0}
216 + m_GameObject: {fileID: 5}
217 + m_Enabled: 1
218 + m_EditorHideFlags: 0
219 + m_Script: {fileID: 11500000, guid: 8225388bc511e1f40be2e753ddefe282, type: 3}
220 + m_Name:
221 + m_EditorClassIdentifier:
222 + _folder:
223 + _filename:
224 + _useStreamingAssetsPath: 0
225 + _loop: 0
226 + _colourFormat: 2
227 + _allowAudio: 1
228 + _useAudioDelay: 0
229 + _useAudioMixer: 0
230 + _useDisplaySync: 0
231 + _loadOnStart: 0
232 + _playOnStart: 0
233 + _editorPreview: 0
234 + _ignoreFlips: 1
235 + _volume: 1
236 + _audioBalance: 0
237 + _textureFilterMode: 1
238 + _textureWrapMode: 1
239 + _clips: []
240 +--- !u!114 &17
241 +MonoBehaviour:
242 + m_ObjectHideFlags: 0
243 + m_PrefabParentObject: {fileID: 0}
244 + m_PrefabInternal: {fileID: 0}
245 + m_GameObject: {fileID: 5}
246 + m_Enabled: 1
247 + m_EditorHideFlags: 0
248 + m_Script: {fileID: 11500000, guid: e97ef6d0bfd7238498bb990e58ae4ca2, type: 3}
249 + m_Name:
250 + m_EditorClassIdentifier:
251 + _logVideoLoads: 1
252 + _useExternalTextures: 0
253 +--- !u!1 &378954966
254 +GameObject:
255 + m_ObjectHideFlags: 0
256 + m_PrefabParentObject: {fileID: 0}
257 + m_PrefabInternal: {fileID: 0}
258 + serializedVersion: 4
259 + m_Component:
260 + - 4: {fileID: 378954967}
261 + - 108: {fileID: 378954968}
262 + m_Layer: 0
263 + m_Name: Point light
264 + m_TagString: Untagged
265 + m_Icon: {fileID: 0}
266 + m_NavMeshLayer: 0
267 + m_StaticEditorFlags: 0
268 + m_IsActive: 1
269 +--- !u!4 &378954967
270 +Transform:
271 + m_ObjectHideFlags: 0
272 + m_PrefabParentObject: {fileID: 0}
273 + m_PrefabInternal: {fileID: 0}
274 + m_GameObject: {fileID: 378954966}
275 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
276 + m_LocalPosition: {x: 0, y: 0, z: -2.31003428}
277 + m_LocalScale: {x: 1, y: 1, z: 1}
278 + m_Children: []
279 + m_Father: {fileID: 0}
280 + m_RootOrder: 3
281 +--- !u!108 &378954968
282 +Light:
283 + m_ObjectHideFlags: 0
284 + m_PrefabParentObject: {fileID: 0}
285 + m_PrefabInternal: {fileID: 0}
286 + m_GameObject: {fileID: 378954966}
287 + m_Enabled: 1
288 + serializedVersion: 3
289 + m_Type: 2
290 + m_Color: {r: 1, g: 1, b: 1, a: 1}
291 + m_Intensity: 1
292 + m_Range: 10
293 + m_SpotAngle: 30
294 + m_CookieSize: 10
295 + m_Shadows:
296 + m_Type: 0
297 + m_Resolution: -1
298 + m_Strength: 1
299 + m_Bias: .0500000007
300 + m_Softness: 4
301 + m_SoftnessFade: 1
302 + m_Cookie: {fileID: 0}
303 + m_DrawHalo: 0
304 + m_ActuallyLightmapped: 0
305 + m_Flare: {fileID: 0}
306 + m_RenderMode: 0
307 + m_CullingMask:
308 + serializedVersion: 2
309 + m_Bits: 4294967295
310 + m_Lightmapping: 1
311 + m_ShadowSamples: 1
312 + m_ShadowRadius: 0
313 + m_ShadowAngle: 0
314 + m_IndirectIntensity: 1
315 + m_AreaSize: {x: 1, y: 1}
316 +--- !u!1 &781023460
317 +GameObject:
318 + m_ObjectHideFlags: 0
319 + m_PrefabParentObject: {fileID: 0}
320 + m_PrefabInternal: {fileID: 0}
321 + serializedVersion: 4
322 + m_Component:
323 + - 4: {fileID: 781023461}
324 + - 114: {fileID: 781023462}
325 + m_Layer: 0
326 + m_Name: DemoInfo
327 + m_TagString: Untagged
328 + m_Icon: {fileID: 0}
329 + m_NavMeshLayer: 0
330 + m_StaticEditorFlags: 0
331 + m_IsActive: 1
332 +--- !u!4 &781023461
333 +Transform:
334 + m_ObjectHideFlags: 0
335 + m_PrefabParentObject: {fileID: 0}
336 + m_PrefabInternal: {fileID: 0}
337 + m_GameObject: {fileID: 781023460}
338 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
339 + m_LocalPosition: {x: 0, y: 0, z: 0}
340 + m_LocalScale: {x: 1, y: 1, z: 1}
341 + m_Children: []
342 + m_Father: {fileID: 0}
343 + m_RootOrder: 1
344 +--- !u!114 &781023462
345 +MonoBehaviour:
346 + m_ObjectHideFlags: 0
347 + m_PrefabParentObject: {fileID: 0}
348 + m_PrefabInternal: {fileID: 0}
349 + m_GameObject: {fileID: 781023460}
350 + m_Enabled: 1
351 + m_EditorHideFlags: 0
352 + m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
353 + m_Name:
354 + m_EditorClassIdentifier:
355 + _title: Playlist
356 + _description: This demo shows how to create a playlist.
357 +--- !u!1 &1173302083
358 +GameObject:
359 + m_ObjectHideFlags: 0
360 + m_PrefabParentObject: {fileID: 0}
361 + m_PrefabInternal: {fileID: 0}
362 + serializedVersion: 4
363 + m_Component:
364 + - 4: {fileID: 1173302084}
365 + - 33: {fileID: 1173302086}
366 + - 23: {fileID: 1173302085}
367 + m_Layer: 0
368 + m_Name: Cube
369 + m_TagString: Untagged
370 + m_Icon: {fileID: 0}
371 + m_NavMeshLayer: 0
372 + m_StaticEditorFlags: 0
373 + m_IsActive: 1
374 +--- !u!4 &1173302084
375 +Transform:
376 + m_ObjectHideFlags: 0
377 + m_PrefabParentObject: {fileID: 0}
378 + m_PrefabInternal: {fileID: 0}
379 + m_GameObject: {fileID: 1173302083}
380 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
381 + m_LocalPosition: {x: 0, y: 0, z: .955755949}
382 + m_LocalScale: {x: 4.24944258, y: 4.24944258, z: 4.24944258}
383 + m_Children: []
384 + m_Father: {fileID: 0}
385 + m_RootOrder: 0
386 +--- !u!23 &1173302085
387 +Renderer:
388 + m_ObjectHideFlags: 0
389 + m_PrefabParentObject: {fileID: 0}
390 + m_PrefabInternal: {fileID: 0}
391 + m_GameObject: {fileID: 1173302083}
392 + m_Enabled: 1
393 + m_CastShadows: 0
394 + m_ReceiveShadows: 0
395 + m_LightmapIndex: 255
396 + m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
397 + m_Materials:
398 + - {fileID: 2100000, guid: 01779df11e1ccda45a756158a5404329, type: 2}
399 + m_SubsetIndices:
400 + m_StaticBatchRoot: {fileID: 0}
401 + m_UseLightProbes: 0
402 + m_LightProbeAnchor: {fileID: 0}
403 + m_ScaleInLightmap: 1
404 + m_SortingLayerID: 0
405 + m_SortingOrder: 0
406 +--- !u!33 &1173302086
407 +MeshFilter:
408 + m_ObjectHideFlags: 0
409 + m_PrefabParentObject: {fileID: 0}
410 + m_PrefabInternal: {fileID: 0}
411 + m_GameObject: {fileID: 1173302083}
412 + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
1 +fileFormatVersion: 2
2 +guid: 0ecbaa6b966332745816a8c4548ce2eb
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 8c7f1e159c88c574486d5c2e8c46ea38
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 1d418ec00b0c48f478e769e27b2702a4
3 +DefaultImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: e71e47921a23f684aaaa611c87ee966c
3 +folderAsset: yes
4 +timeCreated: 1464981786
5 +licenseType: Pro
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: b770602bc32793c478ed2b441c551ff0
3 +TextScriptImporter:
4 + userData:
5 + assetBundleName:
6 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: dc736ba20fb17c94e9492edab0184edb
3 +folderAsset: yes
4 +timeCreated: 1464981786
5 +licenseType: Pro
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Collections;
3 +
4 +public class AVProWindowsMediaMaterialMappingDemo : MonoBehaviour
5 +{
6 + public GUISkin _skin;
7 + public AVProWindowsMediaMovie _movie;
8 +
9 +
10 + private bool _visible = true;
11 + private float _alpha = 1.0f;
12 +
13 + public void OnGUI()
14 + {
15 + GUI.skin = _skin;
16 +
17 + if (_visible)
18 + {
19 + GUI.color = new Color(1f, 1f, 1f, _alpha);
20 + GUILayout.BeginArea(new Rect(0, 0, 740, 300), GUI.skin.box);
21 + ControlWindow(0);
22 + GUILayout.EndArea();
23 + }
24 + GUI.color = new Color(1f, 1f, 1f, 1f - _alpha);
25 + GUI.Box(new Rect(0, 0, 128, 32), "Demo Controls");
26 + }
27 +
28 + void Update()
29 + {
30 + Rect r = new Rect(0, 0, 740, 310);
31 + if (r.Contains(new Vector2(Input.mousePosition.x, Screen.height - Input.mousePosition.y)))
32 + {
33 + _visible = true;
34 + _alpha = 1.0f;
35 + }
36 + else
37 + {
38 + _alpha -= Time.deltaTime * 4f;
39 + if (_alpha <= 0.0f)
40 + {
41 + _alpha = 0.0f;
42 + _visible = false;
43 + }
44 + }
45 + }
46 +
47 + public void ControlWindow(int id)
48 + {
49 + if (_movie == null)
50 + return;
51 +
52 + GUILayout.Space(16f);
53 +
54 + GUILayout.BeginVertical();
55 +
56 + GUILayout.BeginHorizontal();
57 + GUILayout.Label("Folder: ", GUILayout.Width(80));
58 + _movie._folder = GUILayout.TextField(_movie._folder, 192);
59 + GUILayout.EndHorizontal();
60 +
61 + GUILayout.BeginHorizontal();
62 + GUILayout.Label("File: ", GUILayout.Width(80));
63 + _movie._filename = GUILayout.TextField(_movie._filename, 128, GUILayout.Width(440));
64 + if (GUILayout.Button("Load File", GUILayout.Width(90)))
65 + {
66 + _movie.LoadMovie(true);
67 + }
68 + GUILayout.EndHorizontal();
69 +
70 + bool alphaBlend = _movie._colourFormat == AVProWindowsMediaMovie.ColourFormat.RGBA32;
71 + if (alphaBlend)
72 + alphaBlend = GUILayout.Toggle(alphaBlend, "Render with Transparency (requires movie reload)");
73 + else
74 + alphaBlend = GUILayout.Toggle(alphaBlend, "Render without Transparency");
75 +
76 + if (alphaBlend)
77 + {
78 + _movie._colourFormat = AVProWindowsMediaMovie.ColourFormat.RGBA32;
79 + }
80 + else
81 + {
82 + _movie._colourFormat = AVProWindowsMediaMovie.ColourFormat.YCbCr_HD;
83 + }
84 +
85 +
86 + AVProWindowsMedia moviePlayer = _movie.MovieInstance;
87 + if (moviePlayer != null)
88 + {
89 + GUILayout.BeginHorizontal();
90 + GUILayout.Label("Info:", GUILayout.Width(80f));
91 + GUILayout.Label(moviePlayer.Width + "x" + moviePlayer.Height + " @ " + moviePlayer.FrameRate.ToString("F2") + " FPS");
92 + GUILayout.EndHorizontal();
93 +
94 + GUILayout.BeginHorizontal();
95 + GUILayout.Label("Volume ", GUILayout.Width(80));
96 + float volume = _movie._volume;
97 + float newVolume = GUILayout.HorizontalSlider(volume, 0.0f, 1.0f, GUILayout.Width(200));
98 + if (volume != newVolume)
99 + {
100 + _movie._volume = newVolume;
101 + }
102 + GUILayout.Label(_movie._volume.ToString("F1"));
103 + GUILayout.EndHorizontal();
104 +
105 +
106 + GUILayout.BeginHorizontal();
107 + GUILayout.Label("Balance ", GUILayout.Width(80));
108 + float balance = moviePlayer.AudioBalance;
109 + float newBalance = GUILayout.HorizontalSlider(balance, -1.0f, 1.0f, GUILayout.Width(200));
110 + if (balance != newBalance)
111 + {
112 + moviePlayer.AudioBalance = newBalance;
113 + }
114 + GUILayout.Label(moviePlayer.AudioBalance.ToString("F1"));
115 + GUILayout.EndHorizontal();
116 +
117 +
118 + GUILayout.BeginHorizontal();
119 + GUILayout.Label("Time ", GUILayout.Width(80));
120 + float position = moviePlayer.PositionSeconds;
121 + float newPosition = GUILayout.HorizontalSlider(position, 0.0f, moviePlayer.DurationSeconds, GUILayout.Width(200));
122 + if (position != newPosition)
123 + {
124 + moviePlayer.PositionSeconds = newPosition;
125 + }
126 + GUILayout.Label(moviePlayer.PositionSeconds.ToString("F1") + " / " + moviePlayer.DurationSeconds.ToString("F1") + "s");
127 +
128 + if (GUILayout.Button("Play"))
129 + {
130 + moviePlayer.Play();
131 + }
132 + if (GUILayout.Button("Pause"))
133 + {
134 + moviePlayer.Pause();
135 + }
136 + GUILayout.EndHorizontal();
137 +
138 +
139 + GUILayout.BeginHorizontal();
140 + GUILayout.Label("Frame", GUILayout.Width(80f));
141 + GUILayout.Label(moviePlayer.PositionFrames.ToString() + " / " + moviePlayer.DurationFrames.ToString());
142 +
143 + if (GUILayout.Button("<", GUILayout.Width(50)))
144 + {
145 + moviePlayer.Pause();
146 + if (moviePlayer.PositionFrames > 0)
147 + {
148 + moviePlayer.PositionFrames--;
149 + }
150 + }
151 + if (GUILayout.Button(">", GUILayout.Width(50)))
152 + {
153 + moviePlayer.Pause();
154 + if (moviePlayer.PositionFrames < moviePlayer.DurationFrames)
155 + {
156 + moviePlayer.PositionFrames++;
157 + }
158 + }
159 +
160 + GUILayout.EndHorizontal();
161 +
162 +
163 +
164 + GUILayout.BeginHorizontal();
165 + GUILayout.Label("Rate ", GUILayout.Width(80f));
166 + GUILayout.Label(moviePlayer.PlaybackRate.ToString("F2") + "x");
167 + if (GUILayout.Button("-", GUILayout.Width(50)))
168 + {
169 + moviePlayer.PlaybackRate = moviePlayer.PlaybackRate * 0.5f;
170 + }
171 +
172 + if (GUILayout.Button("+", GUILayout.Width(50)))
173 + {
174 + moviePlayer.PlaybackRate = moviePlayer.PlaybackRate * 2.0f;
175 + }
176 + GUILayout.EndHorizontal();
177 + }
178 +
179 + GUILayout.EndVertical();
180 + }
181 +}
1 +fileFormatVersion: 2
2 +guid: 2ec198953ee163546b88a2037afc374a
3 +MonoImporter:
4 + serializedVersion: 2
5 + defaultReferences: []
6 + executionOrder: 0
7 + icon: {instanceID: 0}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.IO;
4 +using System.Runtime.InteropServices;
5 +
6 +public class AVProWindowsMediaPlayVideoDemo : MonoBehaviour
7 +{
8 + public GUISkin _skin;
9 + public AVProWindowsMediaMovie _movie;
10 + public AVProWindowsMediaGUIDisplay _display;
11 +
12 + private bool _visible = true;
13 + private float _alpha = 1.0f;
14 + private bool _playFromMemory = false;
15 +
16 + private GCHandle _bytesHandle;
17 + private System.IntPtr _moviePtr;
18 + private uint _movieLength;
19 +
20 + private void ReleaseMemoryFile()
21 + {
22 + if (_bytesHandle.IsAllocated)
23 + _bytesHandle.Free();
24 + _moviePtr = System.IntPtr.Zero;
25 + _movieLength = 0;
26 + }
27 +
28 + private void LoadFileToMemory(string folder, string filename)
29 + {
30 +#if !UNITY_WEBPLAYER
31 + string filePath = Path.Combine(folder, filename);
32 +
33 + // If we're running outside of the editor we may need to resolve the relative path
34 + // as the working-directory may not be that of the application EXE.
35 + if (!Application.isEditor && !Path.IsPathRooted(filePath))
36 + {
37 + string rootPath = Path.GetFullPath(Path.Combine(Application.dataPath, ".."));
38 + filePath = Path.Combine(rootPath, filePath);
39 + }
40 +
41 + ReleaseMemoryFile();
42 + if (File.Exists(filePath))
43 + {
44 + byte[] bytes = System.IO.File.ReadAllBytes(filePath);
45 + if (bytes.Length > 0)
46 + {
47 + _bytesHandle = GCHandle.Alloc(bytes, GCHandleType.Pinned);
48 + _moviePtr = _bytesHandle.AddrOfPinnedObject();
49 + _movieLength = (uint)bytes.Length;
50 +
51 + _movie.LoadMovieFromMemory(true, filename, _moviePtr, _movieLength, FilterMode.Bilinear, TextureWrapMode.Clamp);
52 + }
53 + }
54 +#else
55 + Debug.LogError("[AVProWindowsMedia] Loading from memory not supported on this platform. Change platform to Standalone.");
56 +#endif
57 + }
58 +
59 + public void OnGUI()
60 + {
61 + GUI.skin = _skin;
62 +
63 + if (_visible)
64 + {
65 + GUI.color = new Color(1f, 1f, 1f, _alpha);
66 + GUILayout.BeginArea(new Rect(0, 0, 740, 350), GUI.skin.box);
67 + ControlWindow(0);
68 + GUILayout.EndArea();
69 + }
70 + GUI.color = new Color(1f, 1f, 1f, 1f - _alpha);
71 + GUI.Box(new Rect(0, 0, 128, 32), "Demo Controls");
72 + }
73 +
74 + void Update()
75 + {
76 + Rect r = new Rect(0, 0, 740, 350);
77 + if (r.Contains(new Vector2(Input.mousePosition.x, Screen.height - Input.mousePosition.y)))
78 + {
79 + _visible = true;
80 + _alpha = 1.0f;
81 + }
82 + else
83 + {
84 + _alpha -= Time.deltaTime * 4f;
85 + if (_alpha <= 0.0f)
86 + {
87 + _alpha = 0.0f;
88 + _visible = false;
89 + }
90 + }
91 + }
92 +
93 + public void ControlWindow(int id)
94 + {
95 + if (_movie == null)
96 + return;
97 +
98 + GUILayout.Space(16f);
99 +
100 + GUILayout.BeginVertical();
101 +
102 + GUILayout.BeginHorizontal();
103 + GUILayout.Label("Folder: ", GUILayout.Width(100));
104 + _movie._folder = GUILayout.TextField(_movie._folder, 192);
105 + GUILayout.EndHorizontal();
106 +
107 + GUILayout.BeginHorizontal();
108 + GUILayout.Label("File: ", GUILayout.Width(100));
109 + _movie._filename = GUILayout.TextField(_movie._filename, 128, GUILayout.Width(440));
110 + if (GUILayout.Button("Load File", GUILayout.Width(90)))
111 + {
112 + if (!_playFromMemory)
113 + {
114 + _movie.LoadMovie(true);
115 + }
116 + else
117 + {
118 + LoadFileToMemory(_movie._folder, _movie._filename);
119 + }
120 + }
121 + GUILayout.EndHorizontal();
122 +
123 +
124 + if (_display != null)
125 + {
126 + GUILayout.BeginHorizontal();
127 + GUILayout.Space(100f);
128 + /*if (_display._alphaBlend)
129 + _display._alphaBlend = GUILayout.Toggle(_display._alphaBlend, "Rendering with Transparency");
130 + else
131 + _display._alphaBlend = GUILayout.Toggle(_display._alphaBlend, "Rendering without Transparency");*/
132 +
133 + if (_display._alphaBlend != GUILayout.Toggle(_display._alphaBlend, "Render with Transparency"))
134 + {
135 + _display._alphaBlend = !_display._alphaBlend;
136 + if (_display._alphaBlend)
137 + {
138 + _movie._colourFormat = AVProWindowsMediaMovie.ColourFormat.RGBA32;
139 + }
140 + else
141 + {
142 + _movie._colourFormat = AVProWindowsMediaMovie.ColourFormat.YCbCr_HD;
143 + }
144 +
145 + if (!_playFromMemory)
146 + {
147 + _movie.LoadMovie(true);
148 + }
149 + else
150 + {
151 + LoadFileToMemory(_movie._folder, _movie._filename);
152 + }
153 + }
154 +
155 +
156 +
157 + if (_playFromMemory != GUILayout.Toggle(_playFromMemory, "Play from Memory"))
158 + {
159 + _playFromMemory = !_playFromMemory;
160 + if (_movie.MovieInstance != null)
161 + {
162 + if (!_playFromMemory)
163 + {
164 + _movie.LoadMovie(true);
165 + }
166 + else
167 + {
168 + LoadFileToMemory(_movie._folder, _movie._filename);
169 + }
170 + }
171 +
172 + }
173 +
174 + GUILayout.EndHorizontal();
175 + }
176 +
177 + AVProWindowsMedia moviePlayer = _movie.MovieInstance;
178 + if (moviePlayer != null)
179 + {
180 + GUILayout.BeginHorizontal();
181 + GUILayout.Label("Info:", GUILayout.Width(100f));
182 + GUILayout.Label(moviePlayer.Width + "x" + moviePlayer.Height + " @ " + moviePlayer.FrameRate.ToString("F2") + " FPS");
183 + GUILayout.EndHorizontal();
184 +
185 + GUILayout.BeginHorizontal();
186 + GUILayout.Label("Volume ", GUILayout.Width(100));
187 + float volume = _movie._volume;
188 + float newVolume = GUILayout.HorizontalSlider(volume, 0.0f, 1.0f, GUILayout.Width(200));
189 + if (volume != newVolume)
190 + {
191 + _movie._volume = newVolume;
192 + }
193 + GUILayout.Label(_movie._volume.ToString("F1"));
194 + GUILayout.EndHorizontal();
195 +
196 +
197 + GUILayout.BeginHorizontal();
198 + GUILayout.Label("Balance ", GUILayout.Width(100));
199 + float balance = _movie._audioBalance;
200 + float newBalance = GUILayout.HorizontalSlider(balance, -1.0f, 1.0f, GUILayout.Width(200));
201 + if (balance != newBalance)
202 + {
203 + _movie._audioBalance = newBalance;
204 + }
205 + GUILayout.Label(moviePlayer.AudioBalance.ToString("F1"));
206 + GUILayout.EndHorizontal();
207 +
208 + GUILayout.BeginHorizontal();
209 + GUILayout.Label("Audio Delay", GUILayout.Width(100));
210 + int delay = moviePlayer.AudioDelay;
211 + int newDelay = Mathf.FloorToInt(GUILayout.HorizontalSlider(delay, -1000.0f, 1000.0f, GUILayout.Width(200)));
212 + if (delay != newDelay)
213 + {
214 + moviePlayer.AudioDelay = newDelay;
215 + }
216 + float msPerFrame = 1000.0f / moviePlayer.FrameRate;
217 + int frameDelay = Mathf.FloorToInt((float)newDelay / msPerFrame);
218 + GUILayout.Label(moviePlayer.AudioDelay.ToString() + "ms (" + frameDelay + " frames)");
219 + GUILayout.EndHorizontal();
220 +
221 +
222 +
223 + GUILayout.BeginHorizontal();
224 + GUILayout.Label("Time ", GUILayout.Width(100));
225 + float position = moviePlayer.PositionSeconds;
226 + float newPosition = GUILayout.HorizontalSlider(position, 0.0f, moviePlayer.DurationSeconds, GUILayout.Width(200));
227 + if (position != newPosition)
228 + {
229 + moviePlayer.PositionSeconds = newPosition;
230 + }
231 + GUILayout.Label(moviePlayer.PositionSeconds.ToString("F2") + " / " + moviePlayer.DurationSeconds.ToString("F3") + "s");
232 +
233 + if (GUILayout.Button("Play"))
234 + {
235 + moviePlayer.Play();
236 + }
237 + if (GUILayout.Button("Pause"))
238 + {
239 + moviePlayer.Pause();
240 + }
241 + GUILayout.EndHorizontal();
242 +
243 +
244 + GUILayout.BeginHorizontal();
245 + GUILayout.Label("Frame", GUILayout.Width(100f));
246 +
247 + uint positionFrame = moviePlayer.PositionFrames;
248 + if (positionFrame != uint.MaxValue)
249 + {
250 + uint newPositionFrame = (uint)GUILayout.HorizontalSlider(positionFrame, 0.0f, (float)moviePlayer.LastFrame, GUILayout.Width(200));
251 + if (positionFrame != newPositionFrame)
252 + {
253 + moviePlayer.PositionFrames = newPositionFrame;
254 + }
255 +
256 + GUILayout.Label(moviePlayer.PositionFrames.ToString() + " / " + moviePlayer.LastFrame.ToString());
257 +
258 + if (GUILayout.RepeatButton("<", GUILayout.Width(50)))
259 + {
260 + if (moviePlayer.PositionFrames > 0)
261 + {
262 + moviePlayer.PositionFrames--;
263 + }
264 + }
265 + if (GUILayout.RepeatButton(">", GUILayout.Width(50)))
266 + {
267 + if (moviePlayer.PositionFrames < moviePlayer.LastFrame)
268 + {
269 + moviePlayer.PositionFrames++;
270 + }
271 + }
272 +
273 + GUILayout.EndHorizontal();
274 + }
275 +
276 +
277 +
278 + GUILayout.BeginHorizontal();
279 + GUILayout.Label("Rate ", GUILayout.Width(100f));
280 + GUILayout.Label(moviePlayer.PlaybackRate.ToString("F2") + "x");
281 + if (GUILayout.Button("-", GUILayout.Width(50)))
282 + {
283 + moviePlayer.PlaybackRate = moviePlayer.PlaybackRate * 0.5f;
284 + }
285 +
286 + if (GUILayout.Button("+", GUILayout.Width(50)))
287 + {
288 + moviePlayer.PlaybackRate = moviePlayer.PlaybackRate * 2.0f;
289 + }
290 + GUILayout.EndHorizontal();
291 +#if UNITY_EDITOR
292 + GUILayout.Label("Displaying at " + moviePlayer.DisplayFPS.ToString("F1") + " fps");
293 +#endif
294 + }
295 +
296 + GUILayout.EndVertical();
297 + }
298 +}
1 +fileFormatVersion: 2
2 +guid: 6504c07c38ac6ec41aae933984864527
3 +MonoImporter:
4 + serializedVersion: 2
5 + defaultReferences: []
6 + executionOrder: 0
7 + icon: {instanceID: 0}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Collections;
3 +
4 +//-----------------------------------------------------------------------------
5 +// Copyright 2015-2016 RenderHeads Ltd. All rights reserverd.
6 +//-----------------------------------------------------------------------------
7 +
8 +namespace RenderHeads.Media.AVProVideo.Demos
9 +{
10 + [RequireComponent(typeof(Transform))]
11 + public class AutoRotate : MonoBehaviour
12 + {
13 + private float x, y, z;
14 +
15 + void Awake()
16 + {
17 + float s = 32f;
18 + x = Random.Range(-s, s);
19 + y = Random.Range(-s, s);
20 + z = Random.Range(-s, s);
21 + }
22 + void Update()
23 + {
24 + this.transform.Rotate(x * Time.deltaTime, y * Time.deltaTime, z * Time.deltaTime);
25 + }
26 + }
27 +}
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: 1ce061c3825c34945a67c7ca4422a7a1
3 +MonoImporter:
4 + serializedVersion: 2
5 + defaultReferences: []
6 + executionOrder: 0
7 + icon: {instanceID: 0}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Collections;
3 +
4 +//-----------------------------------------------------------------------------
5 +// Copyright 2012-2016 RenderHeads Ltd. All rights reserverd.
6 +//-----------------------------------------------------------------------------
7 +
8 +namespace RenderHeads.Media.AVProWindowsMedia.Demos
9 +{
10 + public class DemoInfo : MonoBehaviour
11 + {
12 + public string _title;
13 +
14 + [Multiline]
15 + public string _description;
16 + }
17 +}
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: 10fa3ce0e1c037e449490a4f9ca3bf99
3 +MonoImporter:
4 + serializedVersion: 2
5 + defaultReferences: []
6 + executionOrder: 0
7 + icon: {instanceID: 0}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.IO;
4 +
5 +public class FrameExtractDemo : MonoBehaviour
6 +{
7 + public string _folder;
8 + public string _filename;
9 + public bool _useStreamingAssetsPath;
10 + public GUISkin _guiSkin;
11 + public bool _async = true;
12 + private static GUIStyle _gridStyle;
13 +
14 + private AVProWindowsMedia _movie;
15 + private GUIContent[] _contents;
16 + private Texture2D[] _textures;
17 + private bool _isExtracting;
18 + private int _textureIndex;
19 + private uint _targetFrame;
20 + private uint _frameStep;
21 +
22 + private void DestroyTextures()
23 + {
24 + if (_textures != null)
25 + {
26 + for (int i = 0; i < _textures.Length; i++)
27 + {
28 + if (_textures[i])
29 + {
30 + Texture2D.Destroy(_textures[i]);
31 + _textures[i] = null;
32 + }
33 + }
34 + }
35 + }
36 +
37 + private bool StartExtractFrames(string filePath, uint numSamples)
38 + {
39 + DestroyTextures();
40 +
41 + if (_movie.StartVideo(filePath, true, true, false, false, false, false, false, FilterMode.Bilinear, TextureWrapMode.Clamp))
42 + {
43 + _textures = new Texture2D[numSamples];
44 + _contents = new GUIContent[numSamples];
45 + for (int i = 0; i < numSamples; i++)
46 + {
47 + _contents[i] = new GUIContent(" ");
48 + }
49 +
50 + uint numFrames = _movie.DurationFrames;
51 + _frameStep = numFrames / numSamples;
52 + _targetFrame = 0;
53 + _textureIndex = 0;
54 +
55 + if (!_async)
56 + {
57 + _isExtracting = true;
58 + while (_isExtracting)
59 + {
60 +#if UNITY_5 && !UNITY_5_0 && !UNITY_5_1
61 + GL.IssuePluginEvent(AVProWindowsMediaPlugin.GetRenderEventFunc(), (int)AVProWindowsMediaPlugin.PluginEvent.UpdateAllTextures);
62 +#else
63 + GL.IssuePluginEvent(AVProWindowsMediaPlugin.PluginID | (int)AVProWindowsMediaPlugin.PluginEvent.UpdateAllTextures);
64 +#endif
65 +
66 + UpdateExtracting();
67 + }
68 +
69 + return false;
70 + }
71 +
72 + return true;
73 + }
74 +
75 + return false;
76 + }
77 +
78 + void Start()
79 + {
80 + _movie = new AVProWindowsMedia();
81 + }
82 +
83 + void Update()
84 + {
85 + if (_isExtracting)
86 + UpdateExtracting();
87 + }
88 +
89 + private Texture2D CopyRenderTexture(RenderTexture rt)
90 + {
91 + RenderTexture prevRT = RenderTexture.active;
92 + RenderTexture.active = rt;
93 +
94 + Texture2D texture = new Texture2D(rt.width, rt.height, TextureFormat.ARGB32, false);
95 + texture.ReadPixels(new Rect(0, 0, rt.width, rt.height), 0, 0);
96 + texture.Apply(false, false);
97 +
98 + RenderTexture.active = prevRT;
99 +
100 + return texture;
101 + }
102 +
103 + private void UpdateExtracting()
104 + {
105 + _movie.Update(false);
106 + if (_movie.DisplayFrame == _targetFrame)
107 + {
108 + if (_textureIndex < _textures.Length)
109 + {
110 + Texture2D texture = CopyRenderTexture((RenderTexture)_movie.OutputTexture);
111 + texture.Apply(false, false);
112 + _contents[_textureIndex] = new GUIContent("Frame " + _targetFrame.ToString(), texture);
113 + _textures[_textureIndex++] = texture;
114 + }
115 +
116 + NextFrame();
117 + }
118 + }
119 +
120 + private void NextFrame()
121 + {
122 + _targetFrame += _frameStep;
123 + if (_targetFrame < _movie.DurationFrames)
124 + {
125 + // Seek to frame
126 + _movie.PositionFrames = _targetFrame;
127 + }
128 + else
129 + {
130 + _isExtracting = false;
131 + }
132 + }
133 +
134 + void OnDestroy()
135 + {
136 + DestroyTextures();
137 + if (_movie != null)
138 + {
139 + _movie.Dispose();
140 + _movie = null;
141 + }
142 + }
143 +
144 + public string GetFilePath()
145 + {
146 + string filePath = Path.Combine(_folder, _filename);
147 +
148 + if (_useStreamingAssetsPath)
149 + {
150 + filePath = Path.Combine(Application.streamingAssetsPath, filePath);
151 + }
152 + // If we're running outside of the editor we may need to resolve the relative path
153 + // as the working-directory may not be that of the application EXE.
154 + else if (!Application.isEditor && !Path.IsPathRooted(filePath))
155 + {
156 + string rootPath = Path.GetFullPath(Path.Combine(Application.dataPath, ".."));
157 + filePath = Path.Combine(rootPath, filePath);
158 + }
159 +
160 + return filePath;
161 + }
162 +
163 + void OnGUI()
164 + {
165 + GUI.skin = _guiSkin;
166 +
167 + if (_gridStyle == null)
168 + {
169 + _gridStyle = GUI.skin.GetStyle("ExtractFrameGrid");
170 + }
171 +
172 + GUI.enabled = !_isExtracting;
173 +
174 + GUILayout.BeginVertical(GUILayout.Width(Screen.width));
175 + GUILayout.BeginHorizontal();
176 + GUILayout.Label("Folder: ", GUILayout.Width(80));
177 + _folder = GUILayout.TextField(_folder, 192, GUILayout.ExpandWidth(true));
178 + GUILayout.EndHorizontal();
179 +
180 + GUILayout.BeginHorizontal();
181 + GUILayout.Label("File: ", GUILayout.Width(80));
182 + _filename = GUILayout.TextField(_filename, 128, GUILayout.MinWidth(440), GUILayout.ExpandWidth(true));
183 + GUILayout.EndHorizontal();
184 +
185 + GUILayout.BeginHorizontal();
186 + if (GUILayout.Button("Extract Frames", GUILayout.ExpandWidth(true)))
187 + {
188 + _isExtracting = StartExtractFrames(GetFilePath(), 24);
189 + }
190 +
191 + _async = GUILayout.Toggle(_async, "ASync");
192 + GUILayout.EndHorizontal();
193 +
194 + GUILayout.EndVertical();
195 +
196 + GUI.enabled = true;
197 +
198 + if (_textures != null)
199 + {
200 + if (_gridStyle != null)
201 + GUILayout.SelectionGrid(-1, _contents, 6, _gridStyle, GUILayout.Height(Screen.height-96));
202 + else
203 + GUILayout.SelectionGrid(-1, _contents, 6, GUILayout.Height(Screen.height-96));
204 + }
205 + }
206 +}
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: e60819a824743a54d82b5522e52cea3e
3 +MonoImporter:
4 + serializedVersion: 2
5 + defaultReferences: []
6 + executionOrder: 0
7 + icon: {instanceID: 0}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +
5 +public class MultiChannelDemo2 : MonoBehaviour
6 +{
7 + public GUISkin _guiSkin;
8 + public Texture2D _speaker;
9 + public Material _material;
10 + public int _numChannels = 8;
11 + private int _seed = 0;
12 + private Vector2[] _speakerPositions;
13 + private bool _normalise;
14 + private float _falloff = 8.0f;
15 +
16 + private int _totalUserCount;
17 + private List<MultiChannelDemo2User> _activeUsers = new List<MultiChannelDemo2User>(16);
18 +
19 + //private Dictionary<string, int> _loadedSounds = new Dictionary<string, int>(16);
20 +
21 + private Texture2D _falloffTexture;
22 +
23 + public int NumChannels
24 + {
25 + get { return _numChannels; }
26 + }
27 +
28 + void Start()
29 + {
30 +#if UNITY_5 && !UNITY_5_0 && !UNITY_5_1 && !UNITY_5_2 && !UNITY_5_3
31 + Random.InitState(0x1235431 + _seed);
32 +#else
33 + Random.seed = 0x1235431 + _seed;
34 +#endif
35 +
36 + _speakerPositions = new Vector2[_numChannels];
37 + UpdateSpeakerPositions();
38 +
39 + _falloffTexture = new Texture2D(128, 1, TextureFormat.ARGB32, false);
40 + _falloffTexture.filterMode = FilterMode.Bilinear;
41 + _falloffTexture.wrapMode = TextureWrapMode.Clamp;
42 + UpdateFalloffTexture();
43 + }
44 +
45 + private void UpdateFalloffTexture()
46 + {
47 + for (int i = 0; i < _falloffTexture.width; i++)
48 + {
49 + float t = i / (float)(_falloffTexture.width - 1);
50 + float l = GetLevel(t);
51 + _falloffTexture.SetPixel(i, 1, Color.white * l);
52 + }
53 +
54 + _falloffTexture.Apply(false, false);
55 + }
56 +
57 + void Update()
58 + {
59 + UpdateFalloffTexture();
60 + }
61 +
62 + public void DrawFalloff(Vector2 position)
63 + {
64 + _material.mainTexture = _falloffTexture;
65 + _material.SetPass(0);
66 +
67 + Matrix4x4 m = Matrix4x4.TRS(position, Quaternion.identity, Vector3.one);
68 +
69 + GL.PushMatrix();
70 + GL.LoadPixelMatrix();
71 + GL.MultMatrix(m);
72 + GL.Begin(GL.TRIANGLES);
73 +
74 + int numSegments = 36;
75 + float angle = 0.0f;
76 + float angleStep = (Mathf.PI * 2.0f) / numSegments;
77 + for (int i = 0; i < numSegments; i++)
78 + {
79 + float x = Mathf.Sin(angle);
80 + float y = Mathf.Cos(angle);
81 + x *= Screen.width;
82 + y *= Screen.height;
83 + y *= 1.777f;
84 + float z = 0.5f;
85 +
86 + GL.TexCoord2(0, 0);
87 + GL.Vertex3(0, 0, z);
88 +
89 + GL.TexCoord2(1, 0);
90 + GL.Vertex3(x, y, z);
91 +
92 + angle += angleStep;
93 + x = Mathf.Sin(angle);
94 + y = Mathf.Cos(angle);
95 + x *= Screen.width;
96 + y *= Screen.height;
97 + y *= 1.777f;
98 +
99 + GL.TexCoord2(1, 0);
100 + GL.Vertex3(x, y, z);
101 + }
102 +
103 + GL.End();
104 + GL.PopMatrix();
105 + }
106 +
107 + public float GetLevel(float d)
108 + {
109 + return 1.0f - Mathf.Clamp01(d * _falloff);
110 + }
111 +
112 + public void UpdateAudioMatrix(Vector2 userPosition, ref float[] values)
113 + {
114 + float valTotal = 0f;
115 +
116 + for (int i = 0; i < values.Length; i++)
117 + {
118 + Vector2 sp = _speakerPositions[i];
119 + sp.x /= Screen.width;
120 + sp.y /= Screen.height;
121 + values[i] = 1.0f - Mathf.Clamp01(Vector2.Distance(sp, userPosition) * _falloff);
122 +
123 + valTotal += values[i];
124 + }
125 +
126 + if (_normalise && valTotal > 0.0f)
127 + {
128 + for (int i = 0; i < values.Length; i++)
129 + {
130 + values[i] /= valTotal;
131 + }
132 + }
133 + }
134 +
135 + void UpdateSpeakerPositions()
136 + {
137 + if (_seed == 0)
138 + {
139 + for (int i = 0; i < _speakerPositions.Length; i++)
140 + {
141 + _speakerPositions[i] = new Vector2(_speaker.width/2 + (i*(Screen.width - _speaker.width) / _speakerPositions.Length), Screen.height / 2);
142 + }
143 + }
144 + else
145 + {
146 + for (int i = 0; i < _speakerPositions.Length; i++)
147 + {
148 + _speakerPositions[i] = new Vector2(Random.Range(_speaker.width / 2, Screen.width - _speaker.width / 2), Random.Range(_speaker.height/2, Screen.height - _speaker.height/2));
149 + }
150 + }
151 + }
152 +
153 + private void CreateUser()
154 + {
155 + GameObject go = new GameObject("User" + _totalUserCount++);
156 + MultiChannelDemo2User user = go.AddComponent<MultiChannelDemo2User>();
157 + user.name = go.name;
158 + user._guiSkin = _guiSkin;
159 + user._parent = this;
160 + _activeUsers.Add(user);
161 + }
162 +
163 + void OnGUI()
164 + {
165 + GUI.skin = _guiSkin;
166 +
167 + for (int i = 0; i < _speakerPositions.Length; i++)
168 + {
169 + Rect r = new Rect(_speakerPositions[i].x - _speaker.width / 2, _speakerPositions[i].y - _speaker.height / 2, _speaker.width, _speaker.height);
170 + GUI.DrawTexture(r, _speaker);
171 + r.width = 16;
172 + r.y -= _speaker.height;
173 + r.x += (_speaker.width / 2) - (r.width / 2);
174 + GUI.Label(r, i.ToString());
175 + }
176 +
177 + GUILayout.BeginVertical("box");
178 +
179 + if (GUILayout.Button("Create Instance"))
180 + {
181 + CreateUser();
182 + }
183 +
184 + GUILayout.BeginHorizontal();
185 + GUILayout.Label("Speaker Layout:");
186 + if (GUILayout.Button("Linear"))
187 + {
188 + _seed = 0;
189 + UpdateSpeakerPositions();
190 + }
191 + if (GUILayout.Button("Random"))
192 + {
193 + _seed++;
194 + UpdateSpeakerPositions();
195 + }
196 + GUILayout.EndHorizontal();
197 +
198 + _normalise = GUILayout.Toggle(_normalise, "Normalise");
199 + GUILayout.BeginHorizontal();
200 + GUILayout.Label("Falloff");
201 + _falloff = GUILayout.HorizontalSlider(_falloff, 1.0f, 20f);
202 + GUILayout.Label(_falloff.ToString("F1"));
203 + GUILayout.EndHorizontal();
204 +
205 + GUILayout.EndVertical();
206 + }
207 +}
1 +fileFormatVersion: 2
2 +guid: 768c1627121f60f43b408c62ed9ab2f9
3 +MonoImporter:
4 + serializedVersion: 2
5 + defaultReferences: []
6 + executionOrder: 0
7 + icon: {instanceID: 0}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +
5 +public class MultiChannelDemo2User : MonoBehaviour
6 +{
7 + public GUISkin _guiSkin;
8 + public MultiChannelDemo2 _parent;
9 + private AVProWindowsMediaMovie _movie;
10 + private Rect windowRect = new Rect(0, 0, 320, 220);
11 + private float[] _audioMatrixValues;
12 +
13 + private Vector2 Position
14 + {
15 + get { return new Vector2((windowRect.x + (windowRect.width / 2)) / Screen.width, windowRect.y / Screen.height); }
16 + }
17 +
18 + void Start()
19 + {
20 + _audioMatrixValues = new float[_parent.NumChannels];
21 + windowRect = new Rect(Screen.width / 2, Screen.height / 2, windowRect.width, windowRect.height);
22 + _movie = this.gameObject.AddComponent<AVProWindowsMediaMovie>();
23 + _movie._useAudioMixer = true;
24 + _movie._loadOnStart = false;
25 + _movie._playOnStart = false;
26 + }
27 +
28 + void Update()
29 + {
30 + if (_movie.MovieInstance != null)
31 + {
32 + // Generate audio matrix values
33 + _parent.UpdateAudioMatrix(Position, ref _audioMatrixValues);
34 +
35 + // Apply matrix values to movie instance
36 + /*for (int i = 0; i < _audioMatrixValues.Length; i++)
37 + Debug.Log("v " + i + " " + _audioMatrixValues[i]);
38 + Debug.Log("apply to " + _movie.MovieInstance.Handle);*/
39 + AVProWindowsMediaPlugin.SetAudioChannelMatrix(_movie.MovieInstance.Handle, _audioMatrixValues, _audioMatrixValues.Length);
40 + }
41 + }
42 +
43 + void OnGUI()
44 + {
45 + GUI.skin = _guiSkin;
46 +
47 + windowRect = GUI.Window(this.name.GetHashCode(), windowRect, DoMyWindow, this.name);
48 + //GUI.DrawTexture(new Rect(Position.x * Screen.width - (_target.width / 2), Position.y * Screen.height - (_target.height / 2), _target.width, _target.height), _target);
49 +
50 + _parent.DrawFalloff(new Vector2(Position.x * Screen.width, (1.0f-Position.y) * Screen.height));
51 + }
52 +
53 +
54 + void DoMyWindow(int windowID)
55 + {
56 + if (GUILayout.Button("Play Video"))
57 + {
58 + _movie._folder = "";
59 + _movie._filename = "sample-1920x1024-divx.avi";
60 + _movie._useStreamingAssetsPath = true;
61 + _movie._volume = 1.0f;
62 + _movie._loop = true;
63 + if (_movie.LoadMovie(false))
64 + {
65 + _movie.Play();
66 + }
67 + }
68 +
69 + if (_movie.OutputTexture)
70 + {
71 + Rect r = GUILayoutUtility.GetRect(320, 180);
72 + GUI.DrawTexture(r, _movie.OutputTexture, ScaleMode.ScaleToFit);
73 + }
74 +
75 + GUI.DragWindow();
76 + }
77 +}
1 +fileFormatVersion: 2
2 +guid: cde5deace05ff78449136a4f3753a625
3 +MonoImporter:
4 + serializedVersion: 2
5 + defaultReferences: []
6 + executionOrder: 0
7 + icon: {instanceID: 0}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +
5 +public class MultiVideoDemo : MonoBehaviour
6 +{
7 + public GUISkin _skin;
8 + public int _guiDepth;
9 + private string _folder = string.Empty;
10 + private string _filename = string.Empty;
11 + private bool _visible = true;
12 + private float _alpha = 1.0f;
13 + private GameObject _root;
14 + private List<AVProWindowsMediaGUIDisplay> _movies;
15 + private AVProWindowsMediaGUIDisplay _activeMovie;
16 + private AVProWindowsMediaGUIDisplay _removeMovie;
17 +
18 + void Update()
19 + {
20 + Vector2 screenMouse = new Vector2(Input.mousePosition.x, Screen.height - Input.mousePosition.y);
21 +
22 + // Show/Hide controls based on mouse cursor position
23 + Rect r = new Rect(0, 0, Screen.width/2, Screen.height);
24 + if (r.Contains(screenMouse))
25 + {
26 + _visible = true;
27 + _alpha = 1.0f;
28 + }
29 + else
30 + {
31 + _alpha -= Time.deltaTime * 4f;
32 + if (_alpha <= 0.0f)
33 + {
34 + _alpha = 0.0f;
35 + _visible = false;
36 + }
37 + }
38 +
39 + // Remove any movie scheduled for removal
40 + if (_removeMovie)
41 + {
42 + Remove(_removeMovie);
43 + _removeMovie = null;
44 + }
45 +
46 + // Activate movie under mouse cursor
47 + _activeMovie = null;
48 + foreach (AVProWindowsMediaGUIDisplay gui in _movies)
49 + {
50 + Rect rect = gui.GetRect();
51 + if (rect.Contains(screenMouse))
52 + {
53 + gui._color = Color.white;
54 + _activeMovie = gui;
55 + }
56 + else
57 + {
58 + //gui._color = Color.white * 0.8f;
59 + gui._color = new Color(0.5f, 0.5f, 0.5f, 0.9f);
60 + }
61 + }
62 + }
63 +
64 + void Start()
65 + {
66 + _root = new GameObject("Movies");
67 + _movies = new List<AVProWindowsMediaGUIDisplay>();
68 +
69 + // Add some initial videos
70 + string folder = "";
71 + Add(folder, "sample-blue-480x256-divx.avi");
72 + Add(folder, "sample-green-480x256-divx.avi");
73 + Add(folder, "sample-purple-480x256-divx.avi");
74 + Add(folder, "sample-yellow-480x256-divx.avi");
75 + }
76 +
77 + private void Add(string folder, string filename)
78 + {
79 + GameObject go = new GameObject();
80 + go.transform.parent = _root.transform;
81 +
82 + AVProWindowsMediaMovie movie = go.AddComponent<AVProWindowsMediaMovie>();
83 + movie._folder = folder;
84 + movie._filename = filename;
85 + movie._loop = true;
86 + movie._loadOnStart = false;
87 + movie._playOnStart = false;
88 + movie._useStreamingAssetsPath = true;
89 +
90 + AVProWindowsMediaGUIDisplay gui = go.AddComponent<AVProWindowsMediaGUIDisplay>();
91 + gui._movie = movie;
92 + gui._scaleMode = ScaleMode.StretchToFill;
93 + gui._fullScreen = false;
94 + gui._alphaBlend = false;
95 + gui._depth = 5;
96 + gui._color = new Color(0.8f, 0.8f, 0.8f, 1.0f);
97 +
98 + _movies.Add(gui);
99 +
100 + if (!movie.LoadMovie(true))
101 + {
102 + Remove(gui);
103 + return;
104 + }
105 +
106 + UpdateLayout();
107 + }
108 +
109 + private void Remove(AVProWindowsMediaGUIDisplay movie)
110 + {
111 + if (movie)
112 + {
113 + _movies.Remove(movie);
114 + Destroy(movie.gameObject);
115 + UpdateLayout();
116 + }
117 + }
118 +
119 + private void UpdateLayout()
120 + {
121 + int numMovies = _movies.Count;
122 + int numColRows = Mathf.CeilToInt(Mathf.Sqrt(numMovies));
123 +
124 + float width = 1.0f / numColRows;
125 + float height = 1.0f / numColRows;
126 +
127 + for (int i = 0; i < numMovies; i++)
128 + {
129 + AVProWindowsMediaGUIDisplay gui = _movies[i];
130 +
131 + int x = i % numColRows;
132 + int y = i / numColRows;
133 +
134 + gui._x = width * x;
135 + gui._y = height * y;
136 + gui._width = width;
137 + gui._height = height;
138 + }
139 + }
140 +
141 + public void ControlWindow(int id)
142 + {
143 + GUILayout.BeginVertical("box", GUILayout.MinWidth(400));
144 +
145 + GUILayout.BeginHorizontal();
146 + GUILayout.Label("Folder: ", GUILayout.Width(100));
147 + _folder = GUILayout.TextField(_folder, 192);
148 + GUILayout.EndHorizontal();
149 + GUILayout.Space(16f);
150 +
151 + GUILayout.BeginHorizontal();
152 + GUILayout.Label("File Name: ", GUILayout.Width(100));
153 + _filename = GUILayout.TextField(_filename, 192, GUILayout.MinWidth(256f));
154 + if (GUILayout.Button("Add Video", GUILayout.Width(128)))
155 + {
156 + Add(_folder, _filename);
157 + }
158 + GUILayout.EndHorizontal();
159 +
160 + GUILayout.Space(16f);
161 +
162 + if (GUILayout.Button("Remove All"))
163 + {
164 + for (int i = 0; i < _movies.Count; i++)
165 + {
166 + Destroy(_movies[i].gameObject);
167 + _movies[i] = null;
168 + }
169 + _movies.Clear();
170 + UpdateLayout();
171 + }
172 +
173 + GUILayout.EndVertical();
174 + }
175 +
176 + private void DrawVideoControls(Rect area, AVProWindowsMediaGUIDisplay movieGUI)
177 + {
178 + AVProWindowsMediaMovie movie = movieGUI._movie;
179 + AVProWindowsMedia player = movie.MovieInstance;
180 + if (player == null)
181 + return;
182 +
183 + // Close button
184 + if (GUI.Button(new Rect(area.x + (area.width - 32) ,area.y, 32, 32), "X"))
185 + {
186 + _removeMovie = movieGUI;
187 + }
188 +
189 + // Duplicate button
190 + if (GUI.Button(new Rect(area.x + (area.width - 64) ,area.y, 32, 32), "+"))
191 + {
192 + Add(movie._folder, movie._filename);
193 + }
194 +
195 + // Video properties
196 + GUILayout.BeginArea(new Rect(area.x, area.y, area.width/2, area.height/2));
197 + GUILayout.Label(player.Width + "x" + player.Height + "/" + player.FrameRate.ToString("F2") + "hz");
198 + GUILayout.EndArea();
199 +
200 + GUILayout.BeginArea(new Rect(area.x, area.y + (area.height - 32), area.width, 32));
201 + GUILayout.BeginHorizontal();
202 + float position = player.PositionSeconds;
203 + float newPosition = GUILayout.HorizontalSlider(position, 0.0f, player.DurationSeconds, GUILayout.ExpandWidth(true));
204 + if (position != newPosition)
205 + {
206 + player.PositionSeconds = newPosition;
207 + }
208 + if (player.IsPlaying)
209 + {
210 + if (GUILayout.Button("Pause", GUILayout.ExpandWidth(false)))
211 + {
212 + player.Pause();
213 + }
214 + }
215 + else
216 + {
217 + if (GUILayout.Button("Play", GUILayout.ExpandWidth(false)))
218 + {
219 + player.Play();
220 + }
221 + }
222 + GUILayout.EndHorizontal();
223 + GUILayout.EndArea();
224 + }
225 +
226 + void OnGUI()
227 + {
228 + GUI.skin = _skin;
229 + GUI.depth = _guiDepth;
230 +
231 + if (_activeMovie)
232 + {
233 + DrawVideoControls(_activeMovie.GetRect(), _activeMovie);
234 + }
235 +
236 + if (_visible)
237 + {
238 + GUI.color = new Color(1f, 1f, 1f, _alpha);
239 + GUILayout.Box("Demo Controls");
240 + //GUILayout.BeginArea(new Rect(0, 0, 440, 200), GUI.skin.box);
241 + ControlWindow(0);
242 + }
243 + else
244 + {
245 + GUI.color = new Color(1f, 1f, 1f, 1f - _alpha);
246 + GUI.Box(new Rect(0, 0, 128, 32), "Demo Controls");
247 + }
248 + }
249 +}
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: ac48693794e43ae42a4d08fd2bc65211
3 +MonoImporter:
4 + serializedVersion: 2
5 + defaultReferences: []
6 + executionOrder: 700
7 + icon: {instanceID: 0}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +
5 +public class PlayQueueDemo : MonoBehaviour
6 +{
7 + public AVProWindowsMediaMovie _movieA;
8 + public AVProWindowsMediaMovie _movieB;
9 + public string _folder;
10 + public List<string> _filenames;
11 +
12 + private AVProWindowsMediaMovie[] _movies;
13 + private int _moviePlayIndex;
14 + private int _movieLoadIndex;
15 + private int _index = -1;
16 + private bool _loadSuccess = true;
17 + private int _playItemIndex = -1;
18 +
19 + public AVProWindowsMediaMovie PlayingMovie { get { return _movies[_moviePlayIndex]; } }
20 + public AVProWindowsMediaMovie LoadingMovie { get { return _movies[_movieLoadIndex]; } }
21 + public int PlayingItemIndex { get { return _playItemIndex; } }
22 + public bool IsPaused { get { if (PlayingMovie.MovieInstance != null) return !PlayingMovie.MovieInstance.IsPlaying; return false; } }
23 +
24 + void Start()
25 + {
26 + _movieA._loop = false;
27 + _movieB._loop = false;
28 + _movies = new AVProWindowsMediaMovie[2];
29 + _movies[0] = _movieA;
30 + _movies[1] = _movieB;
31 + _moviePlayIndex = 0;
32 + _movieLoadIndex = 1;
33 +
34 + NextMovie();
35 + }
36 +
37 + void Update()
38 + {
39 + if (PlayingMovie.MovieInstance != null)
40 + {
41 + if ((int)PlayingMovie.MovieInstance.PositionFrames >= (PlayingMovie.MovieInstance.DurationFrames - 1))
42 + {
43 + NextMovie();
44 + }
45 + }
46 +
47 + if (!_loadSuccess)
48 + {
49 + _loadSuccess = true;
50 + NextMovie();
51 + }
52 + }
53 +
54 + void OnGUI()
55 + {
56 + AVProWindowsMediaMovie activeMovie = PlayingMovie;
57 + if (activeMovie.OutputTexture == null)
58 + activeMovie = LoadingMovie; // Display the previous video until the current one has loaded the first frame
59 +
60 + Texture texture = activeMovie.OutputTexture;
61 +
62 + if (texture != null)
63 + {
64 + Rect rect = new Rect(0, 0, Screen.width, Screen.height);
65 +
66 + if (activeMovie.MovieInstance.RequiresFlipY)
67 + {
68 + GUIUtility.ScaleAroundPivot(new Vector2(1f, -1f), new Vector2(0, rect.y + (rect.height / 2)));
69 + }
70 +
71 + GUI.DrawTexture(rect, texture, ScaleMode.ScaleToFit, false);
72 + }
73 + }
74 +
75 + public void Next()
76 + {
77 + NextMovie();
78 + }
79 +
80 + public void Previous()
81 + {
82 + _index -= 2;
83 + if (_index < 0)
84 + _index += _filenames.Count;
85 +
86 + NextMovie();
87 + }
88 +
89 + public void Pause()
90 + {
91 + if (PlayingMovie != null)
92 + {
93 + PlayingMovie.Pause();
94 + }
95 + }
96 +
97 + public void Unpause()
98 + {
99 + if (PlayingMovie != null)
100 + {
101 + PlayingMovie.Play();
102 + }
103 + }
104 +
105 + private void NextMovie()
106 + {
107 + Pause();
108 +
109 + if (_filenames.Count > 0)
110 + {
111 + _index = (Mathf.Max(0, _index+1))%_filenames.Count;
112 + }
113 + else
114 + _index = -1;
115 +
116 + if (_index < 0)
117 + return;
118 +
119 +
120 + LoadingMovie._folder = _folder;
121 + LoadingMovie._filename = _filenames[_index];
122 + LoadingMovie._useStreamingAssetsPath = true;
123 + LoadingMovie._playOnStart = true;
124 + _loadSuccess = LoadingMovie.LoadMovie(true);
125 + _playItemIndex = _index;
126 +
127 + _moviePlayIndex = (_moviePlayIndex + 1)%2;
128 + _movieLoadIndex = (_movieLoadIndex + 1)%2;
129 + }
130 +}
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.