Compare commits

...

2 Commits

Author SHA1 Message Date
王志勋 71d0c94fd9 Merge branch 'master' of http://172.16.1.12/yulong/NewN_UAVPlane 2024-02-26 18:50:30 +08:00
王志勋 aca66a67c0 1 2024-02-26 18:50:09 +08:00
610 changed files with 85437 additions and 6 deletions

8
Assets/3rdParty/AVProVideo.meta vendored Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 806960704f8d9d84484c3371c9951851
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

9
Assets/3rdParty/AVProVideo/Demos.meta vendored Normal file
View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: ac9801f71509e0a4c949a03ae8940ecf
folderAsset: yes
timeCreated: 1438729080
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,797 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_ObjectHideFlags: 0
--- !u!127 &3
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!157 &4
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 2
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: 1
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 2
m_TextureCompression: 1
m_LockAtlas: 0
--- !u!196 &5
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!1 &603732346
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 603732347}
m_Layer: 0
m_Name: Scene
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &603732347
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 603732346}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1105306379}
- {fileID: 1727042035}
- {fileID: 1142717615}
- {fileID: 1114059393}
- {fileID: 769783423}
m_Father: {fileID: 0}
m_RootOrder: 4
--- !u!1 &769783422
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 769783423}
- 33: {fileID: 769783427}
- 136: {fileID: 769783426}
- 23: {fileID: 769783425}
- 114: {fileID: 769783424}
m_Layer: 0
m_Name: Cylinder
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &769783423
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 769783422}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -7.19000006, y: 0, z: 9.68000031}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 603732347}
m_RootOrder: 4
--- !u!114 &769783424
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 769783422}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86569d77391242c44834d5e07b9699f0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!23 &769783425
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 769783422}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!136 &769783426
CapsuleCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 769783422}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Radius: .5
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &769783427
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 769783422}
m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &794154146
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 794154148}
- 114: {fileID: 794154147}
m_Layer: 0
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &794154147
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 794154146}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: Background Shader
_description: "This demo shows a video rendered onto a quad via a custom shader
that always renders the video behind all other content. \nThe shader renders the
video with it's correct aspect ratio in the centre of the screen."
_media: {fileID: 2031105772}
--- !u!4 &794154148
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 794154146}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 524.136475, y: 256.838959, z: -7.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1 &1082416752
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1082416757}
- 20: {fileID: 1082416756}
- 92: {fileID: 1082416755}
- 81: {fileID: 1082416753}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1082416753
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1082416752}
m_Enabled: 1
--- !u!92 &1082416755
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1082416752}
m_Enabled: 1
--- !u!20 &1082416756
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1082416752}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 48
orthographic: 0
orthographic size: 5
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!4 &1082416757
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1082416752}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!1 &1105306378
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1105306379}
- 33: {fileID: 1105306383}
- 65: {fileID: 1105306382}
- 23: {fileID: 1105306381}
- 114: {fileID: 1105306380}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1105306379
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1105306378}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.07000005, y: -.610000014, z: 2.74000001}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 603732347}
m_RootOrder: 0
--- !u!114 &1105306380
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1105306378}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86569d77391242c44834d5e07b9699f0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!23 &1105306381
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1105306378}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!65 &1105306382
BoxCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1105306378}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &1105306383
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1105306378}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &1114059392
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1114059393}
- 108: {fileID: 1114059395}
- 114: {fileID: 1114059394}
m_Layer: 0
m_Name: Directional light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1114059393
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1114059392}
m_LocalRotation: {x: .408217937, y: -.234569728, z: .109381661, w: .875426114}
m_LocalPosition: {x: 1303.2229, y: 555.131104, z: -46.7181396}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 603732347}
m_RootOrder: 3
--- !u!114 &1114059394
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1114059392}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86569d77391242c44834d5e07b9699f0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!108 &1114059395
Light:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1114059392}
m_Enabled: 1
serializedVersion: 3
m_Type: 1
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: .5
m_Range: 10
m_SpotAngle: 30
m_CookieSize: 10
m_Shadows:
m_Type: 0
m_Resolution: -1
m_Strength: .330000013
m_Bias: .0500000007
m_Softness: 4
m_SoftnessFade: 1
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_ActuallyLightmapped: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_Lightmapping: 1
m_ShadowSamples: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
m_IndirectIntensity: 1
m_AreaSize: {x: 1, y: 1}
--- !u!1 &1142717614
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1142717615}
- 33: {fileID: 1142717619}
- 135: {fileID: 1142717618}
- 23: {fileID: 1142717617}
- 114: {fileID: 1142717616}
m_Layer: 0
m_Name: Sphere
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1142717615
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1142717614}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.48000002, y: .839999974, z: 11.7600002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 603732347}
m_RootOrder: 2
--- !u!114 &1142717616
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1142717614}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86569d77391242c44834d5e07b9699f0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!23 &1142717617
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1142717614}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!135 &1142717618
SphereCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1142717614}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: .5
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &1142717619
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1142717614}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &1465744880
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1465744881}
- 33: {fileID: 1465744883}
- 23: {fileID: 1465744882}
- 114: {fileID: 1465744884}
m_Layer: 0
m_Name: Background-Bunny
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1465744881
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1465744880}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
--- !u!23 &1465744882
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1465744880}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: 7ccf4b555441d554484bbe799cb1c834, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!33 &1465744883
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1465744880}
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!114 &1465744884
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1465744880}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f6d1977a52888584496b1acc7e998011, type: 3}
m_Name:
m_EditorClassIdentifier:
_offset: {x: 0, y: 0}
_scale: {x: 1, y: 1}
_mesh: {fileID: 1465744882}
_media: {fileID: 2031105772}
_defaultTexture: {fileID: 0}
--- !u!1 &1727042030
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1727042035}
- 33: {fileID: 1727042034}
- 136: {fileID: 1727042033}
- 23: {fileID: 1727042032}
- 114: {fileID: 1727042031}
m_Layer: 0
m_Name: Capsule
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1727042031
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1727042030}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86569d77391242c44834d5e07b9699f0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!23 &1727042032
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1727042030}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!136 &1727042033
CapsuleCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1727042030}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Radius: .5
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &1727042034
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1727042030}
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &1727042035
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1727042030}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1.24000001, y: 0, z: 3.30999994}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 603732347}
m_RootOrder: 1
--- !u!1 &2031105771
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 2031105773}
- 114: {fileID: 2031105772}
m_Layer: 0
m_Name: MediaPlayer-Bunny
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2031105772
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 2031105771}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 638c870cac4da414fba921606d504407, type: 3}
m_Name:
m_EditorClassIdentifier:
m_VideoLocation: 2
m_VideoPath: AVProVideoSamples/BigBuckBunny_720p30.mp4
m_AutoOpen: 1
m_AutoStart: 1
m_Loop: 1
m_Volume: 1
m_Muted: 0
m_PlaybackRate: 1
m_DebugGui: 1
m_Persistent: 0
m_StereoPacking: 0
m_AlphaPacking: 0
m_DisplayDebugStereoColorTint: 0
m_FilterMode: 1
m_WrapMode: 1
m_AnisoLevel: 0
m_events:
m_PersistentCalls:
m_Calls: []
m_TypeName: RenderHeads.Media.AVProVideo.MediaPlayerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_optionsWindows:
overridePath: 0
pathLocation: 2
path:
forceDirectShowApi: 0
forceAudioOutputDeviceName:
_optionsMacOSX:
overridePath: 0
pathLocation: 2
path:
_optionsIOS:
overridePath: 0
pathLocation: 2
path:
_optionsTVOS:
overridePath: 0
pathLocation: 2
path:
_optionsAndroid:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsPhone:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsUWP:
overridePath: 0
pathLocation: 2
path:
_optionsWebGL:
overridePath: 0
pathLocation: 2
path:
--- !u!4 &2031105773
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 2031105771}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b66b1e05c4242c84b9cfd13f593262ad
timeCreated: 1448475458
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,373 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_ObjectHideFlags: 0
--- !u!127 &3
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!157 &4
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 2
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: 1
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 2
m_TextureCompression: 1
m_LockAtlas: 0
--- !u!196 &5
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!1 &494563987
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 494563990}
- 114: {fileID: 494563989}
m_Layer: 0
m_Name: AVPro Video Media Player
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &494563989
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 494563987}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 638c870cac4da414fba921606d504407, type: 3}
m_Name:
m_EditorClassIdentifier:
m_VideoLocation: 2
m_VideoPath: AVProVideoSamples/BigBuckBunny_720p30.mp4
m_AutoOpen: 1
m_AutoStart: 1
m_Loop: 1
m_Volume: 1
m_Muted: 0
m_PlaybackRate: 1
m_DebugGui: 0
m_Persistent: 0
m_StereoPacking: 0
m_AlphaPacking: 0
m_DisplayDebugStereoColorTint: 0
m_FilterMode: 1
m_WrapMode: 1
m_AnisoLevel: 0
m_events:
m_PersistentCalls:
m_Calls: []
m_TypeName: RenderHeads.Media.AVProVideo.MediaPlayerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_optionsWindows:
overridePath: 0
pathLocation: 2
path:
forceDirectShowApi: 0
forceAudioOutputDeviceName:
_optionsMacOSX:
overridePath: 0
pathLocation: 2
path:
_optionsIOS:
overridePath: 0
pathLocation: 2
path:
_optionsTVOS:
overridePath: 0
pathLocation: 2
path:
_optionsAndroid:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsPhone:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsUWP:
overridePath: 0
pathLocation: 2
path:
_optionsWebGL:
overridePath: 0
pathLocation: 2
path:
--- !u!4 &494563990
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 494563987}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: .600000024, y: -2.38000011, z: 0}
m_LocalScale: {x: 6, y: 3, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
--- !u!1 &1082416752
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1082416757}
- 20: {fileID: 1082416756}
- 92: {fileID: 1082416755}
- 124: {fileID: 1082416754}
- 81: {fileID: 1082416753}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1082416753
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1082416752}
m_Enabled: 1
--- !u!124 &1082416754
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1082416752}
m_Enabled: 1
--- !u!92 &1082416755
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1082416752}
m_Enabled: 1
--- !u!20 &1082416756
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1082416752}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 72
orthographic: 0
orthographic size: 5
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 0
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!4 &1082416757
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1082416752}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: .879999995, z: -8.42000008}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!1 &1285203307
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1285203309}
- 114: {fileID: 1285203308}
- 114: {fileID: 1285203310}
m_Layer: 0
m_Name: IMGUI
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1285203308
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1285203307}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 75f3b319d2d69934d8bf545ab45c918d, type: 3}
m_Name:
m_EditorClassIdentifier:
_mediaPlayer: {fileID: 494563989}
_displayInEditor: 1
_scaleMode: 2
_color: {r: 1, g: 1, b: 1, a: 1}
_alphaBlend: 0
_fullScreen: 1
_depth: 0
_x: 0
_y: 0
_width: 1
_height: 1
--- !u!4 &1285203309
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1285203307}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: .600000024, y: -2.38000011, z: 0}
m_LocalScale: {x: 6, y: 3, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
--- !u!114 &1285203310
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1285203307}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f87a8f5cee90ffd448fbb0291362860d, type: 3}
m_Name:
m_EditorClassIdentifier:
_folder: AVProVideoSamples/
_filenames:
- SampleSphere.mp4
- BigBuckBunny_720p30.mp4
- BigBuckBunny_360p30.mp3
_streams:
- http://downloads.renderheads.com/2016/BigBuckBunny_360p30_Streaming.mp4
- http://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov/playlist.m3u8
- rtsp://rtmp.infomaniak.ch/livecast/latele
_mediaPlayer: {fileID: 494563989}
_display: {fileID: 1285203308}
_guiSkin: {fileID: 11400000, guid: eb821627fb1a0c044a6fd7a6dabe3147, type: 2}
_useFading: 1
--- !u!1 &1317818285
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1317818287}
- 114: {fileID: 1317818286}
m_Layer: 0
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1317818286
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1317818285}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: imGUI
_description: This demo shows a video rendered via the imGUI system. The simple
controls use a script that demonstrates how to easily script the MediaPlayer.
_media: {fileID: 494563989}
--- !u!4 &1317818287
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1317818285}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 524.136475, y: 256.838959, z: -7.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0a6e6b9ea31c98e4db14ba70479f8d9c
timeCreated: 1448475458
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 13d63374585d9f948bba668db2d4fe5a
timeCreated: 1448475343
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,598 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_ObjectHideFlags: 0
--- !u!127 &3
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!157 &4
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 1
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: 1
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 2
m_TextureCompression: 0
m_LockAtlas: 0
--- !u!196 &5
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!1 &239936755
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 239936756}
- 222: {fileID: 239936758}
- 114: {fileID: 239936757}
- 114: {fileID: 239936759}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &239936756
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 239936755}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1933312487}
m_RootOrder: 1
m_AnchorMin: {x: .5, y: .5}
m_AnchorMax: {x: .5, y: .5}
m_AnchoredPosition: {x: -1.14439999e-05, y: -135.199997}
m_SizeDelta: {x: 334, y: 122.5}
m_Pivot: {x: .5, y: .5}
--- !u!114 &239936757
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 239936755}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: 900187ec3dc70b549a84e20b0bdad0dc, type: 2}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 63
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 4
m_RichText: 1
m_HorizontalOverflow: 1
m_VerticalOverflow: 1
m_LineSpacing: 1
m_Text: AVPRO VIDEO
--- !u!222 &239936758
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 239936755}
--- !u!114 &239936759
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 239936755}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d2feedce2e2e63647b8f875ec0894a15, type: 3}
m_Name:
m_EditorClassIdentifier:
_offset: {x: 0, y: 0}
_scale: {x: 1, y: 1}
_material: {fileID: 2100000, guid: 900187ec3dc70b549a84e20b0bdad0dc, type: 2}
_texturePropertyName: _OverlayTex
_media: {fileID: 1747376143}
_defaultTexture: {fileID: 0}
--- !u!1 &1320189898
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1320189899}
- 222: {fileID: 1320189901}
- 114: {fileID: 1320189900}
m_Layer: 5
m_Name: Panel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1320189899
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1320189898}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1426545779}
m_Father: {fileID: 1933312487}
m_RootOrder: 0
m_AnchorMin: {x: .5, y: .5}
m_AnchorMax: {x: .5, y: .5}
m_AnchoredPosition: {x: -8.3999939, y: 27}
m_SizeDelta: {x: 502.5, y: 344.700012}
m_Pivot: {x: .5, y: .5}
--- !u!114 &1320189900
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1320189898}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: .184, g: .184, b: .184, a: 1}
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
--- !u!222 &1320189901
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1320189898}
--- !u!1 &1348342162
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1348342168}
- 20: {fileID: 1348342167}
- 92: {fileID: 1348342166}
- 124: {fileID: 1348342165}
- 81: {fileID: 1348342164}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1348342164
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_Enabled: 1
--- !u!124 &1348342165
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_Enabled: 1
--- !u!92 &1348342166
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_Enabled: 1
--- !u!20 &1348342167
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: .0661764741, g: .0661764741, b: .0661764741, a: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!4 &1348342168
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!1 &1426545776
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1426545779}
- 222: {fileID: 1426545778}
- 114: {fileID: 1426545777}
m_Layer: 5
m_Name: AV Pro Video uGUI
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1426545777
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1426545776}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0f17cdc186456a4469a139a104d2ca72, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
_mediaPlayer: {fileID: 1747376143}
m_UVRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
_setNativeSize: 0
_keepAspectRatio: 1
_noDefaultDisplay: 1
_defaultTexture: {fileID: 0}
--- !u!222 &1426545778
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1426545776}
--- !u!224 &1426545779
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1426545776}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1320189899}
m_RootOrder: 0
m_AnchorMin: {x: .5, y: .5}
m_AnchorMax: {x: .5, y: .5}
m_AnchoredPosition: {x: -.100000001, y: -.200000003}
m_SizeDelta: {x: 467.899994, y: 310.399994}
m_Pivot: {x: .5, y: .5}
--- !u!1 &1483678959
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1483678961}
- 114: {fileID: 1483678960}
m_Layer: 5
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1483678960
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1483678959}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: uGUI
_description: This demo shows rendering a video to a uGUI component.
_media: {fileID: 1747376143}
--- !u!4 &1483678961
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1483678959}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 332.986481, y: 199.930481, z: 0}
m_LocalScale: {x: 1.20124996, y: 1.20124996, z: 1.20124996}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1 &1747376142
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1747376144}
- 114: {fileID: 1747376143}
m_Layer: 0
m_Name: AVPro Media Player
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1747376143
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1747376142}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 638c870cac4da414fba921606d504407, type: 3}
m_Name:
m_EditorClassIdentifier:
m_VideoLocation: 2
m_VideoPath: AVProVideoSamples/BigBuckBunny_720p30.mp4
m_AutoOpen: 1
m_AutoStart: 1
m_Loop: 1
m_Volume: 1
m_Muted: 0
m_PlaybackRate: 1
m_DebugGui: 1
m_Persistent: 0
m_StereoPacking: 0
m_AlphaPacking: 0
m_DisplayDebugStereoColorTint: 0
m_FilterMode: 1
m_WrapMode: 1
m_AnisoLevel: 0
m_events:
m_PersistentCalls:
m_Calls: []
m_TypeName: RenderHeads.Media.AVProVideo.MediaPlayerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_optionsWindows:
overridePath: 0
pathLocation: 2
path:
forceDirectShowApi: 0
forceAudioOutputDeviceName:
_optionsMacOSX:
overridePath: 0
pathLocation: 2
path:
_optionsIOS:
overridePath: 0
pathLocation: 2
path:
_optionsTVOS:
overridePath: 0
pathLocation: 2
path:
_optionsAndroid:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsPhone:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsUWP:
overridePath: 0
pathLocation: 2
path:
_optionsWebGL:
overridePath: 0
pathLocation: 2
path:
--- !u!4 &1747376144
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1747376142}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 5.50235367, y: 13.8914413, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
--- !u!1 &1933312486
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1933312487}
- 223: {fileID: 1933312490}
- 114: {fileID: 1933312489}
- 114: {fileID: 1933312488}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1933312487
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1933312486}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 1320189899}
- {fileID: 239936756}
m_Father: {fileID: 0}
m_RootOrder: 2
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!114 &1933312488
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1933312486}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &1933312489
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1933312486}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &1933312490
Canvas:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1933312486}
m_Enabled: 1
serializedVersion: 2
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 1
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingLayerID: 0
m_SortingOrder: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9e989ea0729df4845ba2bfbc06f4e42b
timeCreated: 1448475458
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,838 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_ObjectHideFlags: 0
--- !u!127 &3
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!157 &4
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 1
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: 1
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 2
m_TextureCompression: 0
m_LockAtlas: 0
--- !u!196 &5
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!1 &252092956
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 252092957}
- 222: {fileID: 252092960}
- 114: {fileID: 252092959}
- 114: {fileID: 252092958}
m_Layer: 5
m_Name: KillButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &252092957
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 252092956}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 447863256}
m_Father: {fileID: 1933312487}
m_RootOrder: 1
m_AnchorMin: {x: .5, y: .5}
m_AnchorMax: {x: .5, y: .5}
m_AnchoredPosition: {x: 345.5, y: 203.100006}
m_SizeDelta: {x: 90, y: 30}
m_Pivot: {x: .5, y: .5}
--- !u!114 &252092958
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 252092956}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: .784313738, g: .784313738, b: .784313738, a: 1}
m_HighlightedColor: {r: .960784316, g: .960784316, b: .960784316, a: .722000003}
m_PressedColor: {r: .784313738, g: .784313738, b: .784313738, a: .158999994}
m_DisabledColor: {r: .784313738, g: .784313738, b: .784313738, a: .501960814}
m_ColorMultiplier: 1
m_FadeDuration: .100000001
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 252092959}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1608525749}
m_MethodName: RemoveVideoClicked
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 1
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!114 &252092959
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 252092956}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
--- !u!222 &252092960
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 252092956}
--- !u!1 &447863255
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 447863256}
- 222: {fileID: 447863258}
- 114: {fileID: 447863257}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &447863256
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 447863255}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 252092957}
m_RootOrder: 0
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -7.9000001}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: .5, y: .5}
--- !u!114 &447863257
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 447863255}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: .196078435, g: .196078435, b: .196078435, a: 1}
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 4
m_RichText: 0
m_HorizontalOverflow: 0
m_VerticalOverflow: 1
m_LineSpacing: 1
m_Text: 'Kill Video
'
--- !u!222 &447863258
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 447863255}
--- !u!1 &511565642
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 511565643}
- 222: {fileID: 511565646}
- 114: {fileID: 511565645}
- 114: {fileID: 511565644}
m_Layer: 5
m_Name: AddButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &511565643
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 511565642}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1763675254}
m_Father: {fileID: 1933312487}
m_RootOrder: 2
m_AnchorMin: {x: .5, y: .5}
m_AnchorMax: {x: .5, y: .5}
m_AnchoredPosition: {x: 240.600006, y: 203.100006}
m_SizeDelta: {x: 90, y: 30}
m_Pivot: {x: .5, y: .5}
--- !u!114 &511565644
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 511565642}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: .784313738, g: .784313738, b: .784313738, a: 1}
m_HighlightedColor: {r: .960784316, g: .960784316, b: .960784316, a: .722000003}
m_PressedColor: {r: .784313738, g: .784313738, b: .784313738, a: .158999994}
m_DisabledColor: {r: .784313738, g: .784313738, b: .784313738, a: .501960814}
m_ColorMultiplier: 1
m_FadeDuration: .100000001
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 511565645}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1608525749}
m_MethodName: AddVideoClicked
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 1
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!114 &511565645
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 511565642}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
--- !u!222 &511565646
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 511565642}
--- !u!1 &1320189898
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1320189899}
- 222: {fileID: 1320189901}
- 114: {fileID: 1320189900}
m_Layer: 5
m_Name: Panel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1320189899
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1320189898}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1933312487}
m_RootOrder: 0
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: -400, y: 221}
m_SizeDelta: {x: 780, y: 363}
m_Pivot: {x: .5, y: .5}
--- !u!114 &1320189900
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1320189898}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: .184, g: .184, b: .184, a: 1}
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
--- !u!222 &1320189901
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1320189898}
--- !u!1 &1348342162
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1348342168}
- 20: {fileID: 1348342167}
- 92: {fileID: 1348342166}
- 124: {fileID: 1348342165}
- 81: {fileID: 1348342164}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1348342164
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_Enabled: 1
--- !u!124 &1348342165
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_Enabled: 1
--- !u!92 &1348342166
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_Enabled: 1
--- !u!20 &1348342167
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: .102941155, g: .102941155, b: .102941155, a: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!4 &1348342168
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1348342162}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
--- !u!1 &1483678959
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1483678961}
- 114: {fileID: 1483678960}
m_Layer: 5
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1483678960
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1483678959}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: Multiple Videos
_description: This demo shows multiple video playback. Videos and uGUI render surfaces
are created from within a scipt. The number of videos that can be playbed back
will be dependent on the target devices capabilities.
_media: {fileID: 0}
--- !u!4 &1483678961
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1483678959}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 332.986481, y: 199.930481, z: 0}
m_LocalScale: {x: 1.20124996, y: 1.20124996, z: 1.20124996}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1 &1608525748
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1608525750}
- 114: {fileID: 1608525749}
m_Layer: 5
m_Name: SampleApp
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1608525749
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1608525748}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7bfb0f751af2e454ba0aa66541bef1cf, type: 3}
m_Name:
m_EditorClassIdentifier:
m_videoPath: AVProVideoSamples/BigBuckBunny_360p30.mp4
--- !u!4 &1608525750
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1608525748}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 400, y: 240.166489, z: 0}
m_LocalScale: {x: 1.20124996, y: 1.20124996, z: 1.20124996}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!1 &1689086659
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1689086660}
- 114: {fileID: 1689086663}
- 114: {fileID: 1689086662}
- 114: {fileID: 1689086661}
m_Layer: 5
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1689086660
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1689086659}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 639.5, y: 359.5, z: 0}
m_LocalScale: {x: 1.59875, y: 1.59875, z: 1.59875}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
--- !u!114 &1689086661
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1689086659}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1997211142, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AllowActivationOnStandalone: 0
--- !u!114 &1689086662
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1689086659}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1077351063, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_AllowActivationOnMobileDevice: 0
--- !u!114 &1689086663
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1689086659}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -619905303, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 252092956}
m_sendNavigationEvents: 1
m_DragThreshold: 5
--- !u!1 &1763675251
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1763675254}
- 222: {fileID: 1763675253}
- 114: {fileID: 1763675252}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1763675252
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1763675251}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: .196078435, g: .196078435, b: .196078435, a: 1}
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 4
m_RichText: 0
m_HorizontalOverflow: 0
m_VerticalOverflow: 1
m_LineSpacing: 1
m_Text: 'Add Video
'
--- !u!222 &1763675253
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1763675251}
--- !u!224 &1763675254
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1763675251}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 511565643}
m_RootOrder: 0
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -7.9000001}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: .5, y: .5}
--- !u!1 &1933312486
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1933312487}
- 223: {fileID: 1933312490}
- 114: {fileID: 1933312489}
- 114: {fileID: 1933312488}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1933312487
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1933312486}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 1320189899}
- {fileID: 252092957}
- {fileID: 511565643}
m_Father: {fileID: 0}
m_RootOrder: 3
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!114 &1933312488
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1933312486}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &1933312489
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1933312486}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &1933312490
Canvas:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1933312486}
m_Enabled: 1
serializedVersion: 2
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 1
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingLayerID: 0
m_SortingOrder: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 98fe9081a719d104faa8c286d1c6d38c
timeCreated: 1448898633
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,326 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 0}
m_ObjectHideFlags: 0
--- !u!127 &3
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!157 &4
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 50
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: .100000001
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 0
m_TextureCompression: 0
m_LockAtlas: 0
--- !u!196 &5
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!1 &75416180
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 75416182}
- 114: {fileID: 75416181}
m_Layer: 0
m_Name: MediaPlayer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &75416181
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 75416180}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 638c870cac4da414fba921606d504407, type: 3}
m_Name:
m_EditorClassIdentifier:
m_VideoLocation: 2
m_VideoPath: AVProVideoSamples/BigBuckBunny_720p30.mp4
m_AutoOpen: 1
m_AutoStart: 0
m_Loop: 0
m_Volume: 1
m_Muted: 1
m_PlaybackRate: 1
m_DebugGui: 0
m_Persistent: 0
m_StereoPacking: 0
m_AlphaPacking: 0
m_DisplayDebugStereoColorTint: 0
m_FilterMode: 1
m_WrapMode: 1
m_AnisoLevel: 0
m_events:
m_PersistentCalls:
m_Calls: []
m_TypeName: RenderHeads.Media.AVProVideo.MediaPlayerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_optionsWindows:
overridePath: 0
pathLocation: 2
path:
forceDirectShowApi: 0
forceAudioOutputDeviceName:
_optionsMacOSX:
overridePath: 0
pathLocation: 2
path:
_optionsIOS:
overridePath: 0
pathLocation: 2
path:
_optionsTVOS:
overridePath: 0
pathLocation: 2
path:
_optionsAndroid:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsPhone:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsUWP:
overridePath: 0
pathLocation: 2
path:
_optionsWebGL:
overridePath: 0
pathLocation: 2
path:
--- !u!4 &75416182
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 75416180}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
--- !u!1 &649469169
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 649469171}
- 114: {fileID: 649469170}
m_Layer: 0
m_Name: FrameExtract
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &649469170
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 649469169}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0bfe4eaf264074b43a6224bab247c269, type: 3}
m_Name:
m_EditorClassIdentifier:
_mediaPlayer: {fileID: 75416181}
_accurateSeek: 1
_timeoutMs: 100
_skin: {fileID: 11400000, guid: eb821627fb1a0c044a6fd7a6dabe3147, type: 2}
_saveToJPG: 1
--- !u!4 &649469171
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 649469169}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!1 &1175140248
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1175140250}
- 114: {fileID: 1175140249}
m_Layer: 0
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1175140249
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1175140248}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: Frame Extract
_description: This demo shows how to use the ExtractFrame method to get readable
Texture2D frames which can be saved to disk or read from.
_media: {fileID: 0}
--- !u!4 &1175140250
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1175140248}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
--- !u!1 &1749421801
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1749421806}
- 20: {fileID: 1749421805}
- 81: {fileID: 1749421802}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1749421802
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1749421801}
m_Enabled: 1
--- !u!20 &1749421805
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1749421801}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!4 &1749421806
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1749421801}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: d7d059b9dc264504d9ebedd4fbc376c6
DefaultImporter:
userData:

