wip : added necessary component for spatial audio

This commit is contained in:
Hugo Le Bolloc'h
2026-05-25 17:02:04 +02:00
parent 69303cd43c
commit 0710f59b9d
6 changed files with 321 additions and 5 deletions
@@ -1,2 +1,50 @@
fileFormatVersion: 2
guid: 71438aa9782ecb14ebc239ed9cc54efa
PluginImporter:
externalObjects: {}
serializedVersion: 3
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Any:
enabled: 0
settings:
Exclude Editor: 1
Exclude Linux64: 1
Exclude OSXUniversal: 1
Exclude Win: 0
Exclude Win64: 1
Editor:
enabled: 0
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
Linux64:
enabled: 0
settings:
CPU: x86_64
OSXUniversal:
enabled: 0
settings:
CPU: None
Win:
enabled: 1
settings:
CPU: x86
Win64:
enabled: 0
settings:
CPU: None
WindowsStoreApps:
enabled: 0
settings:
CPU: x86
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,152 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5856443040925330738
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4229867573999893934}
- component: {fileID: 3462895590537315903}
- component: {fileID: 7402306689633295939}
- component: {fileID: 6320061098066769250}
- component: {fileID: 5851170469243023849}
- component: {fileID: 451711696936209194}
m_Layer: 0
m_Name: WwiseAkEmitter
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4229867573999893934
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5856443040925330738}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 5.20846, y: 1, z: 11.50179}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!135 &3462895590537315903
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5856443040925330738}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 1
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Radius: 0.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!54 &7402306689633295939
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5856443040925330738}
serializedVersion: 5
m_Mass: 1
m_LinearDamping: 0
m_AngularDamping: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &6320061098066769250
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5856443040925330738}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ac293711562f7704c9688ef699a612f3, type: 3}
m_Name:
m_EditorClassIdentifier: AK.Wwise.Unity.MonoBehaviour::AkRoomAwareObject
m_Collider: {fileID: 0}
--- !u!114 &5851170469243023849
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5856443040925330738}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4ccb80e2899444642bdbf406a3c31f7b, type: 3}
m_Name:
m_EditorClassIdentifier: AK.Wwise.Unity.MonoBehaviour::AkGameObj
m_listeners:
initialListenerList: []
useDefaultListeners: 1
isEnvironmentAware: 1
isStaticObject: 0
usePositionOffsetData: 0
m_positionOffsetData:
KeepMe: 1
positionOffset: {x: 0, y: 0, z: 0}
scalingFactor: 1
m_posOffsetData: {fileID: 0}
listenerMask: 1
--- !u!114 &451711696936209194
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5856443040925330738}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: eec618f338d13bf43b8519814d335311, type: 3}
m_Name:
m_EditorClassIdentifier: AK.Wwise.Unity.MonoBehaviour::AkEvent
triggerList: f7e1664c
useOtherObject: 0
actionOnEventType: 0
curveInterpolation: 4
enableActionOnEvent: 0
data:
idInternal: 0
valueGuidInternal:
WwiseObjectReference: {fileID: 0}
useCallbacks: 0
stopSoundOnDestroy: 1
Callbacks: []
soundEmitterObject: {fileID: 0}
transitionDuration: 0
eventIdInternal: 0
valueGuidInternal:
m_callbackDataInternal: {fileID: 0}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d77f266a781cf58469c9872b9724fa29
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -49,7 +49,7 @@ BoxCollider:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_IsTrigger: 1
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
@@ -109,4 +109,4 @@ MonoBehaviour:
valueGuidInternal:
WwiseObjectReference: {fileID: 0}
roomToneAuxSend: 0
isStatic: 0
isStatic: 1
@@ -14,6 +14,9 @@ GameObject:
- component: {fileID: 6989128982853398086}
- component: {fileID: 1836997810253213181}
- component: {fileID: 1984479600479780032}
- component: {fileID: 2242241179127902993}
- component: {fileID: 6578902307436344113}
- component: {fileID: 2963135821278175517}
m_Layer: 0
m_Name: Camera Player
m_TagString: MainCamera
@@ -158,7 +161,7 @@ MonoBehaviour:
isStaticObject: 0
usePositionOffsetData: 0
m_positionOffsetData:
KeepMe: 0
KeepMe: 1
positionOffset: {x: 0, y: 0, z: 0}
scalingFactor: 1
m_posOffsetData: {fileID: 0}
@@ -179,6 +182,69 @@ MonoBehaviour:
bOverrideScalingFactor: 0
scalingFactor: -1
listenerId: 0
--- !u!114 &2242241179127902993
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2101508725665932610}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ac293711562f7704c9688ef699a612f3, type: 3}
m_Name:
m_EditorClassIdentifier: AK.Wwise.Unity.MonoBehaviour::AkRoomAwareObject
m_Collider: {fileID: 0}
--- !u!54 &6578902307436344113
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2101508725665932610}
serializedVersion: 5
m_Mass: 1
m_LinearDamping: 0
m_AngularDamping: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!136 &2963135821278175517
CapsuleCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2101508725665932610}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Height: 1
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &8162540767767967414
GameObject:
m_ObjectHideFlags: 0
@@ -93,6 +93,13 @@
<Bus Name="AUX_Reverb" ID="{8B1406BF-F903-4F50-AFE5-A7566D64DDF2}">
<ChildrenList>
<AuxBus Name="Theater" ID="{8D392A35-1B16-4AC8-84CC-67C75F696BFA}">
<PropertyList>
<Property Name="3DSpatialization" Type="int16" Value="2"/>
<Property Name="EnableAttenuation" Type="bool" Value="False"/>
<Property Name="EnableDiffraction" Type="bool" Value="True"/>
<Property Name="ListenerRelativeRouting" Type="bool" Value="True"/>
<Property Name="UseGameAuxSends" Type="bool" Value="True"/>
</PropertyList>
<ObjectLists>
<ObjectList Name="Effects">
<EffectSlot Name="" ID="{842354AA-1FD6-4275-9D1B-E5BF91E76FD5}" ShortID="182192425">
@@ -106,6 +113,12 @@
</ObjectLists>
</AuxBus>
<AuxBus Name="Staircase" ID="{53FA1177-9990-46AB-BE12-F71C7AAB7224}">
<PropertyList>
<Property Name="3DSpatialization" Type="int16" Value="2"/>
<Property Name="EnableDiffraction" Type="bool" Value="True"/>
<Property Name="ListenerRelativeRouting" Type="bool" Value="True"/>
<Property Name="UseGameAuxSends" Type="bool" Value="True"/>
</PropertyList>
<ObjectLists>
<ObjectList Name="Effects">
<EffectSlot Name="" ID="{40B281CD-2356-43A4-9305-1E44B960C75A}" ShortID="393296586">
@@ -119,6 +132,12 @@
</ObjectLists>
</AuxBus>
<AuxBus Name="Shrine" ID="{16227FDF-2CE5-4854-BF03-45B480915A36}">
<PropertyList>
<Property Name="3DSpatialization" Type="int16" Value="2"/>
<Property Name="EnableDiffraction" Type="bool" Value="True"/>
<Property Name="ListenerRelativeRouting" Type="bool" Value="True"/>
<Property Name="UseGameAuxSends" Type="bool" Value="True"/>
</PropertyList>
<ObjectLists>
<ObjectList Name="Effects">
<EffectSlot Name="" ID="{E3DDC281-59DB-44C6-ABF9-BAF3B282695F}" ShortID="921695893">
@@ -132,6 +151,12 @@
</ObjectLists>
</AuxBus>
<AuxBus Name="House" ID="{F216FFB9-8CED-43C9-8910-73C41EB638E6}">
<PropertyList>
<Property Name="3DSpatialization" Type="int16" Value="2"/>
<Property Name="EnableDiffraction" Type="bool" Value="True"/>
<Property Name="ListenerRelativeRouting" Type="bool" Value="True"/>
<Property Name="UseGameAuxSends" Type="bool" Value="True"/>
</PropertyList>
<ObjectLists>
<ObjectList Name="Effects">
<EffectSlot Name="" ID="{E23BDB34-C1BF-493A-9D01-AA762A45789B}" ShortID="537338769">
@@ -145,6 +170,12 @@
</ObjectLists>
</AuxBus>
<AuxBus Name="Bodies" ID="{1733F3C8-7539-4F5C-8B6A-E26B07EE1C63}">
<PropertyList>
<Property Name="3DSpatialization" Type="int16" Value="2"/>
<Property Name="EnableDiffraction" Type="bool" Value="True"/>
<Property Name="ListenerRelativeRouting" Type="bool" Value="True"/>
<Property Name="UseGameAuxSends" Type="bool" Value="True"/>
</PropertyList>
<ObjectLists>
<ObjectList Name="Effects">
<EffectSlot Name="" ID="{BC355912-8E49-414E-B0B1-CBAD892A8C78}" ShortID="955854538">
@@ -158,6 +189,12 @@
</ObjectLists>
</AuxBus>
<AuxBus Name="Sam" ID="{E0BEDD51-1E05-4CEC-9012-10CB9759CFDB}">
<PropertyList>
<Property Name="3DSpatialization" Type="int16" Value="2"/>
<Property Name="EnableDiffraction" Type="bool" Value="True"/>
<Property Name="ListenerRelativeRouting" Type="bool" Value="True"/>
<Property Name="UseGameAuxSends" Type="bool" Value="True"/>
</PropertyList>
<ObjectLists>
<ObjectList Name="Effects">
<EffectSlot Name="" ID="{1A28962A-9176-4E12-9EFC-5247254973C4}" ShortID="662518883">
@@ -171,6 +208,12 @@
</ObjectLists>
</AuxBus>
<AuxBus Name="Scarecrow" ID="{62E6B65B-D49F-4F3A-B0E8-7A66A39A8C33}">
<PropertyList>
<Property Name="3DSpatialization" Type="int16" Value="2"/>
<Property Name="EnableDiffraction" Type="bool" Value="True"/>
<Property Name="ListenerRelativeRouting" Type="bool" Value="True"/>
<Property Name="UseGameAuxSends" Type="bool" Value="True"/>
</PropertyList>
<ObjectLists>
<ObjectList Name="Effects">
<EffectSlot Name="" ID="{817A95E6-D15B-4780-93BA-1B5637637E2A}" ShortID="924395959">
@@ -330,7 +373,7 @@
<PointList>
<Point>
<XPos>0</XPos>
<YPos>-0</YPos>
<YPos>0</YPos>
<Flags>5</Flags>
</Point>
<Point>