Skip to content

Commit

Permalink
added auto load & play feature to player
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Visser committed Aug 15, 2014
1 parent e6aa349 commit 8dc8538
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 186 deletions.
212 changes: 58 additions & 154 deletions Assets/Scenes/TestScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,50 @@ NavMeshSettings:
widthInaccuracy: 16.666666
heightInaccuracy: 10
m_NavMesh: {fileID: 0}
--- !u!1001 &557827785
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_RootGameObject: {fileID: 1926965186}
m_IsPrefabParent: 0
m_IsExploded: 1
--- !u!1 &920936955
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -116,8 +160,8 @@ Transform:
--- !u!1 &1323473098
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 100002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_PrefabInternal: {fileID: 1642048048}
m_PrefabParentObject: {fileID: 100000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_PrefabInternal: {fileID: 557827785}
serializedVersion: 4
m_Component:
- 4: {fileID: 1323473099}
Expand All @@ -132,8 +176,8 @@ GameObject:
--- !u!4 &1323473099
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_PrefabInternal: {fileID: 1642048048}
m_PrefabParentObject: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_PrefabInternal: {fileID: 557827785}
m_GameObject: {fileID: 1323473098}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -2.21174788, y: -1.965734, z: 7.99403429}
Expand All @@ -144,9 +188,9 @@ Transform:
--- !u!114 &1323473100
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11400002, guid: a56c9212e7c4e44f78b1f162b9feffdb,
m_PrefabParentObject: {fileID: 11400000, guid: a56c9212e7c4e44f78b1f162b9feffdb,
type: 2}
m_PrefabInternal: {fileID: 1642048048}
m_PrefabInternal: {fileID: 557827785}
m_GameObject: {fileID: 1323473098}
m_Enabled: 1
m_EditorHideFlags: 0
Expand Down Expand Up @@ -420,153 +464,11 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1001 &1642048048
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_RootGameObject: {fileID: 1926965186}
m_IsPrefabParent: 0
m_IsExploded: 1
--- !u!1 &1914169999
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1914170002}
- 82: {fileID: 1914170001}
- 114: {fileID: 1914170000}
m_Layer: 0
m_Name: SoundCloudService
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1914170000
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1914169999}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9e103450920dd4d42a0e45c7517c32dd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!82 &1914170001
AudioSource:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1914169999}
m_Enabled: 1
serializedVersion: 3
m_audioClip: {fileID: 0}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
- time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
--- !u!4 &1914170002
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1914169999}
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 &1926965186
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 100000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_PrefabInternal: {fileID: 1642048048}
m_PrefabParentObject: {fileID: 100002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_PrefabInternal: {fileID: 557827785}
serializedVersion: 4
m_Component:
- 4: {fileID: 1926965187}
Expand All @@ -581,8 +483,8 @@ GameObject:
--- !u!4 &1926965187
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 400000, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_PrefabInternal: {fileID: 1642048048}
m_PrefabParentObject: {fileID: 400002, guid: a56c9212e7c4e44f78b1f162b9feffdb, type: 2}
m_PrefabInternal: {fileID: 557827785}
m_GameObject: {fileID: 1926965186}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
Expand All @@ -594,9 +496,9 @@ Transform:
--- !u!114 &1926965188
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 11400000, guid: a56c9212e7c4e44f78b1f162b9feffdb,
m_PrefabParentObject: {fileID: 11400002, guid: a56c9212e7c4e44f78b1f162b9feffdb,
type: 2}
m_PrefabInternal: {fileID: 1642048048}
m_PrefabInternal: {fileID: 557827785}
m_GameObject: {fileID: 1926965186}
m_Enabled: 1
m_EditorHideFlags: 0
Expand All @@ -605,3 +507,5 @@ MonoBehaviour:
m_EditorClassIdentifier:
widgetDocking: 3
playerMode: 0
playerStartupMode: 0
autoStartupUrl:
56 changes: 29 additions & 27 deletions Assets/UniTunes/Prefabs/SoundCloudPlayer.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ GameObject:
m_Component:
- 4: {fileID: 400000}
- 114: {fileID: 11400000}
m_Layer: 0
m_Name: SoundCloudPlayer
m_Layer: 8
m_Name: GUIPlayer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!1 &100002
GameObject:
m_ObjectHideFlags: 0
Expand All @@ -25,25 +25,24 @@ GameObject:
m_Component:
- 4: {fileID: 400002}
- 114: {fileID: 11400002}
m_Layer: 8
m_Name: GUIPlayer
m_Layer: 0
m_Name: SoundCloudPlayer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!4 &400000
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 100000}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalPosition: {x: -2.21174788, y: -1.965734, z: 7.99403429}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 400002}
m_Father: {fileID: 0}
m_Children: []
m_Father: {fileID: 400002}
m_RootOrder: 0
--- !u!4 &400002
Transform:
Expand All @@ -52,10 +51,11 @@ Transform:
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 100002}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -2.21174788, y: -1.965734, z: 7.99403429}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 400000}
m_Children:
- {fileID: 400000}
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!114 &11400000
MonoBehaviour:
Expand All @@ -65,19 +65,6 @@ MonoBehaviour:
m_GameObject: {fileID: 100000}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: da5ddf56437424c77b345b96cb1d0495, type: 3}
m_Name:
m_EditorClassIdentifier:
widgetDocking: 3
playerMode: 0
--- !u!114 &11400002
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 100002}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b7ea2bd687c5641a68448495cebba29e, type: 3}
m_Name:
m_EditorClassIdentifier:
Expand Down Expand Up @@ -264,6 +251,21 @@ MonoBehaviour:
m_StretchWidth: 0
m_StretchHeight: 0
skin: {fileID: 0}
--- !u!114 &11400002
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 100002}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: da5ddf56437424c77b345b96cb1d0495, type: 3}
m_Name:
m_EditorClassIdentifier:
widgetDocking: 3
playerMode: 0
playerStartupMode: 0
autoStartupUrl:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
Expand All @@ -273,6 +275,6 @@ Prefab:
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 100000}
m_RootGameObject: {fileID: 100002}
m_IsPrefabParent: 1
m_IsExploded: 1
Loading

0 comments on commit 8dc8538

Please sign in to comment.