View File

@ -0,0 +1,872 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_ObjectHideFlags: 0
--- !u!127 &3
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!157 &4
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 1
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: 1
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 2
m_TextureCompression: 0
m_LockAtlas: 0
--- !u!1 &5
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 12}
- 33: {fileID: 25}
- 135: {fileID: 35}
- 23: {fileID: 20}
- 114: {fileID: 26}
m_Layer: 0
m_Name: BigSphere
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &7
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 14}
- 108: {fileID: 34}
m_Layer: 0
m_Name: Point light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &8
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 15}
- 33: {fileID: 27}
- 64: {fileID: 31}
- 23: {fileID: 22}
m_Layer: 0
m_Name: GroundPlane
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &9
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 16}
- 33: {fileID: 28}
- 135: {fileID: 36}
- 23: {fileID: 23}
m_Layer: 0
m_Name: Sphere
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &10
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 17}
- 33: {fileID: 29}
- 65: {fileID: 32}
- 23: {fileID: 24}
- 114: {fileID: 21}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &11
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 18}
- 20: {fileID: 19}
- 92: {fileID: 33}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &12
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 5}
m_LocalRotation: {x: 0, y: .916540205, z: 0, w: .399942636}
m_LocalPosition: {x: 2.85451531, y: 1.19049215, z: .694195688}
m_LocalScale: {x: 2.56313992, y: 2.56313992, z: 2.56313992}
m_Children: []
m_Father: {fileID: 1626625711}
m_RootOrder: 5
--- !u!4 &14
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 7}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 2.74500656, z: -3.76635456}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1626625711}
m_RootOrder: 3
--- !u!4 &15
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 8}
m_LocalRotation: {x: 0, y: 1, z: 0, w: -1.62920685e-07}
m_LocalPosition: {x: 0, y: 0, z: 2.50111914}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1626625711}
m_RootOrder: 1
--- !u!4 &16
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 9}
m_LocalRotation: {x: 0, y: .916540205, z: 0, w: .399942636}
m_LocalPosition: {x: -2.35327101, y: .448548317, z: -.598756909}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1626625711}
m_RootOrder: 6
--- !u!4 &17
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 10}
m_LocalRotation: {x: -.262155831, y: -.542037725, z: .245900586, w: .759606719}
m_LocalPosition: {x: -1.39783788, y: 1.27063704, z: .516030073}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1626625711}
m_RootOrder: 0
--- !u!4 &18
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 11}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: .790000021, z: -3}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!20 &19
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 11}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: .133214533, g: .156864956, b: .194029868, a: .0196078438}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 100
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!23 &20
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 5}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: f73252af48052464f99b2a221454844e, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!114 &21
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 10}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86569d77391242c44834d5e07b9699f0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!23 &22
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 8}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: 01779df11e1ccda45a756158a5404329, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!23 &23
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 9}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: 01779df11e1ccda45a756158a5404329, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!23 &24
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 10}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: f73252af48052464f99b2a221454844e, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!33 &25
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 5}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!114 &26
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 5}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86569d77391242c44834d5e07b9699f0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!33 &27
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 8}
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
--- !u!33 &28
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 9}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!33 &29
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 10}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!64 &31
MeshCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 8}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_SmoothSphereCollisions: 0
m_Convex: 0
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
--- !u!65 &32
BoxCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 10}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!92 &33
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 11}
m_Enabled: 1
--- !u!108 &34
Light:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 7}
m_Enabled: 1
serializedVersion: 3
m_Type: 2
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_CookieSize: 10
m_Shadows:
m_Type: 0
m_Resolution: -1
m_Strength: 1
m_Bias: .0500000007
m_Softness: 4
m_SoftnessFade: 1
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_ActuallyLightmapped: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_Lightmapping: 1
m_ShadowSamples: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
m_IndirectIntensity: 1
m_AreaSize: {x: 1, y: 1}
--- !u!135 &35
SphereCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 5}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: .500000119
m_Center: {x: 5.96046448e-08, y: 0, z: -8.94069672e-08}
--- !u!135 &36
SphereCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 9}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: .500000119
m_Center: {x: 5.96046448e-08, y: 0, z: -8.94069672e-08}
--- !u!196 &44
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!1 &16293741
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 16293742}
- 33: {fileID: 16293744}
- 64: {fileID: 16293745}
- 23: {fileID: 16293743}
m_Layer: 0
m_Name: Plane
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &16293742
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 16293741}
m_LocalRotation: {x: .186325639, y: .682116389, z: -.682116389, w: .186325595}
m_LocalPosition: {x: .449999988, y: .949999988, z: 2.5}
m_LocalScale: {x: .412272036, y: .412271857, z: .187296316}
m_Children: []
m_Father: {fileID: 1626625711}
m_RootOrder: 2
--- !u!23 &16293743
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 16293741}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: f73252af48052464f99b2a221454844e, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!33 &16293744
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 16293741}
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
--- !u!64 &16293745
MeshCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 16293741}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_SmoothSphereCollisions: 0
m_Convex: 0
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &332789656
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 332789659}
- 114: {fileID: 332789657}
- 114: {fileID: 332789658}
m_Layer: 0
m_Name: AVPro Video Media Player
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &332789657
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 332789656}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 638c870cac4da414fba921606d504407, type: 3}
m_Name:
m_EditorClassIdentifier:
m_VideoLocation: 2
m_VideoPath: AVProVideoSamples/BigBuckBunny_720p30.mp4
m_AutoOpen: 1
m_AutoStart: 1
m_Loop: 1
m_Volume: 1
m_Muted: 0
m_PlaybackRate: 1
m_DebugGui: 1
m_Persistent: 0
m_StereoPacking: 0
m_AlphaPacking: 0
m_DisplayDebugStereoColorTint: 0
m_FilterMode: 1
m_WrapMode: 1
m_AnisoLevel: 0
m_events:
m_PersistentCalls:
m_Calls: []
m_TypeName: RenderHeads.Media.AVProVideo.MediaPlayerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_optionsWindows:
overridePath: 0
pathLocation: 2
path:
forceDirectShowApi: 0
forceAudioOutputDeviceName:
_optionsMacOSX:
overridePath: 0
pathLocation: 2
path:
_optionsIOS:
overridePath: 0
pathLocation: 2
path:
_optionsTVOS:
overridePath: 0
pathLocation: 2
path:
_optionsAndroid:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsPhone:
overridePath: 0
pathLocation: 2
path:
_optionsWindowsUWP:
overridePath: 0
pathLocation: 2
path:
_optionsWebGL:
overridePath: 0
pathLocation: 2
path:
--- !u!114 &332789658
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 332789656}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d2feedce2e2e63647b8f875ec0894a15, type: 3}
m_Name:
m_EditorClassIdentifier:
_offset: {x: 0, y: 0}
_scale: {x: 1, y: 1}
_material: {fileID: 2100000, guid: f73252af48052464f99b2a221454844e, type: 2}
_texturePropertyName:
_media: {fileID: 332789657}
_defaultTexture: {fileID: 0}
--- !u!4 &332789659
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 332789656}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
--- !u!1 &1302250882
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1302250883}
- 114: {fileID: 1302250884}
m_Layer: 0
m_Name: Spawner
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1302250883
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1302250882}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 3.21799994, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1626625711}
m_RootOrder: 7
--- !u!114 &1302250884
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1302250882}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 93547b0c2f9bffb4ab4c1db3799432c1, type: 3}
m_Name:
m_EditorClassIdentifier:
_cubePrefab: {fileID: 157672, guid: c74b9010d80cf1a4e94966bd2c908d02, type: 2}
--- !u!1 &1561559856
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1561559858}
- 114: {fileID: 1561559857}
m_Layer: 0
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1561559857
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1561559856}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: Material Mapping
_description: This demo shows the video being mapped to 3D objects by using the
ApplyToMaterial component to set the texture properies of materials.
_media: {fileID: 332789657}
--- !u!4 &1561559858
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1561559856}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: .447092533, y: .486000001, z: -.801663399}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1 &1626625710
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1626625711}
m_Layer: 0
m_Name: Scene
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1626625711
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1626625710}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 17}
- {fileID: 15}
- {fileID: 16293742}
- {fileID: 14}
- {fileID: 1812930294}
- {fileID: 12}
- {fileID: 16}
- {fileID: 1302250883}
m_Father: {fileID: 0}
m_RootOrder: 3
--- !u!1 &1812930293
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1812930294}
- 108: {fileID: 1812930295}
m_Layer: 0
m_Name: Dir light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1812930294
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1812930293}
m_LocalRotation: {x: .220532462, y: -.137178019, z: -.253997236, w: .931682944}
m_LocalPosition: {x: 0, y: 2.74500704, z: -3.76635504}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1626625711}
m_RootOrder: 4
--- !u!108 &1812930295
Light:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1812930293}
m_Enabled: 1
serializedVersion: 3
m_Type: 1
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: .419999987
m_Range: 10
m_SpotAngle: 30
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_Strength: 1
m_Bias: .0500000007
m_Softness: 4
m_SoftnessFade: 1
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_ActuallyLightmapped: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_Lightmapping: 1
m_ShadowSamples: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
m_IndirectIntensity: 1
m_AreaSize: {x: 1, y: 1}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 18bdfcdc1227e60429aea892dfeb4354
timeCreated: 1448559915
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,539 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_ObjectHideFlags: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 2
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: 1
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 2
m_TextureCompression: 1
m_LockAtlas: 0
--- !u!196 &4
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!127 &5
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!1 &56631014
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 127526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
serializedVersion: 4
m_Component:
- 4: {fileID: 56631017}
- 33: {fileID: 56631016}
- 23: {fileID: 56631015}
- 114: {fileID: 56631019}
- 114: {fileID: 56631018}
m_Layer: 0
m_Name: Sphere
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!23 &56631015
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 2327526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: 17b8b08ed638ac04a9e726c6ec0cea35, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!33 &56631016
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 3327526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_Mesh: {fileID: 4300000, guid: c8b055314efcb4b4dbd29f97a847fc4c, type: 2}
--- !u!4 &56631017
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 427526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_LocalRotation: {x: 0, y: 1, z: 0, w: -4.37113883e-08}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 5, y: 5, z: 5}
m_Children: []
m_Father: {fileID: 1696177502}
m_RootOrder: 0
--- !u!114 &56631018
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11476996, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f6d1977a52888584496b1acc7e998011, type: 3}
m_Name:
m_EditorClassIdentifier:
_offset: {x: 0, y: 0}
_scale: {x: 1, y: 1}
_mesh: {fileID: 56631015}
_media: {fileID: 1534796029}
_defaultTexture: {fileID: 0}
--- !u!114 &56631019
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11404242, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4ed685e8c5f1f584aa28b32dcf9bdab1, type: 3}
m_Name:
m_EditorClassIdentifier:
_camera: {fileID: 1594834359}
_renderer: {fileID: 56631015}
_material: {fileID: 0}
--- !u!1 &520026262
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 520026263}
m_Layer: 0
m_Name: OrientationFixer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &520026263
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 520026262}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1594834360}
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1001 &739613493
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 11498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_VideoPath
value: AVProVideoSamples/SampleSphere.mp4
objectReference: {fileID: 0}
- target: {fileID: 427526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 427526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.w
value: -4.37113883e-08
objectReference: {fileID: 0}
- target: {fileID: 11404242, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: _camera
value:
objectReference: {fileID: 1594834359}
- target: {fileID: 11404242, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: _renderer
value:
objectReference: {fileID: 56631015}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_RootGameObject: {fileID: 1696177501}
m_IsPrefabParent: 0
m_IsExploded: 1
--- !u!1 &1057554143
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1057554146}
- 114: {fileID: 1057554144}
m_Layer: 0
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1057554144
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1057554143}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: 360 Degree Video
_description: 'An equirectangular (lat-long) video mapped to a sphere.
Use the device gyroscope or mouse or VR headset (when enabled) to look around.
The material has settings for stereo top-bottom and left-right videos for use
in VR.
The quality of this video is low because it''s low resolution and highly compressed
to keep the file size down.
Press "v" to toggle VR.'
_media: {fileID: 1534796029}
--- !u!4 &1057554146
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1057554143}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
--- !u!1 &1534796027
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 198424, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
serializedVersion: 4
m_Component:
- 4: {fileID: 1534796028}
- 114: {fileID: 1534796029}
m_Layer: 0
m_Name: AVPro Video Media Player
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1534796028
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 498424, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 1534796027}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1696177502}
m_RootOrder: 1
--- !u!114 &1534796029
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 1534796027}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 638c870cac4da414fba921606d504407, type: 3}
m_Name:
m_EditorClassIdentifier:
m_VideoLocation: 2
m_VideoPath: AVProVideoSamples/SampleSphere.mp4
m_AutoOpen: 1
m_AutoStart: 1
m_Loop: 1
m_Volume: 1
m_Muted: 0
m_PlaybackRate: 1
m_DebugGui: 0
m_Persistent: 0
m_StereoPacking: 0
m_AlphaPacking: 0
m_DisplayDebugStereoColorTint: 0
m_FilterMode: 1
m_WrapMode: 1
m_AnisoLevel: 0
m_events:
m_PersistentCalls:
m_Calls: []
m_TypeName: RenderHeads.Media.AVProVideo.MediaPlayerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_optionsWindows:
overridePath: 0
pathLocation: 2
path:
videoApi: 0
useHardwareDecoding: 1
useUnityAudio: 0
forceAudioOutputDeviceName:
_optionsMacOSX:
overridePath: 0
pathLocation: 2
path:
_optionsIOS:
overridePath: 0
pathLocation: 2
path:
_optionsTVOS:
overridePath: 0
pathLocation: 2
path:
_optionsAndroid:
overridePath: 0
pathLocation: 2
path:
useFastOesPath: 0
fileOffset: 0
_optionsWindowsPhone:
overridePath: 0
pathLocation: 2
path:
useHardwareDecoding: 1
_optionsWindowsUWP:
overridePath: 0
pathLocation: 2
path:
useHardwareDecoding: 1
_optionsWebGL:
overridePath: 0
pathLocation: 2
path:
--- !u!1 &1594834354
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1594834360}
- 20: {fileID: 1594834359}
- 92: {fileID: 1594834358}
- 124: {fileID: 1594834357}
- 81: {fileID: 1594834356}
- 114: {fileID: 1594834355}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1594834355
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9d7efb037b8363242b73fe9664adb7f8, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!81 &1594834356
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
--- !u!124 &1594834357
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
--- !u!92 &1594834358
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
--- !u!20 &1594834359
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 70
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!4 &1594834360
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 520026263}
m_RootOrder: 0
--- !u!1 &1696177501
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 198420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
serializedVersion: 4
m_Component:
- 4: {fileID: 1696177502}
m_Layer: 0
m_Name: 360SphereVideo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1696177502
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 1696177501}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 56631017}
- {fileID: 1534796028}
m_Father: {fileID: 0}
m_RootOrder: 1

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 46c885062d1f974438005e5b3d285ab6
DefaultImporter:
userData:

