little sound fix

This commit is contained in:
r.nikolin 2023-10-09 17:30:55 +03:00
parent 327a9cdcbd
commit 0bca754ea1
11 changed files with 599 additions and 1494 deletions

View File

@ -144,6 +144,7 @@ MonoBehaviour:
Volume: 1
Priority: 128
Pitch: 1
Zone: 0.224
PlayOnAwake: 0
Loop: 0
SoundPlayer: {fileID: 8851741688417011874, guid: d8aaa15f51dd55a4fb0b37cecdd79846,

View File

@ -13330,7 +13330,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!4 &7380784973310527602
Transform:
m_ObjectHideFlags: 0
@ -15030,7 +15030,7 @@ PrefabInstance:
- target: {fileID: 7417793244928283402, guid: 162a6826d3d37014bb387f93073fa8a2,
type: 3}
propertyPath: m_LocalPosition.y
value: 15
value: 5
objectReference: {fileID: 0}
- target: {fileID: 7417793244928283402, guid: 162a6826d3d37014bb387f93073fa8a2,
type: 3}
@ -15969,7 +15969,7 @@ PrefabInstance:
- target: {fileID: 7417793244928283402, guid: 162a6826d3d37014bb387f93073fa8a2,
type: 3}
propertyPath: m_LocalPosition.y
value: 15
value: 5
objectReference: {fileID: 0}
- target: {fileID: 7417793244928283402, guid: 162a6826d3d37014bb387f93073fa8a2,
type: 3}
@ -27898,7 +27898,7 @@ PrefabInstance:
- target: {fileID: 7417793244928283402, guid: 162a6826d3d37014bb387f93073fa8a2,
type: 3}
propertyPath: m_LocalPosition.y
value: 15
value: 5
objectReference: {fileID: 0}
- target: {fileID: 7417793244928283402, guid: 162a6826d3d37014bb387f93073fa8a2,
type: 3}

View File

@ -2470,7 +2470,6 @@ Transform:
- {fileID: 4574774227100964297}
- {fileID: 4574774226647623292}
- {fileID: 4574774226115770230}
- {fileID: 5529455623519850528}
m_Father: {fileID: 5885267485061347096}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -2499,7 +2498,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a999d2ed4a80a51408fe4a7b22f36307, type: 3}
m_Name:
m_EditorClassIdentifier:
MaxRollSpeed: 80
MaxRollSpeed: 100
MaxRollAngle: 45
_radius: 45
_value: 0
@ -2756,134 +2755,6 @@ MonoBehaviour:
HideOnStart: 1
UseScale: 0
ScaleTime: 0.5
--- !u!1 &5464585589981299390
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5529455623519850528}
- component: {fileID: 1900515309410731357}
m_Layer: 0
m_Name: Music
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5529455623519850528
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5464585589981299390}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.515, z: 0.26}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 4574774227375387063}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!82 &1900515309410731357
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5464585589981299390}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: c0c668b6fb519e842a840a41a65a167e, type: 3}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 1
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 213
DopplerLevel: 1
MinDistance: 1
MaxDistance: 2
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1.1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!1 &5885267484571245826
GameObject:
m_ObjectHideFlags: 0

View File

@ -9924,9 +9924,138 @@ Transform:
m_Children:
- {fileID: 7888252541819003710}
- {fileID: 6454258830389062238}
- {fileID: 3936892331852565071}
m_Father: {fileID: 4139959821773206278}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &7675034548302981192
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3936892331852565071}
- component: {fileID: 7845899282681458536}
m_Layer: 0
m_Name: Music
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3936892331852565071
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7675034548302981192}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.95, z: 3.28}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 530606396991406445}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!82 &7845899282681458536
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7675034548302981192}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: c0c668b6fb519e842a840a41a65a167e, type: 3}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 1
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 213
DopplerLevel: 1
MinDistance: 1
MaxDistance: 5
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0.558
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!1001 &4389641371340856503
PrefabInstance:
m_ObjectHideFlags: 0

File diff suppressed because it is too large Load Diff

View File

@ -369,6 +369,7 @@ MonoBehaviour:
Volume: 1
Priority: 128
Pitch: 1
Zone: 0
PlayOnAwake: 0
Loop: 0
SoundPlayer: {fileID: 8851741688417011874, guid: d8aaa15f51dd55a4fb0b37cecdd79846,
@ -422,6 +423,7 @@ MonoBehaviour:
Volume: 1
Priority: 128
Pitch: 1
Zone: 0
PlayOnAwake: 0
Loop: 0
SoundPlayer: {fileID: 8851741688417011874, guid: d8aaa15f51dd55a4fb0b37cecdd79846,

View File

@ -144,6 +144,7 @@ MonoBehaviour:
Volume: 1
Priority: 128
Pitch: 1
Zone: 0.224
PlayOnAwake: 0
Loop: 0
SoundPlayer: {fileID: 8851741688417011874, guid: d8aaa15f51dd55a4fb0b37cecdd79846,

File diff suppressed because one or more lines are too long

View File

@ -9,6 +9,7 @@ public class Sound
[Range(0, 1)] public float Volume = 1;
[Range(0, 256)] public int Priority = 128;
[Range(-3, 3)] public float Pitch = 1;
[Range(0, 1)] public float Zone = 1;
public bool PlayOnAwake;
public bool Loop;
}

View File

@ -19,7 +19,7 @@ public class SoundPlayer : MonoBehaviour
source.priority = sound.Priority;
source.playOnAwake = sound.PlayOnAwake;
source.loop = sound.Loop;
source.spatialBlend = sound.Zone;
source.Play();
}
}

View File

@ -201,6 +201,8 @@ PlayerSettings:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1