基础内容
必要插件安装 缓动曲线和动画基础 ElementFolder,Track与其次级模块,PathNode重构
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d12ef16f94b788e4ab90aa9534e64dcb
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2f491de8efa9ed448819dc3e8e9a7665
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Feel/FeelDemos/MMSoundManager/Playlists.meta
Normal file
8
Assets/Feel/FeelDemos/MMSoundManager/Playlists.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4ad09ae9e150d6e4c9962b2317caec33
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
390
Assets/Feel/FeelDemos/MMSoundManager/Playlists/PlaylistA.asset
Normal file
390
Assets/Feel/FeelDemos/MMSoundManager/Playlists/PlaylistA.asset
Normal file
@@ -0,0 +1,390 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bc7924747b6dade48ac9a15d72b5176b, type: 3}
|
||||
m_Name: PlaylistA
|
||||
m_EditorClassIdentifier:
|
||||
Track: 1
|
||||
PlayOrder: 0
|
||||
RandomizeOrderSeed: 1
|
||||
PlayMode: 0
|
||||
MaxAmountOfPlays: 10
|
||||
NextPlaylist: {fileID: 0}
|
||||
Songs:
|
||||
- Name: Blob Music
|
||||
Clip: {fileID: 8300000, guid: 4a74f61bf7075e8439f9a759ece2693f, type: 3}
|
||||
PlayCount: 1
|
||||
Options:
|
||||
Initialized: 1
|
||||
MmSoundManagerTrack: 0
|
||||
AudioGroup: {fileID: 0}
|
||||
Loop: 0
|
||||
Volume: 1
|
||||
Pitch: 1
|
||||
ID: 0
|
||||
Fade: 0
|
||||
FadeInitialVolume: 0
|
||||
FadeDuration: 1
|
||||
FadeTween:
|
||||
MMTweenDefinitionType: 0
|
||||
MMTweenCurve: 4
|
||||
Curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
Initialized: 0
|
||||
Persistent: 0
|
||||
RecycleAudioSource: {fileID: 0}
|
||||
PlaybackTime: 0
|
||||
PlaybackDuration: 0
|
||||
PanStereo: 0
|
||||
SpatialBlend: 0
|
||||
AttachToTransform: {fileID: 0}
|
||||
SoloSingleTrack: 0
|
||||
SoloAllTracks: 0
|
||||
AutoUnSoloOnEnd: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
Priority: 128
|
||||
ReverbZoneMix: 1
|
||||
DopplerLevel: 1
|
||||
Location: {x: 0, y: 0, z: 0}
|
||||
Spread: 0
|
||||
RolloffMode: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
DoNotAutoRecycleIfNotDonePlaying: 1
|
||||
UseCustomRolloffCurve: 0
|
||||
CustomRolloffCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpatialBlendCurve: 0
|
||||
SpatialBlendCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseReverbZoneMixCurve: 0
|
||||
ReverbZoneMixCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpreadCurve: 0
|
||||
SpreadCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
- Name: Brass
|
||||
Clip: {fileID: 8300000, guid: 93f81efbdad4ade4c9c4b6b83eae7e4b, type: 3}
|
||||
PlayCount: 1
|
||||
Options:
|
||||
Initialized: 1
|
||||
MmSoundManagerTrack: 0
|
||||
AudioGroup: {fileID: 0}
|
||||
Loop: 0
|
||||
Volume: 1
|
||||
Pitch: 1
|
||||
ID: 0
|
||||
Fade: 0
|
||||
FadeInitialVolume: 0
|
||||
FadeDuration: 1
|
||||
FadeTween:
|
||||
MMTweenDefinitionType: 0
|
||||
MMTweenCurve: 4
|
||||
Curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
Initialized: 0
|
||||
Persistent: 0
|
||||
RecycleAudioSource: {fileID: 0}
|
||||
PlaybackTime: 0
|
||||
PlaybackDuration: 0
|
||||
PanStereo: 0
|
||||
SpatialBlend: 0
|
||||
AttachToTransform: {fileID: 0}
|
||||
SoloSingleTrack: 0
|
||||
SoloAllTracks: 0
|
||||
AutoUnSoloOnEnd: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
Priority: 128
|
||||
ReverbZoneMix: 1
|
||||
DopplerLevel: 1
|
||||
Location: {x: 0, y: 0, z: 0}
|
||||
Spread: 0
|
||||
RolloffMode: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
DoNotAutoRecycleIfNotDonePlaying: 1
|
||||
UseCustomRolloffCurve: 0
|
||||
CustomRolloffCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpatialBlendCurve: 0
|
||||
SpatialBlendCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseReverbZoneMixCurve: 0
|
||||
ReverbZoneMixCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpreadCurve: 0
|
||||
SpreadCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
- Name: Strike
|
||||
Clip: {fileID: 8300000, guid: 45c6539e9c07f5948b638b490a0d48b2, type: 3}
|
||||
PlayCount: 0
|
||||
Options:
|
||||
Initialized: 1
|
||||
MmSoundManagerTrack: 0
|
||||
AudioGroup: {fileID: 0}
|
||||
Loop: 0
|
||||
Volume: 1
|
||||
Pitch: 1
|
||||
ID: 0
|
||||
Fade: 0
|
||||
FadeInitialVolume: 0
|
||||
FadeDuration: 1
|
||||
FadeTween:
|
||||
MMTweenDefinitionType: 0
|
||||
MMTweenCurve: 4
|
||||
Curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
Initialized: 0
|
||||
Persistent: 0
|
||||
RecycleAudioSource: {fileID: 0}
|
||||
PlaybackTime: 0
|
||||
PlaybackDuration: 0
|
||||
PanStereo: 0
|
||||
SpatialBlend: 0
|
||||
AttachToTransform: {fileID: 0}
|
||||
SoloSingleTrack: 0
|
||||
SoloAllTracks: 0
|
||||
AutoUnSoloOnEnd: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
Priority: 128
|
||||
ReverbZoneMix: 1
|
||||
DopplerLevel: 1
|
||||
Location: {x: 0, y: 0, z: 0}
|
||||
Spread: 0
|
||||
RolloffMode: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
DoNotAutoRecycleIfNotDonePlaying: 1
|
||||
UseCustomRolloffCurve: 0
|
||||
CustomRolloffCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpatialBlendCurve: 0
|
||||
SpatialBlendCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseReverbZoneMixCurve: 0
|
||||
ReverbZoneMixCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpreadCurve: 0
|
||||
SpreadCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
- Name: The Wheel
|
||||
Clip: {fileID: 8300000, guid: ae7e74295b743cb4ea17c6a29d1549f1, type: 3}
|
||||
PlayCount: 0
|
||||
Options:
|
||||
Initialized: 1
|
||||
MmSoundManagerTrack: 0
|
||||
AudioGroup: {fileID: 0}
|
||||
Loop: 0
|
||||
Volume: 1
|
||||
Pitch: 1
|
||||
ID: 0
|
||||
Fade: 0
|
||||
FadeInitialVolume: 0
|
||||
FadeDuration: 1
|
||||
FadeTween:
|
||||
MMTweenDefinitionType: 0
|
||||
MMTweenCurve: 4
|
||||
Curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
Initialized: 0
|
||||
Persistent: 0
|
||||
RecycleAudioSource: {fileID: 0}
|
||||
PlaybackTime: 0
|
||||
PlaybackDuration: 0
|
||||
PanStereo: 0
|
||||
SpatialBlend: 0
|
||||
AttachToTransform: {fileID: 0}
|
||||
SoloSingleTrack: 0
|
||||
SoloAllTracks: 0
|
||||
AutoUnSoloOnEnd: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
Priority: 128
|
||||
ReverbZoneMix: 1
|
||||
DopplerLevel: 1
|
||||
Location: {x: 0, y: 0, z: 0}
|
||||
Spread: 0
|
||||
RolloffMode: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
DoNotAutoRecycleIfNotDonePlaying: 1
|
||||
UseCustomRolloffCurve: 0
|
||||
CustomRolloffCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpatialBlendCurve: 0
|
||||
SpatialBlendCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseReverbZoneMixCurve: 0
|
||||
ReverbZoneMixCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpreadCurve: 0
|
||||
SpreadCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
PlayCount: 2
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 70538f880606c8248a68f53d1fdcbf73
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
298
Assets/Feel/FeelDemos/MMSoundManager/Playlists/PlaylistB.asset
Normal file
298
Assets/Feel/FeelDemos/MMSoundManager/Playlists/PlaylistB.asset
Normal file
@@ -0,0 +1,298 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bc7924747b6dade48ac9a15d72b5176b, type: 3}
|
||||
m_Name: PlaylistB
|
||||
m_EditorClassIdentifier:
|
||||
Track: 1
|
||||
PlayOrder: 0
|
||||
RandomizeOrderSeed: 1
|
||||
PlayMode: 0
|
||||
MaxAmountOfPlays: 10
|
||||
NextPlaylist: {fileID: 0}
|
||||
Songs:
|
||||
- Name: Thunder
|
||||
Clip: {fileID: 8300000, guid: 46dcfa1187f4a1e4cb3793dd1351f669, type: 3}
|
||||
PlayCount: 3
|
||||
Options:
|
||||
Initialized: 1
|
||||
MmSoundManagerTrack: 0
|
||||
AudioGroup: {fileID: 0}
|
||||
Loop: 0
|
||||
Volume: 1
|
||||
Pitch: 1
|
||||
ID: 0
|
||||
Fade: 0
|
||||
FadeInitialVolume: 0
|
||||
FadeDuration: 1
|
||||
FadeTween:
|
||||
MMTweenDefinitionType: 0
|
||||
MMTweenCurve: 4
|
||||
Curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
Initialized: 0
|
||||
Persistent: 0
|
||||
RecycleAudioSource: {fileID: 0}
|
||||
PlaybackTime: 0
|
||||
PlaybackDuration: 0
|
||||
PanStereo: 0
|
||||
SpatialBlend: 0
|
||||
AttachToTransform: {fileID: 0}
|
||||
SoloSingleTrack: 0
|
||||
SoloAllTracks: 0
|
||||
AutoUnSoloOnEnd: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
Priority: 128
|
||||
ReverbZoneMix: 1
|
||||
DopplerLevel: 1
|
||||
Location: {x: 0, y: 0, z: 0}
|
||||
Spread: 0
|
||||
RolloffMode: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
DoNotAutoRecycleIfNotDonePlaying: 1
|
||||
UseCustomRolloffCurve: 0
|
||||
CustomRolloffCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpatialBlendCurve: 0
|
||||
SpatialBlendCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseReverbZoneMixCurve: 0
|
||||
ReverbZoneMixCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpreadCurve: 0
|
||||
SpreadCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
- Name: Rain in Car
|
||||
Clip: {fileID: 8300000, guid: 659cfa07980ee49258c6d22926070cdb, type: 3}
|
||||
PlayCount: 3
|
||||
Options:
|
||||
Initialized: 1
|
||||
MmSoundManagerTrack: 0
|
||||
AudioGroup: {fileID: 0}
|
||||
Loop: 0
|
||||
Volume: 1
|
||||
Pitch: 1
|
||||
ID: 0
|
||||
Fade: 0
|
||||
FadeInitialVolume: 0
|
||||
FadeDuration: 1
|
||||
FadeTween:
|
||||
MMTweenDefinitionType: 0
|
||||
MMTweenCurve: 4
|
||||
Curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
Initialized: 0
|
||||
Persistent: 0
|
||||
RecycleAudioSource: {fileID: 0}
|
||||
PlaybackTime: 0
|
||||
PlaybackDuration: 0
|
||||
PanStereo: 0
|
||||
SpatialBlend: 0
|
||||
AttachToTransform: {fileID: 0}
|
||||
SoloSingleTrack: 0
|
||||
SoloAllTracks: 0
|
||||
AutoUnSoloOnEnd: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
Priority: 128
|
||||
ReverbZoneMix: 1
|
||||
DopplerLevel: 1
|
||||
Location: {x: 0, y: 0, z: 0}
|
||||
Spread: 0
|
||||
RolloffMode: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
DoNotAutoRecycleIfNotDonePlaying: 1
|
||||
UseCustomRolloffCurve: 0
|
||||
CustomRolloffCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpatialBlendCurve: 0
|
||||
SpatialBlendCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseReverbZoneMixCurve: 0
|
||||
ReverbZoneMixCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpreadCurve: 0
|
||||
SpreadCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
- Name: Piano Bass
|
||||
Clip: {fileID: 8300000, guid: 4918d495582b2c74dba9ef90acb15aee, type: 3}
|
||||
PlayCount: 2
|
||||
Options:
|
||||
Initialized: 1
|
||||
MmSoundManagerTrack: 0
|
||||
AudioGroup: {fileID: 0}
|
||||
Loop: 0
|
||||
Volume: 1
|
||||
Pitch: 1
|
||||
ID: 0
|
||||
Fade: 0
|
||||
FadeInitialVolume: 0
|
||||
FadeDuration: 1
|
||||
FadeTween:
|
||||
MMTweenDefinitionType: 0
|
||||
MMTweenCurve: 4
|
||||
Curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
Initialized: 0
|
||||
Persistent: 0
|
||||
RecycleAudioSource: {fileID: 0}
|
||||
PlaybackTime: 0
|
||||
PlaybackDuration: 0
|
||||
PanStereo: 0
|
||||
SpatialBlend: 0
|
||||
AttachToTransform: {fileID: 0}
|
||||
SoloSingleTrack: 0
|
||||
SoloAllTracks: 0
|
||||
AutoUnSoloOnEnd: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
Priority: 128
|
||||
ReverbZoneMix: 1
|
||||
DopplerLevel: 1
|
||||
Location: {x: 0, y: 0, z: 0}
|
||||
Spread: 0
|
||||
RolloffMode: 0
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
DoNotAutoRecycleIfNotDonePlaying: 1
|
||||
UseCustomRolloffCurve: 0
|
||||
CustomRolloffCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpatialBlendCurve: 0
|
||||
SpatialBlendCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseReverbZoneMixCurve: 0
|
||||
ReverbZoneMixCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
UseSpreadCurve: 0
|
||||
SpreadCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
PlayCount: 8
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e4655ec53a3491479570fc11c155acb
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Feel/FeelDemos/MMSoundManager/Scripts.meta
Normal file
8
Assets/Feel/FeelDemos/MMSoundManager/Scripts.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 469b4fe8a537b27498a70072a807a9aa
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
83
Assets/Feel/FeelDemos/MMSoundManager/Scripts/PlaylistDemo.cs
Normal file
83
Assets/Feel/FeelDemos/MMSoundManager/Scripts/PlaylistDemo.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
using MoreMountains.Tools;
|
||||
using UnityEngine;
|
||||
#if (MM_TEXTMESHPRO || MM_UGUI2)
|
||||
using TMPro;
|
||||
#endif
|
||||
#if MM_UI
|
||||
namespace MoreMountains.Feel
|
||||
{
|
||||
/// <summary>
|
||||
/// A small script used to power the FeelMMSoundManagerPlaylistManager demo scene
|
||||
/// </summary>
|
||||
[AddComponentMenu("")]
|
||||
public class PlaylistDemo : MonoBehaviour
|
||||
{
|
||||
/// the playlist manager to read data on
|
||||
public MMSMPlaylistManager PlaylistManager;
|
||||
/// a progress bar meant to display the progress of the song currently playing
|
||||
public MMProgressBar ProgressBar;
|
||||
#if (MM_TEXTMESHPRO || MM_UGUI2)
|
||||
/// the name of the song currently playing
|
||||
public TMP_Text SongName;
|
||||
/// a text displaying the current progress of the song in minutes/seconds
|
||||
public TMP_Text SongDuration;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// On Update, updates the progress bar and song duration counter
|
||||
/// </summary>
|
||||
protected virtual void Update()
|
||||
{
|
||||
if (PlaylistManager.CurrentClipDuration == 0f)
|
||||
{
|
||||
ProgressBar.SetBar(0f, 0f, 1f);
|
||||
}
|
||||
else
|
||||
{
|
||||
ProgressBar.SetBar(PlaylistManager.CurrentTime, 0f, PlaylistManager.CurrentClipDuration);
|
||||
#if (MM_TEXTMESHPRO || MM_UGUI2)
|
||||
SongDuration.text = MMTime.FloatToTimeString(PlaylistManager.CurrentTime, false, true, true, false)
|
||||
+ " / "
|
||||
+ MMTime.FloatToTimeString(PlaylistManager.CurrentClipDuration, false, true, true, false);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the song name display
|
||||
/// </summary>
|
||||
protected virtual void UpdateSongName()
|
||||
{
|
||||
int displayIndex = PlaylistManager.CurrentSongIndex + 1;
|
||||
#if (MM_TEXTMESHPRO || MM_UGUI2)
|
||||
SongName.text = displayIndex + ". " + PlaylistManager.CurrentSongName;
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// When a new song starts to play, we update its name
|
||||
/// </summary>
|
||||
/// <param name="channel"></param>
|
||||
protected virtual void OnPlayEvent(int channel)
|
||||
{
|
||||
UpdateSongName();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Starts listening for events
|
||||
/// </summary>
|
||||
protected virtual void OnEnable()
|
||||
{
|
||||
MMPlaylistNewSongStartedEvent.Register(OnPlayEvent);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Stops listening for events
|
||||
/// </summary>
|
||||
protected virtual void OnDisable()
|
||||
{
|
||||
MMPlaylistNewSongStartedEvent.Unregister(OnPlayEvent);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10af6a1a0cf8a9d4b8baa9eff5f0a2cc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user