View File

@ -0,0 +1,653 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_ObjectHideFlags: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 2
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: 1
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 2
m_TextureCompression: 1
m_LockAtlas: 0
--- !u!196 &4
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!127 &5
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!1001 &39486245
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 449002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 449002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 449002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 449002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 449002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 449002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 449002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 449002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3388718, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_Mesh
value:
objectReference: {fileID: 1296802641}
- target: {fileID: 11449004, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: m_VideoPath
value: AVProVideoSamples/SampleCube.mp4
objectReference: {fileID: 0}
- target: {fileID: 11449004, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
propertyPath: _optionsWindows.overridePath
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
m_RootGameObject: {fileID: 108049000}
m_IsPrefabParent: 0
m_IsExploded: 1
--- !u!1 &108049000
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 149002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
m_PrefabInternal: {fileID: 39486245}
serializedVersion: 4
m_Component:
- 4: {fileID: 108049001}
m_Layer: 0
m_Name: 360CubeVideo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &108049001
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 449002, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
m_PrefabInternal: {fileID: 39486245}
m_GameObject: {fileID: 108049000}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1263588777}
- {fileID: 300943886}
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!1 &300943884
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 149004, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
m_PrefabInternal: {fileID: 39486245}
serializedVersion: 4
m_Component:
- 4: {fileID: 300943886}
- 114: {fileID: 300943885}
m_Layer: 0
m_Name: AVPro Video Media Player
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &300943885
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11449004, guid: 5cc7e20810735fc46ab7b17491990099,
type: 2}
m_PrefabInternal: {fileID: 39486245}
m_GameObject: {fileID: 300943884}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 638c870cac4da414fba921606d504407, type: 3}
m_Name:
m_EditorClassIdentifier:
m_VideoLocation: 2
m_VideoPath: AVProVideoSamples/SampleCube.mp4
m_AutoOpen: 1
m_AutoStart: 1
m_Loop: 1
m_Volume: 1
m_Muted: 0
m_PlaybackRate: 1
m_DebugGui: 0
m_Persistent: 0
m_StereoPacking: 0
m_AlphaPacking: 0
m_DisplayDebugStereoColorTint: 0
m_FilterMode: 1
m_WrapMode: 1
m_AnisoLevel: 0
m_events:
m_PersistentCalls:
m_Calls: []
m_TypeName: RenderHeads.Media.AVProVideo.MediaPlayerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_optionsWindows:
overridePath: 0
pathLocation: 2
path:
videoApi: 0
useHardwareDecoding: 1
useUnityAudio: 0
forceAudioOutputDeviceName:
_optionsMacOSX:
overridePath: 0
pathLocation: 2
path:
_optionsIOS:
overridePath: 0
pathLocation: 2
path:
_optionsTVOS:
overridePath: 0
pathLocation: 2
path:
_optionsAndroid:
overridePath: 0
pathLocation: 2
path:
useFastOesPath: 0
fileOffset: 0
_optionsWindowsPhone:
overridePath: 0
pathLocation: 2
path:
useHardwareDecoding: 1
_optionsWindowsUWP:
overridePath: 0
pathLocation: 2
path:
useHardwareDecoding: 1
_optionsWebGL:
overridePath: 0
pathLocation: 2
path:
--- !u!4 &300943886
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 449004, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
m_PrefabInternal: {fileID: 39486245}
m_GameObject: {fileID: 300943884}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 108049001}
m_RootOrder: 1
--- !u!1 &520026262
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 520026263}
m_Layer: 0
m_Name: OrientationFixer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &520026263
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 520026262}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1594834360}
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1 &1057554143
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1057554146}
- 114: {fileID: 1057554144}
m_Layer: 0
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1057554144
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1057554143}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: 360 Degree Video
_description: 'A cubemap 3x2 video mapped to a cube.
Use the device gyroscope or mouse or VR headset (when enabled) to look around.
The quality of this video is low because it''s low resolution and highly compressed
to keep the file size down.
Press "v" to toggle VR.'
_media: {fileID: 300943885}
--- !u!4 &1057554146
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1057554143}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
--- !u!1 &1263588773
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 149006, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
m_PrefabInternal: {fileID: 39486245}
serializedVersion: 4
m_Component:
- 4: {fileID: 1263588777}
- 23: {fileID: 1263588776}
- 33: {fileID: 1263588775}
- 114: {fileID: 1263588774}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1263588774
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11488718, guid: 5cc7e20810735fc46ab7b17491990099,
type: 2}
m_PrefabInternal: {fileID: 39486245}
m_GameObject: {fileID: 1263588773}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 683e7713922f8044c81bf497a0b5887e, type: 3}
m_Name:
m_EditorClassIdentifier:
_material: {fileID: 2100000, guid: 528f5620ff3f26b428baf78fbf6ed558, type: 2}
_mediaPlayer: {fileID: 300943885}
expansion_coeff: 1.00999999
--- !u!33 &1263588775
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 3388718, guid: 5cc7e20810735fc46ab7b17491990099,
type: 2}
m_PrefabInternal: {fileID: 39486245}
m_GameObject: {fileID: 1263588773}
m_Mesh: {fileID: 1296802641}
--- !u!23 &1263588776
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 2388718, guid: 5cc7e20810735fc46ab7b17491990099,
type: 2}
m_PrefabInternal: {fileID: 39486245}
m_GameObject: {fileID: 1263588773}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: 528f5620ff3f26b428baf78fbf6ed558, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!4 &1263588777
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 449006, guid: 5cc7e20810735fc46ab7b17491990099, type: 2}
m_PrefabInternal: {fileID: 39486245}
m_GameObject: {fileID: 1263588773}
m_LocalRotation: {x: 0, y: 1, z: 0, w: -4.37113883e-08}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 10, y: 10, z: 10}
m_Children: []
m_Father: {fileID: 108049001}
m_RootOrder: 0
--- !u!43 &1296802641
Mesh:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name:
serializedVersion: 8
m_SubMeshes:
- serializedVersion: 2
firstByte: 0
indexCount: 36
topology: 0
firstVertex: 0
vertexCount: 24
localAABB:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: .5, y: .5, z: .5}
m_Shapes:
vertices: []
shapes: []
channels: []
fullWeights: []
m_BindPose: []
m_BoneNameHashes:
m_RootBoneNameHash: 0
m_MeshCompression: 0
m_StreamCompression: 0
m_IsReadable: 1
m_KeepVertices: 1
m_KeepIndices: 1
m_IndexBuffer: 000001000200000002000300040005000600040006000700080009000a0008000a000b000c000d000e000c000e000f00100011001200100012001300140015001600140016001700
m_Skin: []
m_VertexData:
m_CurrentChannels: 11
m_VertexCount: 24
m_Channels:
- stream: 0
offset: 0
format: 0
dimension: 3
- stream: 0
offset: 12
format: 0
dimension: 3
- stream: 0
offset: 0
format: 0
dimension: 0
- stream: 0
offset: 24
format: 0
dimension: 2
- stream: 0
offset: 0
format: 0
dimension: 0
- stream: 0
offset: 0
format: 0
dimension: 0
m_Streams:
- channelMask: 11
offset: 0
stride: 32
dividerOp: 0
frequency: 0
- channelMask: 0
offset: 0
stride: 0
dividerOp: 0
frequency: 0
- channelMask: 0
offset: 0
stride: 0
dividerOp: 0
frequency: 0
- channelMask: 0
offset: 0
stride: 0
dividerOp: 0
frequency: 0
m_DataSize: 768
_typelessdata: 0000003ffeffff3e0000003f000080bf0000000000000000abaaaa3e0000803f0000003f0000003ffeffffbe000080bf0000000000000000abaa2a3f0000803f0000003ffeffffbe000000bf000080bf0000000000000000abaa2a3f0000003f0000003f000000bffeffff3e000080bf0000000000000000abaaaa3e0000003f0000003f0000003ffeffffbe00000000000080bf00000000abaaaa3e0000003f000000bf0000003ffeffffbe00000000000080bf00000000abaa2a3f0000003f000000bffeffffbe000000bf00000000000080bf00000000abaa2a3f000000000000003ffeffffbe000000bf00000000000080bf00000000abaaaa3e00000000000000bf0000003ffeffffbe0000803f0000000000000000000000000000803f000000bffeffff3e0000003f0000803f0000000000000000abaaaa3e0000803f000000bf000000bffeffff3e0000803f0000000000000000abaaaa3e0000003f000000bffeffffbe000000bf0000803f0000000000000000000000000000003f000000bffeffff3e0000003f000000000000803f00000000abaa2a3f0000003f0000003ffeffff3e0000003f000000000000803f000000000000803f0000003f0000003f000000bffeffff3e000000000000803f000000000000803f00000000000000bf000000bffeffff3e000000000000803f00000000abaa2a3f000000000000003f000000bffeffff3e00000000000000000000803f00000000000000000000003ffeffffbe000000bf00000000000000000000803f000000000000003f000000bffeffffbe000000bf00000000000000000000803fabaaaa3e0000003f000000bf000000bffeffff3e00000000000000000000803fabaaaa3e00000000000000bffeffff3e0000003f0000000000000000000080bf0000803f0000803f000000bf0000003ffeffffbe0000000000000000000080bf0000803f0000003f0000003f0000003ffeffffbe0000000000000000000080bfabaa2a3f0000003f0000003ffeffff3e0000003f0000000000000000000080bfabaa2a3f0000803f
m_CompressedMesh:
m_Vertices:
m_NumItems: 0
m_Range: 0
m_Start: 0
m_Data:
m_BitSize: 0
m_UV:
m_NumItems: 0
m_Range: 0
m_Start: 0
m_Data:
m_BitSize: 0
m_BindPoses:
m_NumItems: 0
m_Range: 0
m_Start: 0
m_Data:
m_BitSize: 0
m_Normals:
m_NumItems: 0
m_Range: 0
m_Start: 0
m_Data:
m_BitSize: 0
m_Tangents:
m_NumItems: 0
m_Range: 0
m_Start: 0
m_Data:
m_BitSize: 0
m_Weights:
m_NumItems: 0
m_Data:
m_BitSize: 0
m_NormalSigns:
m_NumItems: 0
m_Data:
m_BitSize: 0
m_TangentSigns:
m_NumItems: 0
m_Data:
m_BitSize: 0
m_BoneIndices:
m_NumItems: 0
m_Data:
m_BitSize: 0
m_Triangles:
m_NumItems: 0
m_Data:
m_BitSize: 0
m_Colors:
m_NumItems: 0
m_Data:
m_BitSize: 0
m_LocalAABB:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: .5, y: .5, z: .5}
m_MeshUsageFlags: 0
m_MeshOptimized: 0
--- !u!1 &1594834354
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1594834360}
- 20: {fileID: 1594834359}
- 92: {fileID: 1594834358}
- 124: {fileID: 1594834357}
- 81: {fileID: 1594834356}
- 114: {fileID: 1594834355}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1594834355
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9d7efb037b8363242b73fe9664adb7f8, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!81 &1594834356
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
--- !u!124 &1594834357
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
--- !u!92 &1594834358
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
--- !u!20 &1594834359
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 75
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!4 &1594834360
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 520026263}
m_RootOrder: 0

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: a1dac1a17e01c1f45a4028186b8f8790
DefaultImporter:
userData:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 3fe422f8af6614643b78454f6721235c
DefaultImporter:
userData:

View File

@ -0,0 +1,623 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_ObjectHideFlags: 0
--- !u!127 &3
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!157 &4
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 1
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: 1
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 2
m_TextureCompression: 0
m_LockAtlas: 0
--- !u!196 &44
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!1 &162157174
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 162157175}
- 222: {fileID: 162157177}
- 114: {fileID: 162157176}
m_Layer: 0
m_Name: AVPro Video
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &162157175
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 162157174}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1979807406}
m_Father: {fileID: 398410326}
m_RootOrder: 0
m_AnchorMin: {x: .5, y: .5}
m_AnchorMax: {x: .5, y: .5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 1920, y: 1080}
m_Pivot: {x: .5, y: .5}
--- !u!114 &162157176
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 162157174}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0f17cdc186456a4469a139a104d2ca72, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
_mediaPlayer: {fileID: 988546208}
m_UVRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
_setNativeSize: 0
_scaleMode: 1
_noDefaultDisplay: 1
_displayInEditor: 1
_defaultTexture: {fileID: 0}
--- !u!222 &162157177
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 162157174}
--- !u!1 &398410325
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 398410326}
- 223: {fileID: 398410329}
- 114: {fileID: 398410328}
- 114: {fileID: 398410327}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &398410326
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 398410325}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 162157175}
m_Father: {fileID: 0}
m_RootOrder: 3
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!114 &398410327
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 398410325}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &398410328
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 398410325}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 1920, y: 1080}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &398410329
Canvas:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 398410325}
m_Enabled: 1
serializedVersion: 2
m_RenderMode: 1
m_Camera: {fileID: 1462520264}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!1 &711314949
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 711314953}
- 114: {fileID: 711314952}
- 114: {fileID: 711314951}
- 114: {fileID: 711314950}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &711314950
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 711314949}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1997211142, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AllowActivationOnStandalone: 0
--- !u!114 &711314951
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 711314949}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1077351063, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_AllowActivationOnMobileDevice: 0
--- !u!114 &711314952
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 711314949}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -619905303, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 5
--- !u!4 &711314953
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 711314949}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
--- !u!1 &907987467
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 907987469}
- 114: {fileID: 907987468}
m_Layer: 0
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &907987468
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 907987467}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: Subtitles
_description: This demo loads an external SRT file and syncs it with the playback
of the video. A uGUI Text element is used to display the text.
_media: {fileID: 988546208}
--- !u!4 &907987469
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 907987467}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 524.136475, y: 256.838959, z: -7.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1 &988546207
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 988546209}
- 114: {fileID: 988546208}
m_Layer: 0
m_Name: MediaPlayer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &988546208
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 988546207}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 638c870cac4da414fba921606d504407, type: 3}
m_Name:
m_EditorClassIdentifier:
m_VideoLocation: 2
m_VideoPath: AVProVideoSamples/BigBuckBunny_720p30.mp4
m_AutoOpen: 1
m_AutoStart: 1
m_Loop: 1
m_Volume: 1
m_Muted: 0
m_PlaybackRate: 1
m_DebugGui: 1
m_Persistent: 0
m_StereoPacking: 0
m_AlphaPacking: 0
m_DisplayDebugStereoColorTint: 0
m_FilterMode: 1
m_WrapMode: 1
m_AnisoLevel: 0
m_LoadSubtitles: 1
m_SubtitleLocation: 2
m_SubtitlePath: AVProVideoSamples/SampleSubtitles.srt
m_events:
m_PersistentCalls:
m_Calls: []
m_TypeName: RenderHeads.Media.AVProVideo.MediaPlayerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
_optionsWindows:
overridePath: 0
pathLocation: 2
path:
videoApi: 0
useHardwareDecoding: 1
useUnityAudio: 0
forceAudioOutputDeviceName:
_optionsMacOSX:
overridePath: 0
pathLocation: 2
path:
_optionsIOS:
overridePath: 0
pathLocation: 2
path:
_optionsTVOS:
overridePath: 0
pathLocation: 2
path:
_optionsAndroid:
overridePath: 0
pathLocation: 2
path:
useFastOesPath: 0
fileOffset: 0
_optionsWindowsPhone:
overridePath: 0
pathLocation: 2
path:
useHardwareDecoding: 1
_optionsWindowsUWP:
overridePath: 0
pathLocation: 2
path:
useHardwareDecoding: 1
_optionsWebGL:
overridePath: 0
pathLocation: 2
path:
--- !u!4 &988546209
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 988546207}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
--- !u!1 &1462520261
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1462520265}
- 20: {fileID: 1462520264}
- 92: {fileID: 1462520263}
- 81: {fileID: 1462520262}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1462520262
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1462520261}
m_Enabled: 1
--- !u!92 &1462520263
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1462520261}
m_Enabled: 1
--- !u!20 &1462520264
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1462520261}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 48
orthographic: 0
orthographic size: 5
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!4 &1462520265
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1462520261}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!1 &1979807402
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 224: {fileID: 1979807406}
- 222: {fileID: 1979807405}
- 114: {fileID: 1979807404}
- 114: {fileID: 1979807407}
- 114: {fileID: 1979807403}
m_Layer: 5
m_Name: SubtitlesText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1979807403
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1979807402}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2d4bbe43657314a49a5f730e66dafebd, type: 3}
m_Name:
m_EditorClassIdentifier:
_mediaPlayer: {fileID: 988546208}
_text: {fileID: 1979807404}
--- !u!114 &1979807404
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1979807402}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 70
m_FontStyle: 0
m_BestFit: 1
m_MinSize: 20
m_MaxSize: 70
m_Alignment: 7
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 1
m_LineSpacing: 1
m_Text:
--- !u!222 &1979807405
CanvasRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1979807402}
--- !u!224 &1979807406
RectTransform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1979807402}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 162157175}
m_RootOrder: 0
m_AnchorMin: {x: .5, y: 0}
m_AnchorMax: {x: .5, y: 0}
m_AnchoredPosition: {x: 0, y: 133.929993}
m_SizeDelta: {x: 1600, y: 240}
m_Pivot: {x: .5, y: .5}
--- !u!114 &1979807407
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1979807402}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -900027084, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectColor: {r: 0, g: 0, b: 0, a: 1}
m_EffectDistance: {x: 1, y: 1}
m_UseGraphicAlpha: 1

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 4952ee753c249b344918dda11e7f0c61
DefaultImporter:
userData:

View File

@ -0,0 +1,606 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_ObjectHideFlags: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 2
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: 1
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 2
m_TextureCompression: 1
m_LockAtlas: 0
--- !u!196 &4
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
tileSizeHint: 0
m_NavMesh: {fileID: 0}
--- !u!127 &5
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!1 &56631014
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 127526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
serializedVersion: 4
m_Component:
- 4: {fileID: 56631017}
- 33: {fileID: 56631016}
- 23: {fileID: 56631015}
- 114: {fileID: 56631019}
- 114: {fileID: 56631018}
m_Layer: 0
m_Name: Sphere
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!23 &56631015
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 2327526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: 0fd638029ad31c3408b8cd59c9364952, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!33 &56631016
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 3327526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_Mesh: {fileID: 4300000, guid: c8b055314efcb4b4dbd29f97a847fc4c, type: 2}
--- !u!4 &56631017
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 427526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_LocalRotation: {x: 0, y: 1, z: 0, w: -4.37113883e-08}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 5, y: 5, z: 5}
m_Children: []
m_Father: {fileID: 1696177502}
m_RootOrder: 0
--- !u!114 &56631018
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11476996, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f6d1977a52888584496b1acc7e998011, type: 3}
m_Name:
m_EditorClassIdentifier:
_media: {fileID: 1534796029}
_defaultTexture: {fileID: 0}
_mesh: {fileID: 56631015}
_texturePropertyName: _MainTex
_offset: {x: 0, y: 0}
_scale: {x: 1, y: 1}
--- !u!114 &56631019
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11404242, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 56631014}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4ed685e8c5f1f584aa28b32dcf9bdab1, type: 3}
m_Name:
m_EditorClassIdentifier:
_camera: {fileID: 1594834359}
_renderer: {fileID: 56631015}
_uGuiComponent: {fileID: 0}
_material: {fileID: 0}
_forceEyeMode: 0
--- !u!1 &520026262
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 520026263}
m_Layer: 0
m_Name: OrientationFixer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &520026263
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 520026262}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1594834360}
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1001 &739613493
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 11498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_VideoPath
value: AVProVideoSamples/Sample180.mp4
objectReference: {fileID: 0}
- target: {fileID: 427526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 427526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_LocalRotation.w
value: -4.37113883e-08
objectReference: {fileID: 0}
- target: {fileID: 11404242, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: _camera
value:
objectReference: {fileID: 1594834359}
- target: {fileID: 11404242, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: _renderer
value:
objectReference: {fileID: 56631015}
- target: {fileID: 3327526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_Mesh
value:
objectReference: {fileID: 4300000, guid: c8b055314efcb4b4dbd29f97a847fc4c, type: 2}
- target: {fileID: 2327526, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 0fd638029ad31c3408b8cd59c9364952, type: 2}
- target: {fileID: 11498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: _optionsWindows.videoApi
value: 0
objectReference: {fileID: 0}
- target: {fileID: 11498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: m_videoMapping
value: 3
objectReference: {fileID: 0}
- target: {fileID: 11404242, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
propertyPath: _forceEyeMode
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_RootGameObject: {fileID: 1696177501}
m_IsPrefabParent: 0
m_IsExploded: 1
--- !u!1 &1057554143
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1057554146}
- 114: {fileID: 1057554144}
m_Layer: 0
m_Name: DemoInfo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1057554144
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1057554143}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10fa3ce0e1c037e449490a4f9ca3bf99, type: 3}
m_Name:
m_EditorClassIdentifier:
_title: 180 Degree Video
_description: 'An equirectangular (lat-long) video mapped to a sphere.
Use the device gyroscope or mouse or VR headset (when enabled) to look around.
The material has settings for stereo top-bottom and left-right videos for use
in VR.
The quality of this video is low because it''s low resolution and highly compressed
to keep the file size down.
Press "v" to toggle VR.'
_media: {fileID: 1534796029}
--- !u!4 &1057554146
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1057554143}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
--- !u!1 &1534796027
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 198424, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
serializedVersion: 4
m_Component:
- 4: {fileID: 1534796028}
- 114: {fileID: 1534796029}
m_Layer: 0
m_Name: AVPro Video Media Player
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1534796028
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 498424, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 1534796027}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1696177502}
m_RootOrder: 1
--- !u!114 &1534796029
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d,
type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 1534796027}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 638c870cac4da414fba921606d504407, type: 3}
m_Name:
m_EditorClassIdentifier:
m_VideoLocation: 2
m_VideoPath: AVProVideoSamples/Sample180.mp4
m_AutoOpen: 1
m_AutoStart: 1
m_Loop: 1
m_Volume: 1
m_Balance: 0
m_Muted: 0
m_PlaybackRate: 1
m_Resample: 0
m_ResampleMode: 0
m_ResampleBufferSize: 5
m_Persistent: 0
m_videoMapping: 3
m_StereoPacking: 0
m_AlphaPacking: 0
m_DisplayDebugStereoColorTint: 0
m_FilterMode: 1
m_WrapMode: 1
m_AnisoLevel: 0
m_LoadSubtitles: 0
m_SubtitleLocation: 2
m_SubtitlePath:
m_AudioHeadTransform: {fileID: 0}
m_AudioFocusEnabled: 0
m_AudioFocusTransform: {fileID: 0}
m_AudioFocusWidthDegrees: 90
m_AudioFocusOffLevelDB: 0
m_events:
m_PersistentCalls:
m_Calls: []
m_TypeName: RenderHeads.Media.AVProVideo.MediaPlayerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
m_forceFileFormat: 0
m_manuallySetAudioSourceProperties: 0
_optionsWindows:
overridePath: 0
pathLocation: 2
path:
videoApi: 0
useHardwareDecoding: 1
useUnityAudio: 0
forceAudioResample: 1
useTextureMips: 0
hintAlphaChannel: 0
useLowLatency: 0
forceAudioOutputDeviceName:
preferredFilters: []
enableAudio360: 0
audio360ChannelMode: 0
_optionsMacOSX:
overridePath: 0
pathLocation: 2
path:
httpHeaderJson:
_optionsIOS:
overridePath: 0
pathLocation: 2
path:
useYpCbCr420Textures: 1
httpHeaderJson:
_optionsTVOS:
overridePath: 0
pathLocation: 2
path:
useYpCbCr420Textures: 1
httpHeaderJson:
_optionsAndroid:
overridePath: 0
pathLocation: 2
path:
videoApi: 1
useFastOesPath: 0
showPosterFrame: 0
enableAudio360: 0
audio360ChannelMode: 0
preferSoftwareDecoder: 0
httpHeaderJson:
fileOffset: 0
_optionsWindowsPhone:
overridePath: 0
pathLocation: 2
path:
useHardwareDecoding: 1
useUnityAudio: 0
forceAudioResample: 1
useTextureMips: 0
useLowLatency: 0
_optionsWindowsUWP:
overridePath: 0
pathLocation: 2
path:
useHardwareDecoding: 1
useUnityAudio: 0
forceAudioResample: 1
useTextureMips: 0
useLowLatency: 0
_optionsWebGL:
overridePath: 0
pathLocation: 2
path:
_optionsPS4:
overridePath: 0
pathLocation: 2
path:
--- !u!1 &1594834354
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1594834360}
- 20: {fileID: 1594834359}
- 92: {fileID: 1594834358}
- 124: {fileID: 1594834357}
- 81: {fileID: 1594834356}
- 114: {fileID: 1594834355}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1594834355
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9d7efb037b8363242b73fe9664adb7f8, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!81 &1594834356
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
--- !u!124 &1594834357
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
--- !u!92 &1594834358
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
--- !u!20 &1594834359
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: 0, g: 0, b: 0, a: .0196078438}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 70
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_HDR: 0
m_OcclusionCulling: 0
m_StereoConvergence: 10
m_StereoSeparation: .0219999999
--- !u!4 &1594834360
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1594834354}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 520026263}
m_RootOrder: 0
--- !u!1 &1696177501
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 198420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
serializedVersion: 4
m_Component:
- 4: {fileID: 1696177502}
m_Layer: 0
m_Name: 360SphereVideo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1696177502
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 498420, guid: 5a12218ea7e5b7a4e8b89d25e07d237d, type: 2}
m_PrefabInternal: {fileID: 739613493}
m_GameObject: {fileID: 1696177501}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 56631017}
- {fileID: 1534796028}
m_Father: {fileID: 0}
m_RootOrder: 1

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 0ab5b786b15ee954eb49c576ae0f5ee3
DefaultImporter:
userData:

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 0de6fd314b06e2d40be7f96737748aaf
folderAsset: yes
timeCreated: 1448564259
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

View File

@ -0,0 +1,47 @@
fileFormatVersion: 2
guid: 01d77d6197097f04d92df9c5a034133c
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: .25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
seamlessCubemap: 0
textureFormat: -3
maxTextureSize: 1024
textureSettings:
filterMode: -1
aniso: -1
mipBias: -1
wrapMode: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: .5, y: .5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 0
textureType: -1
buildTargetSettings: []
spriteSheet:
sprites: []
spritePackingTag:
userData:

View File

@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: b0e91aaf5e8bc984daa0b6f128afe8e2
folderAsset: yes
DefaultImporter:
userData:

View File

@ -0,0 +1,136 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Background
m_Shader: {fileID: 4800000, guid: 71eb101954888314ba2a8b9fe74e1cae, type: 3}
m_ShaderKeywords: []
m_CustomRenderQueue: 1000
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _BumpMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailNormalMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _ParallaxMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _OcclusionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _EmissionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailMask
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailAlbedoMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _MetallicGlossMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
data:
first:
name: _Cutoff
second: .5
data:
first:
name: _SrcBlend
second: 1
data:
first:
name: _DstBlend
second: 0
data:
first:
name: _Parallax
second: .0199999996
data:
first:
name: _ZWrite
second: 1
data:
first:
name: _Glossiness
second: .5
data:
first:
name: _BumpScale
second: 1
data:
first:
name: _OcclusionStrength
second: 1
data:
first:
name: _DetailNormalMapScale
second: 1
data:
first:
name: _UVSec
second: 0
data:
first:
name: _Mode
second: 0
data:
first:
name: _Metallic
second: 0
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _EmissionColor
second: {r: 0, g: 0, b: 0, a: 1}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7ccf4b555441d554484bbe799cb1c834
timeCreated: 1447360756
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,141 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: BackgroundTransparent
m_Shader: {fileID: 4800000, guid: 38b28fc6a6d12d144bf6d6de820d83ce, type: 3}
m_ShaderKeywords:
- ALPHAPACK_NONE
m_CustomRenderQueue: 1000
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _BumpMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailNormalMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _ParallaxMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _OcclusionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _EmissionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailMask
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailAlbedoMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _MetallicGlossMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
data:
first:
name: _Cutoff
second: .5
data:
first:
name: AlphaPack
second: 0
data:
first:
name: _SrcBlend
second: 1
data:
first:
name: _DstBlend
second: 0
data:
first:
name: _Parallax
second: .0199999996
data:
first:
name: _ZWrite
second: 1
data:
first:
name: _Glossiness
second: .5
data:
first:
name: _BumpScale
second: 1
data:
first:
name: _OcclusionStrength
second: 1
data:
first:
name: _DetailNormalMapScale
second: 1
data:
first:
name: _UVSec
second: 0
data:
first:
name: _Mode
second: 0
data:
first:
name: _Metallic
second: 0
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _EmissionColor
second: {r: 0, g: 0, b: 0, a: 1}

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 212497aa48585ab448393471d2605db6
NativeFormatImporter:
userData:

View File

@ -0,0 +1,136 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Checker
m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: []
m_CustomRenderQueue: -1
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 2800000, guid: 2328c4cf9521e554ba76b3ba4b59fd88, type: 3}
m_Scale: {x: 10, y: 10}
m_Offset: {x: 0, y: 0}
data:
first:
name: _BumpMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailNormalMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _ParallaxMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _OcclusionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _EmissionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailMask
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailAlbedoMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _MetallicGlossMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
data:
first:
name: _Cutoff
second: .5
data:
first:
name: _SrcBlend
second: 1
data:
first:
name: _DstBlend
second: 0
data:
first:
name: _Parallax
second: .0199999996
data:
first:
name: _ZWrite
second: 1
data:
first:
name: _Glossiness
second: .5
data:
first:
name: _BumpScale
second: 1
data:
first:
name: _OcclusionStrength
second: 1
data:
first:
name: _DetailNormalMapScale
second: 1
data:
first:
name: _UVSec
second: 0
data:
first:
name: _Mode
second: 0
data:
first:
name: _Metallic
second: 0
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _EmissionColor
second: {r: 0, g: 0, b: 0, a: 1}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 01779df11e1ccda45a756158a5404329

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

View File

@ -0,0 +1,47 @@
fileFormatVersion: 2
guid: 2328c4cf9521e554ba76b3ba4b59fd88
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 1
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: .25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
seamlessCubemap: 0
textureFormat: -3
maxTextureSize: 1024
textureSettings:
filterMode: 0
aniso: -1
mipBias: -1
wrapMode: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: .5, y: .5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 0
textureType: 5
buildTargetSettings: []
spriteSheet:
sprites: []
spritePackingTag:
userData:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,65 @@
fileFormatVersion: 2
guid: 1b556993d24b54648b59aadb78f94ea9
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: HalfSphere
9500000: //RootNode
materials:
importMaterials: 0
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
motionNodeName:
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: .00999999978
meshCompression: 0
addColliders: 0
importBlendShapes: 0
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 2
importAnimation: 0
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
additionalBone: 0
userData:

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: c8b055314efcb4b4dbd29f97a847fc4c
NativeFormatImporter:
userData:

View File

@ -0,0 +1,96 @@
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "UI/Default-ExtraTexture"
{
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_OverlayTex ("Overlay Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
_StencilComp ("Stencil Comparison", Float) = 8
_Stencil ("Stencil ID", Float) = 0
_StencilOp ("Stencil Operation", Float) = 0
_StencilWriteMask ("Stencil Write Mask", Float) = 255
_StencilReadMask ("Stencil Read Mask", Float) = 255
_ColorMask ("Color Mask", Float) = 15
}
SubShader
{
Tags
{
"Queue"="Transparent"
"IgnoreProjector"="True"
"RenderType"="Transparent"
"PreviewType"="Plane"
"CanUseSpriteAtlas"="True"
}
Stencil
{
Ref [_Stencil]
Comp [_StencilComp]
Pass [_StencilOp]
ReadMask [_StencilReadMask]
WriteMask [_StencilWriteMask]
}
Cull Off
Lighting Off
ZWrite Off
ZTest [unity_GUIZTestMode]
Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
ColorMask [_ColorMask]
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata_t
{
float4 vertex : POSITION;
float4 color : COLOR;
float2 texcoord : TEXCOORD0;
};
struct v2f
{
float4 vertex : SV_POSITION;
fixed4 color : COLOR;
half2 texcoord : TEXCOORD0;
};
fixed4 _Color;
v2f vert(appdata_t IN)
{
v2f OUT;
OUT.vertex = UnityObjectToClipPos(IN.vertex);
OUT.texcoord = IN.texcoord;
#ifdef UNITY_HALF_TEXEL_OFFSET
OUT.vertex.xy += (_ScreenParams.zw-1.0)*float2(-1,1);
#endif
OUT.color = IN.color * _Color;
return OUT;
}
sampler2D _MainTex;
sampler2D _OverlayTex;
fixed4 frag(v2f IN) : SV_Target
{
half4 color = tex2D(_MainTex, IN.texcoord) * IN.color;
color *= tex2D(_OverlayTex, IN.texcoord);
clip (color.a - 0.01);
return color;
}
ENDCG
}
}
}

View File

@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: 32e211f132d6e914cbf45e46aaafd540
ShaderImporter:
defaultTextures: []
userData:

View File

@ -0,0 +1,116 @@
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "UI/Default Font - Extra Texture" {
Properties {
_MainTex ("Font Texture", 2D) = "white" {}
_OverlayTex ("Overlay Texture", 2D) = "white" {}
_Color ("Text Color", Color) = (1,1,1,1)
_StencilComp ("Stencil Comparison", Float) = 8
_Stencil ("Stencil ID", Float) = 0
_StencilOp ("Stencil Operation", Float) = 0
_StencilWriteMask ("Stencil Write Mask", Float) = 255
_StencilReadMask ("Stencil Read Mask", Float) = 255
_ColorMask ("Color Mask", Float) = 15
[Toggle(USE_YPCBCR)] _UseYpCbCr("Use YpCbCr", Float) = 0
_ChromaTex("Chroma", 2D) = "gray" {}
}
SubShader {
Tags
{
"Queue"="Transparent"
"IgnoreProjector"="True"
"RenderType"="Transparent"
"PreviewType"="Plane"
}
Stencil
{
Ref [_Stencil]
Comp [_StencilComp]
Pass [_StencilOp]
ReadMask [_StencilReadMask]
WriteMask [_StencilWriteMask]
}
Lighting Off
Cull Off
ZTest [unity_GUIZTestMode]
ZWrite Off
Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
ColorMask [_ColorMask]
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
#include "../../Resources/Shaders/AVProVideo.cginc"
#pragma multi_compile __ USE_YPCBCR
struct appdata_t {
float4 vertex : POSITION;
fixed4 color : COLOR;
float2 texcoord : TEXCOORD0;
};
struct v2f {
float4 vertex : SV_POSITION;
fixed4 color : COLOR;
float2 texcoord : TEXCOORD0;
float2 texcoord2 : TEXCOORD1;
};
sampler2D _MainTex;
sampler2D _OverlayTex;
#if USE_YPCBCR
sampler2D _ChromaTex;
#endif
uniform float4 _MainTex_ST;
uniform float4 _OverlayTex_ST;
uniform fixed4 _Color;
v2f vert (appdata_t v)
{
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.color = v.color * _Color;
o.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex);
#ifdef UNITY_HALF_TEXEL_OFFSET
o.vertex.xy += (_ScreenParams.zw-1.0)*float2(-1,1);
#endif
o.texcoord2 = (o.vertex.xy + 1) / 2;
o.texcoord2.y = 1 - o.texcoord2.y;
return o;
}
fixed4 frag (v2f i) : SV_Target
{
fixed4 col = i.color;
#if USE_YPCBCR
#if SHADER_API_METAL || SHADER_API_GLES || SHADER_API_GLES3
float3 ypcbcr = float3(tex2D(_OverlayTex, i.texcoord2).r, tex2D(_ChromaTex, i.texcoord2).rg);
#else
float3 ypcbcr = float3(tex2D(_OverlayTex, i.texcoord2).r, tex2D(_ChromaTex, i.texcoord2).ra);
#endif
fixed4 overlay = fixed4(Convert420YpCbCr8ToRGB(ypcbcr), 1.0);
#else
fixed4 overlay = fixed4(tex2D(_OverlayTex, i.texcoord2).rgb, 1.0);
#endif
col.a *= tex2D(_MainTex, i.texcoord).a;
clip (col.a - 0.01);
col *= overlay;
return col;
}
ENDCG
}
}
}

View File

@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: 3666870752d93e94aa966ceccbfc2bce
ShaderImporter:
defaultTextures: []
userData:

View File

@ -0,0 +1,59 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: UI-Font-Video
m_Shader: {fileID: 4800000, guid: 3666870752d93e94aa966ceccbfc2bce, type: 3}
m_ShaderKeywords: []
m_CustomRenderQueue: -1
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _OverlayTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
data:
first:
name: _Stencil
second: 0
data:
first:
name: _StencilReadMask
second: 255
data:
first:
name: _StencilWriteMask
second: 255
data:
first:
name: _StencilComp
second: 8
data:
first:
name: _StencilOp
second: 0
data:
first:
name: _ColorMask
second: 15
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 900187ec3dc70b549a84e20b0bdad0dc
NativeFormatImporter:
userData:

View File

@ -0,0 +1,64 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: UI-TransparentVideo
m_Shader: {fileID: 4800000, guid: f32079bbb2560394abb63e40e1d53da7, type: 3}
m_ShaderKeywords:
- ALPHAPACK_LEFT_RIGHT
m_CustomRenderQueue: -1
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _OverlayTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: -1}
m_Offset: {x: 0, y: 1}
m_Floats:
data:
first:
name: _Stencil
second: 0
data:
first:
name: _StencilReadMask
second: 255
data:
first:
name: _StencilWriteMask
second: 255
data:
first:
name: _StencilComp
second: 8
data:
first:
name: _StencilOp
second: 0
data:
first:
name: _ColorMask
second: 15
data:
first:
name: AlphaPack
second: 0
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 609c1db9ea02a5342bc549f4012aa81e
NativeFormatImporter:
userData:

View File

@ -0,0 +1,59 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: UI-Video
m_Shader: {fileID: 4800000, guid: 32e211f132d6e914cbf45e46aaafd540, type: 3}
m_ShaderKeywords: []
m_CustomRenderQueue: -1
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _OverlayTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: -1}
m_Offset: {x: 0, y: 1}
m_Floats:
data:
first:
name: _Stencil
second: 0
data:
first:
name: _StencilReadMask
second: 255
data:
first:
name: _StencilWriteMask
second: 255
data:
first:
name: _StencilComp
second: 8
data:
first:
name: _StencilOp
second: 0
data:
first:
name: _ColorMask
second: 15
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 1597080b163110749b2231dd5f4438c2
NativeFormatImporter:
userData:

View File

@ -0,0 +1,91 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: VideoMappingMaterial
m_Shader: {fileID: 4800000, guid: 06b0cff0150d7eb41b3d269f7e11daa3, type: 3}
m_ShaderKeywords: ALPHAPACK_LEFT_RIGHT APPLY_GAMMA STEREO_NONE
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2000
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ChromaTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- AlphaPack: 0
- Stereo: 0
- _ApplyGamma: 0
- _BumpScale: 1
- _ColorMask: 15
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _Glossiness: 0.309
- _InvFade: 1
- _Metallic: 0.993
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Shininess: 0.078125
- _SrcBlend: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _StereoDebug: 0
- _UVSec: 0
- _UseYpCbCr: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f73252af48052464f99b2a221454844e
timeCreated: 1437177912
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,177 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: VideoMappingMaterialTransparent
m_Shader: {fileID: 4800000, guid: 0ed1fb9218ad96f49acfdb428d5b5aab, type: 3}
m_ShaderKeywords:
- ALPHAPACK_LEFT_RIGHT
m_CustomRenderQueue: -1
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _BumpMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailNormalMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _ParallaxMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _OcclusionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _EmissionMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailMask
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _DetailAlbedoMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _MetallicGlossMap
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
data:
first:
name: _Cutoff
second: .5
data:
first:
name: _Shininess
second: .078125
data:
first:
name: _Stencil
second: 0
data:
first:
name: _StencilReadMask
second: 255
data:
first:
name: _StencilWriteMask
second: 255
data:
first:
name: _StencilComp
second: 8
data:
first:
name: _StencilOp
second: 0
data:
first:
name: _ColorMask
second: 15
data:
first:
name: AlphaPack
second: 0
data:
first:
name: _SrcBlend
second: 1
data:
first:
name: _DstBlend
second: 0
data:
first:
name: _Parallax
second: .0199999996
data:
first:
name: _ZWrite
second: 1
data:
first:
name: _Glossiness
second: .308999985
data:
first:
name: _BumpScale
second: 1
data:
first:
name: _OcclusionStrength
second: 1
data:
first:
name: _DetailNormalMapScale
second: 1
data:
first:
name: _UVSec
second: 0
data:
first:
name: _Mode
second: 0
data:
first:
name: _Metallic
second: .992999971
data:
first:
name: _InvFade
second: 1
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
data:
first:
name: _EmissionColor
second: {r: 0, g: 0, b: 0, a: 1}
data:
first:
name: _TintColor
second: {r: .5, g: .5, b: .5, a: .5}

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 94b30ed359ae4c74a9bb59bec7217a51
NativeFormatImporter:
userData:

View File

@ -0,0 +1,69 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: sphere180
m_Shader: {fileID: 4800000, guid: 867ec56bd96e5504a95f991314cd5706, type: 3}
m_ShaderKeywords:
- STEREO_NONE
- ALPHAPACK_NONE
m_CustomRenderQueue: -1
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _ChromaTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
data:
first:
name: Stereo
second: 0
data:
first:
name: _StereoDebug
second: 0
data:
first:
name: _ApplyGamma
second: 0
data:
first:
name: _UseYpCbCr
second: 0
data:
first:
name: AlphaPack
second: 0
data:
first:
name: Layout
second: 0
data:
first:
name: _HighQuality
second: 0
data:
first:
name: _EdgeFeather
second: .0357142873
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 0fd638029ad31c3408b8cd59c9364952
NativeFormatImporter:
userData:

View File

@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: 3d1a676d0709d10409c4c4077c89ec34
folderAsset: yes
DefaultImporter:
userData:

View File

@ -0,0 +1,99 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &157672
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 4
m_Component:
- 4: {fileID: 457672}
- 33: {fileID: 3357672}
- 65: {fileID: 6557672}
- 23: {fileID: 2357672}
- 54: {fileID: 5457672}
m_Layer: 0
m_Name: VideoCubePrefab
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &457672
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 157672}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: .200000003, y: .200000003, z: .200000003}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!23 &2357672
Renderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 157672}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 2100000, guid: f73252af48052464f99b2a221454844e, type: 2}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!33 &3357672
MeshFilter:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 157672}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!54 &5457672
Rigidbody:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 157672}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: .0500000007
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!65 &6557672
BoxCollider:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 157672}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 157672}
m_IsPrefabParent: 1
m_IsExploded: 1

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: c74b9010d80cf1a4e94966bd2c908d02
NativeFormatImporter:
userData:

View File

@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: aae37a57cfa6cfa4e875f988a341027b
folderAsset: yes
DefaultImporter:
userData:

View File

@ -0,0 +1,42 @@
using UnityEngine;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Rotates a transform, randomly changing direction and speed every few seconds
/// </summary>
[RequireComponent(typeof(Transform))]
public class AutoRotate : MonoBehaviour
{
private float x, y, z;
private float _timer;
private void Awake()
{
Randomise();
}
private void Update()
{
this.transform.Rotate(x * Time.deltaTime, y * Time.deltaTime, z * Time.deltaTime);
_timer -= Time.deltaTime;
if (_timer <= 0f)
{
Randomise();
}
}
private void Randomise()
{
float s = 32f;
x = Random.Range(-s, s);
y = Random.Range(-s, s);
z = Random.Range(-s, s);
_timer = Random.Range(5f, 10f);
}
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 86569d77391242c44834d5e07b9699f0
timeCreated: 1437820542
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,36 @@
using UnityEngine;
using RenderHeads.Media.AVProVideo;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// A demo that shows how to use scripting to load videos
/// </summary>
public class ChangeVideoExample : MonoBehaviour
{
[SerializeField]
private MediaPlayer _mediaPlayer;
public void LoadVideo(string filePath)
{
_mediaPlayer.OpenVideoFromFile(MediaPlayer.FileLocation.RelativeToStreamingAssetsFolder, filePath, true);
}
void OnGUI()
{
if (GUILayout.Button("video1"))
{
LoadVideo("video1.mp4");
}
if (GUILayout.Button("video2"))
{
LoadVideo("video2.mp4");
}
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b6f8b383d2c451d44bbf74bca375f1f1
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,22 @@
using UnityEngine;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// This component just stores description text related to a specific demo scene
/// The MediaPlayer in the scene can also be referenced to allow for scene change
/// fade-from-black to only start once the video has loaded and has a valid frame
/// </summary>
public class DemoInfo : MonoBehaviour
{
public string _title;
[Multiline]
public string _description;
public MediaPlayer _media;
}
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 10fa3ce0e1c037e449490a4f9ca3bf99
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}

View File

@ -0,0 +1,201 @@
#if !UNITY_WEBPLAYER
#if UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_EDITOR
#define AVPRO_FILESYSTEM_SUPPORT
#endif
#endif
using UnityEngine;
using System.Collections;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// A demo that shows how to extract a series of frames from the video,
/// copy them into textures, and then save them to disk as images
/// </summary>
public class FrameExtract : MonoBehaviour
{
private const int NumFrames = 8;
public MediaPlayer _mediaPlayer;
public bool _accurateSeek = false;
public int _timeoutMs = 250;
public GUISkin _skin;
public bool _asyncExtract = false;
#if AVPRO_FILESYSTEM_SUPPORT
public bool _saveToJPG = false;
private string _filenamePrefix;
#endif
private float _timeStepSeconds;
private int _frameIndex = -1;
private Texture2D _texture;
private RenderTexture _displaySheet;
void Start()
{
_mediaPlayer.Events.AddListener(OnMediaPlayerEvent);
// Create a texture to draw the thumbnails on
_displaySheet = RenderTexture.GetTemporary(Screen.width, Screen.height, 0);
_displaySheet.useMipMap = false;
#if UNITY_5_5_OR_NEWER
_displaySheet.autoGenerateMips = false;
#else
_displaySheet.generateMips = false;
#endif
_displaySheet.antiAliasing = 1;
_displaySheet.Create();
// Clear the texture
RenderTexture.active = _displaySheet;
GL.Clear(false, true, Color.black, 0f);
RenderTexture.active = null;
}
public void OnMediaPlayerEvent(MediaPlayer mp, MediaPlayerEvent.EventType et, ErrorCode errorCode)
{
switch (et)
{
case MediaPlayerEvent.EventType.MetaDataReady:
// Android platform doesn't display its first frame until poked
mp.Play();
mp.Pause();
break;
case MediaPlayerEvent.EventType.FirstFrameReady:
OnNewMediaReady();
break;
}
}
private void OnNewMediaReady()
{
IMediaInfo info = _mediaPlayer.Info;
// Create a texture the same resolution as our video
if (_texture != null)
{
Texture2D.Destroy(_texture);
_texture = null;
}
int textureWidth = info.GetVideoWidth();
int textureHeight = info.GetVideoHeight();
#if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX || UNITY_IPHONE || UNITY_IOS || UNITY_TVOS
Orientation ori = Helper.GetOrientation(_mediaPlayer.Info.GetTextureTransform());
if (ori == Orientation.Portrait || ori == Orientation.PortraitFlipped)
{
textureWidth = info.GetVideoHeight();
textureHeight = info.GetVideoWidth();
}
#endif
_texture = new Texture2D(textureWidth, textureHeight, TextureFormat.ARGB32, false);
_timeStepSeconds = (_mediaPlayer.Info.GetDurationMs() / 1000f) / (float)NumFrames;
#if AVPRO_FILESYSTEM_SUPPORT
_filenamePrefix = System.IO.Path.GetFileName(_mediaPlayer.m_VideoPath);
#endif
}
void OnDestroy()
{
if (_texture != null)
{
Texture2D.Destroy(_texture);
_texture = null;
}
if (_displaySheet != null)
{
RenderTexture.ReleaseTemporary(_displaySheet);
_displaySheet = null;
}
}
void Update()
{
if (_texture != null && _frameIndex >=0 && _frameIndex < NumFrames)
{
ExtractNextFrame();
_frameIndex++;
}
}
private void ProcessExtractedFrame(Texture2D texture)
{
#if AVPRO_FILESYSTEM_SUPPORT
// Save frame to JPG
if (_saveToJPG)
{
string filePath = _filenamePrefix + "-" + _frameIndex + ".jpg";
Debug.Log("Writing frame to file: " + filePath);
System.IO.File.WriteAllBytes(filePath, texture.EncodeToJPG());
}
#endif
// Draw frame to the thumbnail sheet texture
GL.PushMatrix();
RenderTexture.active = _displaySheet;
GL.LoadPixelMatrix(0f, _displaySheet.width, _displaySheet.height, 0f);
Rect sourceRect = new Rect(0f, 0f, 1f, 1f);
float thumbSpace = 8f;
float thumbWidth = ((float)_displaySheet.width / (float)NumFrames) - thumbSpace;
float thumbHeight = thumbWidth / ((float)texture.width / (float)texture.height);
float thumbPos = ((thumbWidth + thumbSpace) * (float)_frameIndex);
Rect destRect = new Rect(thumbPos, (_displaySheet.height / 2f) - (thumbHeight / 2f), thumbWidth, thumbHeight);
Graphics.DrawTexture(destRect, texture, sourceRect, 0, 0, 0, 0);
RenderTexture.active = null;
GL.PopMatrix();
GL.InvalidateState();
}
private void ExtractNextFrame()
{
// Extract the frame to Texture2D
float timeSeconds = _frameIndex * _timeStepSeconds;
if (!_asyncExtract)
{
_texture = _mediaPlayer.ExtractFrame(_texture, timeSeconds, _accurateSeek, _timeoutMs);
ProcessExtractedFrame(_texture);
}
else
{
_mediaPlayer.ExtractFrameAsync(_texture, ProcessExtractedFrame, timeSeconds, _accurateSeek, _timeoutMs);
}
}
void OnGUI()
{
GUI.skin = _skin;
if (_displaySheet != null)
{
GUI.DrawTexture(new Rect(0f, 0f, Screen.width, Screen.height), _displaySheet, ScaleMode.ScaleToFit, false);
}
float debugGuiScale = 4f * (Screen.height / 1080f);
GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, new Vector3(debugGuiScale, debugGuiScale, 1.0f));
GUILayout.Space(16f);
GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true), GUILayout.Width(Screen.width / debugGuiScale));
GUILayout.FlexibleSpace();
if (GUILayout.Button("Start Extracting Frames"))
{
_frameIndex = 0;
RenderTexture.active = _displaySheet;
GL.Clear(false, true, Color.black, 0f);
RenderTexture.active = null;
}
GUILayout.FlexibleSpace();
GUILayout.EndHorizontal();
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0bfe4eaf264074b43a6224bab247c269
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,57 @@
using UnityEngine;
using System.Collections.Generic;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Runs the demo for the scene that demonstrates how to map video playback to 3D models
/// Spawns and removes cubes with video mapping
/// </summary>
public class Mapping3D : MonoBehaviour
{
[SerializeField]
private GameObject _cubePrefab;
private const int MaxCubes = 48;
private const float SpawnTime = 0.25f;
private float _timer = SpawnTime;
private List<GameObject> _cubes = new List<GameObject>(32);
private void Update()
{
_timer -= Time.deltaTime;
if (_timer <= 0f)
{
_timer = SpawnTime;
SpawnCube();
if (_cubes.Count > MaxCubes)
{
RemoveCube();
}
}
}
private void SpawnCube()
{
Quaternion rotation = Quaternion.Euler(Random.Range(-180f, 180f), Random.Range(-180f, 180f), Random.Range(-180f, 180f));
float scale = Random.Range(0.1f, 0.6f);
GameObject go = (GameObject)GameObject.Instantiate(_cubePrefab, this.transform.position, rotation);
Transform t = go.GetComponent<Transform>();
t.localScale = new Vector3(scale, scale, scale);
_cubes.Add(go);
}
private void RemoveCube()
{
GameObject go = _cubes[0];
_cubes.RemoveAt(0);
Destroy(go);
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 93547b0c2f9bffb4ab4c1db3799432c1
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,153 @@
#if UNITY_4_6 || UNITY_4_7 || UNITY_4_8 || UNITY_5 || UNITY_5_4_OR_NEWER
#define UNITY_FEATURE_UGUI
#endif
using UnityEngine;
#if UNITY_FEATURE_UGUI
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// A demo that shows multiple videos being loaded and displayed at once
/// Each time a button is pressed a new video instance is added/removed
/// </summary>
public class SampleApp_Multiple : MonoBehaviour
{
[SerializeField]
private string m_videoPath = "BigBuckBunny_360p30.mp4";
private int m_NumVideosAdded = 0;
private List<DisplayUGUI> m_aAddedVideos = new List<DisplayUGUI>();
private void Update()
{
#if UNITY_ANDROID
// To handle 'back' button on Android devices
if (Input.GetKeyDown(KeyCode.Escape))
{
Application.Quit();
}
#endif
foreach( DisplayUGUI gui in m_aAddedVideos )
{
if( gui.gameObject != null && gui.gameObject.activeSelf == false &&
gui._mediaPlayer != null && gui._mediaPlayer.Control != null && ( gui._mediaPlayer.Control.IsPlaying() ) )
{
gui.gameObject.SetActive( true );
}
}
}
private void UpdateVideosLayout()
{
GameObject canvasPanel = GameObject.Find("Canvas/Panel");
RectTransform canvasRectTransform = ( canvasPanel ) ? canvasPanel.GetComponent<RectTransform>() : null;
if( canvasRectTransform )
{
Vector2 canvasSize = canvasRectTransform.sizeDelta;
Vector2 halfCanvasSize = new Vector2( canvasSize.x * 0.5f, canvasSize.y * 0.5f );
int iNumMovies = m_aAddedVideos.Count;
int iNumColRows = Mathf.CeilToInt (Mathf.Sqrt( iNumMovies ));
float fWidth = (1.0f / iNumColRows) * canvasSize.x;
float fHeight = (1.0f / iNumColRows) * canvasSize.y;
for( int i = 0; i < iNumMovies; ++i )
{
DisplayUGUI gui = m_aAddedVideos[ i ];
int x = i % iNumColRows;
int y = i / iNumColRows;
gui.rectTransform.anchoredPosition = new Vector2( ((fWidth * x) - halfCanvasSize.x), ((fHeight * -y) + halfCanvasSize.y) );
gui.rectTransform.sizeDelta = new Vector2( fWidth, fHeight );
}
}
}
public void AddVideoClicked()
{
++m_NumVideosAdded;
// New media player
GameObject newMediaPlayerGameObject = new GameObject( "AVPro MediaPlayer " + m_NumVideosAdded.ToString() );
MediaPlayer newMediaPlayer = newMediaPlayerGameObject.AddComponent<MediaPlayer>();
newMediaPlayer.m_VideoPath = m_videoPath;
newMediaPlayer.m_AutoStart = true;
newMediaPlayer.m_Loop = true;
// New uGUI object
GameObject canvasPanel = GameObject.Find("Canvas/Panel");
if( canvasPanel != null )
{
// New game object, and make it a child of the canvas panel
GameObject newGuiGameObject = new GameObject( "AVPro Video uGUI " + m_NumVideosAdded.ToString() );
newGuiGameObject.transform.parent = canvasPanel.transform;
newGuiGameObject.SetActive( false );
// Add the components
newGuiGameObject.AddComponent<RectTransform>();
newGuiGameObject.AddComponent<CanvasRenderer>();
// Add the DisplayUGUI;
DisplayUGUI newGuiObject = newGuiGameObject.AddComponent<DisplayUGUI>();
newGuiObject._mediaPlayer = newMediaPlayer;
newGuiObject._scaleMode = ScaleMode.StretchToFill;
newGuiObject.rectTransform.localScale = Vector3.one;
newGuiObject.rectTransform.pivot = new Vector2( 0.0f, 1.0f );
m_aAddedVideos.Add( newGuiObject );
// Update layout
UpdateVideosLayout();
}
}
public void RemoveVideoClicked()
{
if (m_aAddedVideos.Count > 0)
{
// Pick a random element to remove
int index = Random.Range(0, m_aAddedVideos.Count);
DisplayUGUI gui = m_aAddedVideos[index];
// Stop and destroy the MediaPlayer
if (gui._mediaPlayer != null)
{
gui._mediaPlayer.CloseVideo();
GameObject.Destroy(gui._mediaPlayer.gameObject);
gui._mediaPlayer = null;
}
// Destroy the Display object
GameObject.Destroy(gui.gameObject);
// Update variables
m_aAddedVideos.RemoveAt(index);
m_NumVideosAdded--;
}
}
void OnDestroy()
{
foreach( DisplayUGUI gui in m_aAddedVideos )
{
if( gui._mediaPlayer )
{
gui._mediaPlayer = null;
}
}
m_aAddedVideos.Clear();
}
}
}
#endif

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 7bfb0f751af2e454ba0aa66541bef1cf
timeCreated: 1448899383
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 8aa78ff7fbff0294fa1697128c7d8e57
folderAsset: yes
timeCreated: 1469695553
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,53 @@
using UnityEngine;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Small demonstration showing how to script the changing of audio tracks
/// </summary>
public class ChangeAudioTrack : MonoBehaviour
{
public MediaPlayer _mediaPlayer;
public int _trackIndex;
private bool _isQueued;
private void OnEnable()
{
_isQueued = true;
}
private void Update()
{
if (_isQueued && IsVideoLoaded())
{
DoChangeAudioTrack(_mediaPlayer, _trackIndex);
_isQueued = false;
}
}
private bool IsVideoLoaded()
{
return (_mediaPlayer != null && _mediaPlayer.Info != null && _mediaPlayer.Control.HasMetaData());
}
private static bool DoChangeAudioTrack(MediaPlayer mp, int index)
{
bool result = false;
int numAudioTracks = mp.Info.GetAudioTrackCount();
if (index >= 0 && index < numAudioTracks)
{
mp.Control.SetAudioTrack(index);
result = true;
}
else
{
Debug.LogWarning("[AVProVideo] Audio track index is out of range: " + index);
}
return result;
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 55f3edfea2233864b9c1bccbb2d187cd
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,40 @@
using UnityEngine;
using System.IO;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Demonstration of how to load from a video from a byte array.
/// NOTE: Only Windows using DirectShow API currently supports this feature.
/// </summary>
public class LoadFromBuffer : MonoBehaviour
{
#if !UNITY_WEBPLAYER
[SerializeField]
private MediaPlayer _mp = null;
[SerializeField]
private string _filename = string.Empty;
void Start()
{
if (_mp != null)
{
byte[] buffer = File.ReadAllBytes(_filename);
if (buffer != null)
{
_mp.OpenVideoFromBuffer(buffer);
}
}
System.GC.Collect();
}
#endif
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: dba2352ea33e9434792826c1a07e323a
timeCreated: 1496400369
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,61 @@
using UnityEngine;
using System.IO;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Demonstration of how to load from a video from a byte array.
/// NOTE: Only Windows using DirectShow API currently supports this feature.
/// </summary>
public class LoadFromBufferInChunks : MonoBehaviour
{
[SerializeField]
private MediaPlayer _mp = null;
[SerializeField]
private string _filename = string.Empty;
private void Start()
{
if (_mp != null)
{
int chunkSize = 512;
byte[] chunk = new byte[chunkSize];
FileStream fs = File.OpenRead(_filename);
long fileSize = fs.Length;
if (!_mp.StartOpenChunkedVideoFromBuffer((ulong)fileSize))
{
_mp.CloseVideo();
}
ulong currOffset = 0;
while (true)
{
int bytesRead = fs.Read(chunk, 0, chunkSize);
if (bytesRead > 0)
{
if (!_mp.AddChunkToVideoBuffer(chunk, currOffset, (ulong)bytesRead))
{
_mp.CloseVideo();
}
}
else break;
currOffset += (ulong)bytesRead;
}
if (!_mp.EndOpenChunkedVideoFromBuffer())
{
_mp.CloseVideo();
}
}
System.GC.Collect();
}
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 21bf5c9ec2dc6dd4e94ac5c697f87d11
timeCreated: 1521044189
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,126 @@
using UnityEngine;
using System;
using RenderHeads.Media.AVProVideo;
#if NETFX_CORE
using Windows.Storage;
using Windows.Storage.Pickers;
using Windows.Storage.Streams;
using System.Threading.Tasks;
#endif
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Demonstration of how to use StorageFiles with AVProVideo in UWP builds
/// The code is put behind NETFX_CORE macros as it is only valid in UWP
/// This example loads a video picked by the user after clicking the Pick Video File button,
/// and directly from the CameraRoll with the right app capabilities set
/// </summary>
public class NativeMediaOpen : MonoBehaviour
{
[SerializeField]
private MediaPlayer _player;
#if NETFX_CORE
private FileOpenPicker _picker;
private IRandomAccessStreamWithContentType _fileStream;
private string _fileName;
#endif
private void Start()
{
#if NETFX_CORE
_picker = new FileOpenPicker();
_picker.ViewMode = PickerViewMode.Thumbnail;
_picker.SuggestedStartLocation = PickerLocationId.VideosLibrary;
_picker.FileTypeFilter.Add(".mp4");
_picker.FileTypeFilter.Add(".m4v");
_picker.FileTypeFilter.Add(".mkv");
_picker.FileTypeFilter.Add(".avi");
_picker.FileTypeFilter.Add(".mp3");
_picker.FileTypeFilter.Add(".aac");
#endif
}
#if NETFX_CORE
private void StartFilePicker()
{
// Loads file on UI thread (note you can also use PickSingleFileAndContinue for better compatibility)
UnityEngine.WSA.Application.InvokeOnUIThread(async () =>
{
StorageFile file = await _picker.PickSingleFileAsync();
if (file != null)
{
await LoadFile(file);
}
}, true);
}
private void StartDirectLoad(StorageFolder folder, string relativeFilePath)
{
UnityEngine.WSA.Application.InvokeOnUIThread(async () =>
{
// NOTE: In order to access Camera Roll you need to set permission in the capabilities manifest
StorageFolder f = KnownFolders.CameraRoll;
// TODO: catch file not found exceptions
StorageFile file = await folder.GetFileAsync(relativeFilePath);
if (file != null)
{
await LoadFile(file);
}
}, true);
}
private async Task<bool> LoadFile(StorageFile file)
{
if (file != null)
{
_fileStream = await file.OpenReadAsync();
if (_fileStream != null)
{
_fileName = file.Name;
}
}
return true;
}
#endif
private void Update()
{
#if NETFX_CORE
// The actual loading of the video must happen in the Unity thread, so we do it here
if (_fileStream != null)
{
_player.OpenVideoFromStream(_fileStream, _fileName, true);
_fileStream = null;
}
#endif
}
private void OnGUI()
{
if (GUILayout.Button("Pick Video File"))
{
#if NETFX_CORE
StartFilePicker();
#endif
}
if (GUILayout.Button("Load 'myvideo.mp4' From Camera Roll"))
{
#if NETFX_CORE
StartDirectLoad(KnownFolders.CameraRoll, "myvideo.mp4");
#endif
}
if (_player != null && !string.IsNullOrEmpty(_player.m_VideoPath))
{
GUILayout.Label("Currently Playing: " + _player.m_VideoPath);
}
}
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: ca06add1dfe7e5d4b96cc44874168d80
timeCreated: 1493735708
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,139 @@
using UnityEngine;
using RenderHeads.Media.AVProVideo;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Small demonstration of how you might synchronise multiple video playback
/// Ideally the videos should be encoded with as many key-frames (I-frames) as possible
/// </summary>
public class PlaybackSync : MonoBehaviour
{
private enum State
{
Loading,
Playing,
Finished,
}
public MediaPlayer _masterPlayer;
public MediaPlayer[] _slavePlayers;
public float _toleranceMs = 30f;
public bool _matchVideo = true;
public bool _muteSlaves = true;
private State _state = State.Loading;
void Start()
{
// Setup the slaves
for (int i = 0; i < _slavePlayers.Length; i++)
{
_slavePlayers[i].m_Muted = true;
if (_matchVideo)
{
_slavePlayers[i].OpenVideoFromFile(_masterPlayer.m_VideoLocation, _masterPlayer.m_VideoPath, false);
}
}
}
void LateUpdate()
{
if (_state == State.Loading)
{
// Finished loading?
if (IsAllVideosLoaded())
{
// Play the videos
_masterPlayer.Play();
for (int i = 0; i < _slavePlayers.Length; i++)
{
_slavePlayers[i].Play();
}
_state = State.Playing;
}
}
if (_state == State.Finished)
{
Debug.Log("Do Something");
}
else if (_state == State.Playing)
{
if (_masterPlayer.Control.IsPlaying())
{
// Keep the slaves synced
float masterTime = _masterPlayer.Control.GetCurrentTimeMs();
for (int i = 0; i < _slavePlayers.Length; i++)
{
MediaPlayer slave = _slavePlayers[i];
float slaveTime = slave.Control.GetCurrentTimeMs();
float deltaTime = Mathf.Abs(masterTime - slaveTime);
if (deltaTime > _toleranceMs)
{
slave.Control.SeekFast(masterTime + (_toleranceMs * 0.5f)); // Add a bit to allow for the delay in playback start
if (slave.Control.IsPaused())
{
slave.Play();
}
}
}
}
else
{
// Pause slaves
for (int i = 0; i < _slavePlayers.Length; i++)
{
MediaPlayer slave = _slavePlayers[i];
slave.Pause();
}
}
// Finished?
if (IsPlaybackFinished(_masterPlayer))
{
_state = State.Finished;
}
}
}
private bool IsAllVideosLoaded()
{
bool result = false;
if (IsVideoLoaded(_masterPlayer))
{
result = true;
for (int i = 0; i < _slavePlayers.Length; i++)
{
if (!IsVideoLoaded(_slavePlayers[i]))
{
result = false;
break;
}
}
}
return result;
}
private static bool IsVideoLoaded(MediaPlayer player)
{
return (player != null && player.Control != null && player.Control.HasMetaData() && player.Control.CanPlay() && player.TextureProducer.GetTextureFrameCount() > 0);
}
private static bool IsPlaybackFinished(MediaPlayer player)
{
bool result = false;
if (player != null && player.Control != null)
{
if (player.Control.IsFinished())
{
result = true;
}
}
return result;
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 167608c5b0b2ec644853b23d9185fedc
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,77 @@
using UnityEngine;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Small demonstration of how you could script the playback of a section of video using a start and end point
/// </summary>
public class StartEndPoint : MonoBehaviour
{
public MediaPlayer _mediaPlayer;
public float _startPointSeconds;
public float _endPointSeconds;
public bool _loop;
[Tooltip("If looping is enabled, this is the time the video rewinds to when it reaches the end point")]
public float _startLoopSeconds;
private bool _isStartQueued;
void OnEnable()
{
_isStartQueued = true;
}
void Update()
{
if (IsVideoLoaded(_mediaPlayer))
{
if (_isStartQueued)
{
DoStart(_mediaPlayer, _startPointSeconds);
_isStartQueued = false;
}
else
{
if (!_loop)
{
DoCheckEnd(_mediaPlayer, _endPointSeconds);
}
else
{
DoCheckLoop(_mediaPlayer, _endPointSeconds, _startLoopSeconds);
}
}
}
}
private static bool IsVideoLoaded(MediaPlayer mp)
{
return (mp != null && mp.Control != null && mp.Control.HasMetaData());
}
private static void DoStart(MediaPlayer mp, float positionSeconds)
{
mp.Control.Seek(positionSeconds * 1000f);
mp.Play();
}
private static void DoCheckEnd(MediaPlayer mp, float positionSeconds)
{
if (mp.Control.IsPlaying() && (mp.Control.GetCurrentTimeMs() >= positionSeconds * 1000f))
{
mp.Pause();
}
}
private static void DoCheckLoop(MediaPlayer mp, float positionSeconds, float positionLoop)
{
if (mp.Control.IsPlaying() && (mp.Control.GetCurrentTimeMs() >= positionSeconds * 1000f))
{
mp.Control.Seek(positionLoop * 1000f);
}
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4ad202235625f9f489f392aa40be5513
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,72 @@
using UnityEngine;
using RenderHeads.Media.AVProVideo;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Causes a video to play when the trigger collider is entered and rewind+pause when it is exited
/// Audio is faded up and down too
/// </summary>
public class VideoTrigger : MonoBehaviour
{
[SerializeField]
private MediaPlayer _mediaPlayer = null;
[SerializeField]
private float _fadeTimeMs = 500f;
private float _fade;
private float _fadeDirection;
private void OnTriggerEnter(Collider other)
{
if (_mediaPlayer != null)
{
_mediaPlayer.Play();
_fadeDirection = 1f;
}
}
private void OnTriggerExit(Collider other)
{
if (_mediaPlayer != null)
{
_fadeDirection = -1f;
}
}
private void Update()
{
if (_fadeDirection != 0f)
{
// Fade the value
float speed = 1000 / _fadeTimeMs;
_fade += Time.deltaTime * _fadeDirection * speed;
if (_fade <= 0f)
{
// Complete the fade down
_mediaPlayer.Rewind(true);
_fadeDirection = 0f;
}
else if (_fade >= 1f)
{
// Complete the fade up
_fadeDirection = 0f;
}
_fade = Mathf.Clamp01(_fade);
// Set the volume
if (_mediaPlayer != null && _mediaPlayer.Control != null)
{
_mediaPlayer.Control.SetVolume(_fade);
}
}
}
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: cd61ad6ed525a7243896df42a93c2a98
timeCreated: 1488843802
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,363 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using RenderHeads.Media.AVProVideo;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// Simple video player GUI built using IMGUI
/// Shows how a simpel video play can be created with scripting
/// Includes support for fading to black when a new video is loaded
/// </summary>
public class SimpleController : MonoBehaviour
{
public string _folder = "AVProVideoSamples/";
public string[] _filenames = new string[] { "SampleSphere.mp4", "BigBuckBunny_360p30.mp3", "BigBuckBunny_720p30.mp4" };
public string[] _streams;
public MediaPlayer _mediaPlayer;
public DisplayIMGUI _display;
public GUISkin _guiSkin;
private int _width;
private int _height;
private float _durationSeconds;
public bool _useFading = true;
private Queue<string> _eventLog = new Queue<string>(8);
private float _eventTimer = 1f;
private MediaPlayer.FileLocation _nextVideoLocation;
private string _nextVideoPath;
//private bool _seekDragStarted;
//private bool _seekDragWasPlaying;
private void Start()
{
_mediaPlayer.Events.AddListener(OnMediaPlayerEvent);
}
// Callback function to handle events
public void OnMediaPlayerEvent(MediaPlayer mp, MediaPlayerEvent.EventType et, ErrorCode errorCode)
{
switch (et)
{
case MediaPlayerEvent.EventType.ReadyToPlay:
break;
case MediaPlayerEvent.EventType.Started:
break;
case MediaPlayerEvent.EventType.FirstFrameReady:
break;
case MediaPlayerEvent.EventType.MetaDataReady:
GatherProperties();
break;
case MediaPlayerEvent.EventType.FinishedPlaying:
break;
}
AddEvent(et);
}
private void AddEvent(MediaPlayerEvent.EventType et)
{
Debug.Log("[SimpleController] Event: " + et.ToString());
_eventLog.Enqueue(et.ToString());
if (_eventLog.Count > 5)
{
_eventLog.Dequeue();
_eventTimer = 1f;
}
}
private void GatherProperties()
{
if (_mediaPlayer != null && _mediaPlayer.Info != null)
{
_width = _mediaPlayer.Info.GetVideoWidth();
_height = _mediaPlayer.Info.GetVideoHeight();
_durationSeconds = _mediaPlayer.Info.GetDurationMs() / 1000f;
}
}
private void Update()
{
if (!_useFading)
{
if (_display != null && _display._mediaPlayer != null && _display._mediaPlayer.Control != null)
{
_display._color = Color.white;
_display._mediaPlayer.Control.SetVolume(1f);
}
}
if (_eventLog != null && _eventLog.Count > 0)
{
_eventTimer -= Time.deltaTime;
if (_eventTimer < 0f)
{
_eventLog.Dequeue();
_eventTimer = 1f;
}
}
}
private void LoadVideo(string filePath, bool url = false)
{
// Set the video file name and to load.
if (!url)
_nextVideoLocation = MediaPlayer.FileLocation.RelativeToStreamingAssetsFolder;
else
_nextVideoLocation = MediaPlayer.FileLocation.AbsolutePathOrURL;
_nextVideoPath = filePath;
// IF we're not using fading then load the video immediately
if (!_useFading)
{
// Load the video
if (!_mediaPlayer.OpenVideoFromFile(_nextVideoLocation, _nextVideoPath, _mediaPlayer.m_AutoStart))
{
Debug.LogError("Failed to open video!");
}
}
else
{
StartCoroutine("LoadVideoWithFading");
}
}
private static bool VideoIsReady(MediaPlayer mp)
{
return (mp != null && mp.TextureProducer != null && mp.TextureProducer.GetTextureFrameCount() <= 0);
}
private static bool AudioIsReady(MediaPlayer mp)
{
return (mp != null && mp.Control != null && mp.Control.CanPlay() && mp.Info.HasAudio() && !mp.Info.HasVideo());
}
private IEnumerator LoadVideoWithFading()
{
const float FadeDuration = 0.25f;
float fade = FadeDuration;
// Fade down
while (fade > 0f && Application.isPlaying)
{
fade -= Time.deltaTime;
fade = Mathf.Clamp(fade, 0f, FadeDuration);
_display._color = new Color(1f, 1f, 1f, fade / FadeDuration);
_display._mediaPlayer.Control.SetVolume(fade / FadeDuration);
yield return null;
}
// Wait 3 frames for display object to update
yield return new WaitForEndOfFrame();
yield return new WaitForEndOfFrame();
yield return new WaitForEndOfFrame();
// Load the video
if (Application.isPlaying)
{
if (!_mediaPlayer.OpenVideoFromFile(_nextVideoLocation, _nextVideoPath, _mediaPlayer.m_AutoStart))
{
Debug.LogError("Failed to open video!");
}
else
{
// Wait for the first frame to come through (could also use events for this)
while (Application.isPlaying && (VideoIsReady(_mediaPlayer) || AudioIsReady(_mediaPlayer)))
{
yield return null;
}
// Wait 3 frames for display object to update
yield return new WaitForEndOfFrame();
yield return new WaitForEndOfFrame();
yield return new WaitForEndOfFrame();
}
}
// Fade up
while (fade < FadeDuration && Application.isPlaying)
{
fade += Time.deltaTime;
fade = Mathf.Clamp(fade, 0f, FadeDuration);
_display._color = new Color(1f, 1f, 1f, fade / FadeDuration);
_display._mediaPlayer.Control.SetVolume(fade / FadeDuration);
yield return null;
}
}
void OnGUI()
{
if (_mediaPlayer == null)
{
return;
}
// Make sure we're set to render after the background IMGUI
GUI.depth = -10;
// Apply skin
if (_guiSkin != null)
{
GUI.skin = _guiSkin;
}
// Make sure the UI scales with screen resolution
const float UIWidth = 1920f / 2.0f;
const float UIHeight = 1080f / 2.0f;
GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, new Vector3(Screen.width / UIWidth, Screen.height / UIHeight, 1f));
GUILayout.BeginVertical("box");
if (_mediaPlayer.Control != null)
{
// Display properties
GUILayout.Label("Loaded: " + _mediaPlayer.m_VideoPath);
GUILayout.Label(string.Format("Size: {0}x{1} FPS: {3} Duration: {2}ms", _width, _height, _mediaPlayer.Info.GetDurationMs(), _mediaPlayer.Info.GetVideoFrameRate().ToString("F2")));
GUILayout.Label("Updates: " + _mediaPlayer.TextureProducer.GetTextureFrameCount() + " Rate: " + _mediaPlayer.Info.GetVideoDisplayRate().ToString("F1"));
GUILayout.BeginHorizontal();
// Fade option
_useFading = GUILayout.Toggle(_useFading, "Fade to Black During Loading");
// Auto play
_mediaPlayer.m_AutoStart = GUILayout.Toggle(_mediaPlayer.m_AutoStart, "Auto Play After Load");
// Looping
bool loopStatus = _mediaPlayer.m_Loop;
bool newLoopStatus = GUILayout.Toggle(loopStatus, "Loop");
if (newLoopStatus != loopStatus)
{
_mediaPlayer.m_Loop = newLoopStatus;
_mediaPlayer.Control.SetLooping(newLoopStatus);
}
GUILayout.EndHorizontal();
// Timeline scrubbing (note as use int as WebGL has float == precision issues)
int currentTime = (int)_mediaPlayer.Control.GetCurrentTimeMs();
int newTime = (int)GUILayout.HorizontalSlider(currentTime, 0f, _durationSeconds * 1000f);
Rect timeSliderRect = GUILayoutUtility.GetLastRect();
float thumbWidth = GUI.skin.horizontalSliderThumb.CalcSize(GUIContent.none).x;
// Draw buffering indication
Rect bufferingRect = timeSliderRect;
GUI.color = Color.green;
bufferingRect.xMin += thumbWidth;
bufferingRect.y = bufferingRect.yMax - 4;
bufferingRect.width -= thumbWidth * 1f;
bufferingRect.width *= _mediaPlayer.Control.GetBufferingProgress();
bufferingRect.height = 4;
GUI.DrawTexture(bufferingRect, Texture2D.whiteTexture, ScaleMode.StretchToFill);
GUI.color = Color.green;
int timeRangeCount = _mediaPlayer.Control.GetBufferedTimeRangeCount();
for (int i = 0; i < timeRangeCount; i++)
{
float startTimeMs = 0f;
float endTimeMs = 0f;
if (_mediaPlayer.Control.GetBufferedTimeRange(i, ref startTimeMs, ref endTimeMs))
{
bufferingRect.xMin = thumbWidth + timeSliderRect.x + (timeSliderRect.width - thumbWidth * 1f) * (startTimeMs / (_durationSeconds * 1000f));
bufferingRect.xMax = thumbWidth + timeSliderRect.x + (timeSliderRect.width - thumbWidth * 1f) * (endTimeMs / (_durationSeconds * 1000f));
GUI.DrawTexture(bufferingRect, Texture2D.whiteTexture, ScaleMode.StretchToFill);
}
}
GUI.color = Color.white;
// Handle possible slider move
if (newTime != currentTime)
{
_mediaPlayer.Control.Seek((float)newTime);
}
if (!_mediaPlayer.Control.IsPlaying())
{
if (GUILayout.Button("Play"))
{
_mediaPlayer.Control.Play();
}
}
else
{
if (GUILayout.Button("Pause"))
{
_mediaPlayer.Control.Pause();
}
}
// Audio tracks
GUILayout.BeginHorizontal();
int numAudioTracks = _mediaPlayer.Info.GetAudioTrackCount();
int selectedTrackIndex = _mediaPlayer.Control.GetCurrentAudioTrack();
for (int i = 0; i < numAudioTracks; i++)
{
if (i == selectedTrackIndex)
{
GUI.color = Color.green;
}
if (GUILayout.Button("Audio Track #" + (i + 1)))
{
_mediaPlayer.Control.SetAudioTrack(i);
}
GUI.color = Color.white;
}
GUILayout.EndHorizontal();
}
GUILayout.Label("Select a new file to play:");
// Display a grid of buttons containing the file names of videos to play
int newSelection = GUILayout.SelectionGrid(-1, _filenames, 3);
if (newSelection >= 0)
{
LoadVideo(System.IO.Path.Combine(_folder, _filenames[newSelection]));
}
GUILayout.Space(8f);
GUILayout.Label("Select a new stream to play:");
// Display a grid of buttons containing the file names of videos to play
int newSteam = GUILayout.SelectionGrid(-1, _streams, 1);
if (newSteam >= 0)
{
LoadVideo(_streams[newSteam], true);
}
GUILayout.Space(8f);
GUILayout.Label("Recent Events: ");
GUILayout.BeginVertical("box");
int eventIndex = 0;
foreach (string eventString in _eventLog)
{
GUI.color = Color.white;
if (eventIndex == 0)
{
GUI.color = new Color(1f, 1f, 1f, _eventTimer);
}
GUILayout.Label(eventString);
eventIndex++;
}
GUILayout.EndVertical();
GUI.color = Color.white;
GUILayout.EndVertical();
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f87a8f5cee90ffd448fbb0291362860d
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,110 @@
#if UNITY_5_4_OR_NEWER || (UNITY_5 && !UNITY_5_0 && !UNITY_5_1 && !UNITY_5_2 && !UNITY_5_3_0 && !UNITY_5_3_1 && !UNITY_5_3_2)
#define UNITY_HAS_VRCLASS
#endif
using UnityEngine;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// A demo for playing back 360 video on a mesh, handles rotation of the main camera
/// Supports rotation by VR device, gyroscope or mouse
/// </summary>
public class SphereDemo : MonoBehaviour
{
#pragma warning disable 0414 // suppress value not used warning
[SerializeField]
private bool _allowRecenter = false;
[SerializeField]
private bool _allowVrToggle = false;
[SerializeField]
private bool _lockPitch = false;
#pragma warning restore 0414 // restore value not used warning
private float _spinX;
private float _spinY;
private void Start()
{
#if UNITY_HAS_VRCLASS
if (UnityEngine.XR.XRDevice.isPresent)
{
return;
}
#endif
if (SystemInfo.supportsGyroscope)
{
Input.gyro.enabled = true;
this.transform.parent.Rotate(new Vector3(90f, 0f, 0f));
}
}
private void OnDestroy()
{
if (SystemInfo.supportsGyroscope)
{
Input.gyro.enabled = false;
}
}
void Update()
{
#if UNITY_HAS_VRCLASS
if (UnityEngine.XR.XRDevice.isPresent)
{
// Mouse click translates to gear VR touch to reset view
if (_allowRecenter && (Input.GetMouseButtonDown(0) || Input.GetKeyDown(KeyCode.Space)))
{
UnityEngine.XR.InputTracking.Recenter();
}
#if UNITY_EDITOR || UNITY_STANDALONE_WIN
if (_allowVrToggle && Input.GetKeyDown(KeyCode.V))
{
UnityEngine.XR.XRSettings.enabled = !UnityEngine.XR.XRSettings.enabled;
}
#endif
}
else
#endif
{
if (SystemInfo.supportsGyroscope)
{
// Invert the z and w of the gyro attitude
this.transform.localRotation = new Quaternion(Input.gyro.attitude.x, Input.gyro.attitude.y, -Input.gyro.attitude.z, -Input.gyro.attitude.w);
}
// Also rotate from mouse / touch input
else
{
if (Input.GetMouseButton(0))
{
float h = 40.0f * -Input.GetAxis("Mouse X") * Time.deltaTime;
float v = 0f;
if (!_lockPitch)
{
v = 40.0f * Input.GetAxis("Mouse Y") * Time.deltaTime;
}
h = Mathf.Clamp(h, -0.5f, 0.5f);
v = Mathf.Clamp(v, -0.5f, 0.5f);
_spinX += h;
_spinY += v;
}
if (!Mathf.Approximately(_spinX, 0f) || !Mathf.Approximately(_spinY, 0f))
{
this.transform.Rotate(Vector3.up, _spinX);
this.transform.Rotate(Vector3.right, _spinY);
_spinX = Mathf.MoveTowards(_spinX, 0f, 5f * Time.deltaTime);
_spinY = Mathf.MoveTowards(_spinY, 0f, 5f * Time.deltaTime);
}
}
}
}
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9d7efb037b8363242b73fe9664adb7f8
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,380 @@
#if UNITY_4_6 || UNITY_4_7 || UNITY_4_8 || UNITY_5 || UNITY_5_4_OR_NEWER
#define UNITY_FEATURE_UGUI
#endif
using UnityEngine;
#if UNITY_FEATURE_UGUI
using UnityEngine.UI;
using System.Collections;
using RenderHeads.Media.AVProVideo;
//-----------------------------------------------------------------------------
// Copyright 2015-2018 RenderHeads Ltd. All rights reserverd.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Demos
{
/// <summary>
/// A demo of a simple video player using uGUI for display
/// Uses two MediaPlayer components, with one displaying the current video
/// while the other loads the next video. MediaPlayers are then swapped
/// once the video is loaded and has a frame available for display.
/// This gives a more seamless display than simply using a single MediaPlayer
/// as its texture will be destroyed when it loads a new video
/// </summary>
public class VCR : MonoBehaviour
{
public MediaPlayer _mediaPlayer;
public MediaPlayer _mediaPlayerB;
public DisplayUGUI _mediaDisplay;
public RectTransform _bufferedSliderRect;
public Slider _videoSeekSlider;
private float _setVideoSeekSliderValue;
private bool _wasPlayingOnScrub;
public Slider _audioVolumeSlider;
private float _setAudioVolumeSliderValue;
public Toggle _AutoStartToggle;
public Toggle _MuteToggle;
public MediaPlayer.FileLocation _location = MediaPlayer.FileLocation.RelativeToStreamingAssetsFolder;
public string _folder = "AVProVideoDemos/";
public string[] _videoFiles = { "BigBuckBunny_720p30.mp4", "SampleSphere.mp4" };
private int _VideoIndex = 0;
private Image _bufferedSliderImage;
private MediaPlayer _loadingPlayer;
public MediaPlayer PlayingPlayer
{
get
{
if (LoadingPlayer == _mediaPlayer)
{
return _mediaPlayerB;
}
return _mediaPlayer;
}
}
public MediaPlayer LoadingPlayer
{
get
{
return _loadingPlayer;
}
}
private void SwapPlayers()
{
// Pause the previously playing video
PlayingPlayer.Control.Pause();
// Swap the videos
if (LoadingPlayer == _mediaPlayer)
{
_loadingPlayer = _mediaPlayerB;
}
else
{
_loadingPlayer = _mediaPlayer;
}
// Change the displaying video
_mediaDisplay.CurrentMediaPlayer = PlayingPlayer;
}
public void OnOpenVideoFile()
{
LoadingPlayer.m_VideoPath = System.IO.Path.Combine(_folder, _videoFiles[_VideoIndex]);
_VideoIndex = (_VideoIndex + 1) % (_videoFiles.Length);
if (string.IsNullOrEmpty(LoadingPlayer.m_VideoPath))
{
LoadingPlayer.CloseVideo();
_VideoIndex = 0;
}
else
{
LoadingPlayer.OpenVideoFromFile(_location, LoadingPlayer.m_VideoPath, _AutoStartToggle.isOn);
// SetButtonEnabled( "PlayButton", !_mediaPlayer.m_AutoStart );
// SetButtonEnabled( "PauseButton", _mediaPlayer.m_AutoStart );
}
if (_bufferedSliderRect != null)
{
_bufferedSliderImage = _bufferedSliderRect.GetComponent<Image>();
}
}
public void OnAutoStartChange()
{
if(PlayingPlayer &&
_AutoStartToggle && _AutoStartToggle.enabled &&
PlayingPlayer.m_AutoStart != _AutoStartToggle.isOn )
{
PlayingPlayer.m_AutoStart = _AutoStartToggle.isOn;
}
if (LoadingPlayer &&
_AutoStartToggle && _AutoStartToggle.enabled &&
LoadingPlayer.m_AutoStart != _AutoStartToggle.isOn)
{
LoadingPlayer.m_AutoStart = _AutoStartToggle.isOn;
}
}
public void OnMuteChange()
{
if (PlayingPlayer)
{
PlayingPlayer.Control.MuteAudio(_MuteToggle.isOn);
}
if (LoadingPlayer)
{
LoadingPlayer.Control.MuteAudio(_MuteToggle.isOn);
}
}
public void OnPlayButton()
{
if(PlayingPlayer)
{
PlayingPlayer.Control.Play();
// SetButtonEnabled( "PlayButton", false );
// SetButtonEnabled( "PauseButton", true );
}
}
public void OnPauseButton()
{
if(PlayingPlayer)
{
PlayingPlayer.Control.Pause();
// SetButtonEnabled( "PauseButton", false );
// SetButtonEnabled( "PlayButton", true );
}
}
public void OnVideoSeekSlider()
{
if (PlayingPlayer && _videoSeekSlider && _videoSeekSlider.value != _setVideoSeekSliderValue)
{
PlayingPlayer.Control.Seek(_videoSeekSlider.value * PlayingPlayer.Info.GetDurationMs());
}
}
public void OnVideoSliderDown()
{
if(PlayingPlayer)
{
_wasPlayingOnScrub = PlayingPlayer.Control.IsPlaying();
if( _wasPlayingOnScrub )
{
PlayingPlayer.Control.Pause();
// SetButtonEnabled( "PauseButton", false );
// SetButtonEnabled( "PlayButton", true );
}
OnVideoSeekSlider();
}
}
public void OnVideoSliderUp()
{
if(PlayingPlayer && _wasPlayingOnScrub )
{
PlayingPlayer.Control.Play();
_wasPlayingOnScrub = false;
// SetButtonEnabled( "PlayButton", false );
// SetButtonEnabled( "PauseButton", true );
}
}
public void OnAudioVolumeSlider()
{
if (PlayingPlayer && _audioVolumeSlider && _audioVolumeSlider.value != _setAudioVolumeSliderValue)
{
PlayingPlayer.Control.SetVolume(_audioVolumeSlider.value);
}
if (LoadingPlayer && _audioVolumeSlider && _audioVolumeSlider.value != _setAudioVolumeSliderValue)
{
LoadingPlayer.Control.SetVolume(_audioVolumeSlider.value);
}
}
// public void OnMuteAudioButton()
// {
// if( _mediaPlayer )
// {
// _mediaPlayer.Control.MuteAudio( true );
// SetButtonEnabled( "MuteButton", false );
// SetButtonEnabled( "UnmuteButton", true );
// }
// }
// public void OnUnmuteAudioButton()
// {
// if( _mediaPlayer )
// {
// _mediaPlayer.Control.MuteAudio( false );
// SetButtonEnabled( "UnmuteButton", false );
// SetButtonEnabled( "MuteButton", true );
// }
// }
public void OnRewindButton()
{
if(PlayingPlayer)
{
PlayingPlayer.Control.Rewind();
}
}
private void Awake()
{
_loadingPlayer = _mediaPlayerB;
}
void Start()
{
if(PlayingPlayer)
{
PlayingPlayer.Events.AddListener(OnVideoEvent);
if (LoadingPlayer)
{
LoadingPlayer.Events.AddListener(OnVideoEvent);
}
if ( _audioVolumeSlider )
{
// Volume
if (PlayingPlayer.Control != null)
{
float volume = PlayingPlayer.Control.GetVolume();
_setAudioVolumeSliderValue = volume;
_audioVolumeSlider.value = volume;
}
}
// Auto start toggle
_AutoStartToggle.isOn = PlayingPlayer.m_AutoStart;
if(PlayingPlayer.m_AutoOpen )
{
// RemoveOpenVideoButton();
// SetButtonEnabled( "PlayButton", !_mediaPlayer.m_AutoStart );
// SetButtonEnabled( "PauseButton", _mediaPlayer.m_AutoStart );
}
else
{
// SetButtonEnabled( "PlayButton", false );
// SetButtonEnabled( "PauseButton", false );
}
// SetButtonEnabled( "MuteButton", !_mediaPlayer.m_Muted );
// SetButtonEnabled( "UnmuteButton", _mediaPlayer.m_Muted );
OnOpenVideoFile();
}
}
void Update()
{
if (PlayingPlayer && PlayingPlayer.Info != null && PlayingPlayer.Info.GetDurationMs() > 0f)
{
float time = PlayingPlayer.Control.GetCurrentTimeMs();
float duration = PlayingPlayer.Info.GetDurationMs();
float d = Mathf.Clamp(time / duration, 0.0f, 1.0f);
// Debug.Log(string.Format("time: {0}, duration: {1}, d: {2}", time, duration, d));
_setVideoSeekSliderValue = d;
_videoSeekSlider.value = d;
if (_bufferedSliderRect != null)
{
float t1 = 0f;
float t2 = PlayingPlayer.Control.GetBufferingProgress();
if (t2 <= 0f)
{
if (PlayingPlayer.Control.GetBufferedTimeRangeCount() > 0)
{
PlayingPlayer.Control.GetBufferedTimeRange(0, ref t1, ref t2);
t1 /= PlayingPlayer.Info.GetDurationMs();
t2 /= PlayingPlayer.Info.GetDurationMs();
}
}
Vector2 anchorMin = Vector2.zero;
Vector2 anchorMax = Vector2.one;
if (_bufferedSliderImage != null &&
_bufferedSliderImage.type == Image.Type.Filled)
{
_bufferedSliderImage.fillAmount = d;
}
else
{
anchorMin[0] = t1;
anchorMax[0] = t2;
}
_bufferedSliderRect.anchorMin = anchorMin;
_bufferedSliderRect.anchorMax = anchorMax;
}
}
}
// Callback function to handle events
public void OnVideoEvent(MediaPlayer mp, MediaPlayerEvent.EventType et, ErrorCode errorCode)
{
switch (et)
{
case MediaPlayerEvent.EventType.ReadyToPlay:
break;
case MediaPlayerEvent.EventType.Started:
break;
case MediaPlayerEvent.EventType.FirstFrameReady:
SwapPlayers();
break;
case MediaPlayerEvent.EventType.FinishedPlaying:
break;
}
Debug.Log("Event: " + et.ToString());
}
// private void SetButtonEnabled( string objectName, bool bEnabled )
// {
// Button button = GameObject.Find( objectName ).GetComponent<Button>();
// if( button )
// {
// button.enabled = bEnabled;
// button.GetComponentInChildren<CanvasRenderer>().SetAlpha( bEnabled ? 1.0f : 0.4f );
// button.GetComponentInChildren<Text>().color = Color.clear;
// }
// }
// private void RemoveOpenVideoButton()
// {
// Button openVideoButton = GameObject.Find( "OpenVideoButton" ).GetComponent<Button>();
// if( openVideoButton )
// {
// openVideoButton.enabled = false;
// openVideoButton.GetComponentInChildren<CanvasRenderer>().SetAlpha( 0.0f );
// openVideoButton.GetComponentInChildren<Text>().color = Color.clear;
// }
//
// if( _AutoStartToggle )
// {
// _AutoStartToggle.enabled = false;
// _AutoStartToggle.isOn = false;
// _AutoStartToggle.GetComponentInChildren<CanvasRenderer>().SetAlpha( 0.0f );
// _AutoStartToggle.GetComponentInChildren<Text>().color = Color.clear;
// _AutoStartToggle.GetComponentInChildren<Image>().enabled = false;
// _AutoStartToggle.GetComponentInChildren<Image>().color = Color.clear;
// }
// }
}
}
#endif

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: bdb8b60922708534498e2539232f026c
timeCreated: 1438729098
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: bb52e262d07b2d44d867f77a1be49439
folderAsset: yes
DefaultImporter:
userData:

View File

@ -0,0 +1,52 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: cube360
m_Shader: {fileID: 4800000, guid: 1ca6555d94ddb204c87e9fe549085b3c, type: 3}
m_ShaderKeywords:
- STEREO_NONE
m_CustomRenderQueue: -1
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
data:
first:
name: _ChromaTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
data:
first:
name: Stereo
second: 0
data:
first:
name: _StereoDebug
second: 0
data:
first:
name: _ApplyGamma
second: 0
data:
first:
name: _UseYpCbCr
second: 0
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 528f5620ff3f26b428baf78fbf6ed558
NativeFormatImporter:
userData:

View File

@ -0,0 +1,28 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: sphere360
m_Shader: {fileID: 4800000, guid: 46b84ca7ab6291e4fb6c57ac48d01e8f, type: 3}
m_ShaderKeywords: []
m_CustomRenderQueue: -1
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 17b8b08ed638ac04a9e726c6ec0cea35
NativeFormatImporter:
userData:

Some files were not shown because too many files have changed in this diff Show More