sound occlusion first results, next - layer assignment
This commit is contained in:
parent
50f758cc28
commit
9f2cbe5a1e
@ -501,6 +501,7 @@ GameObject:
|
||||
- component: {fileID: 7229210520247497862}
|
||||
- component: {fileID: 4682670891357688467}
|
||||
- component: {fileID: 2457808414162356797}
|
||||
- component: {fileID: 4431907602736002208}
|
||||
m_Layer: 0
|
||||
m_Name: XR Origin
|
||||
m_TagString: Player
|
||||
@ -618,6 +619,20 @@ MonoBehaviour:
|
||||
TeleportRayLine: {fileID: 4167169049726400930}
|
||||
defaultGravity: {fileID: 5354856814699964556}
|
||||
isInSpace: 0
|
||||
--- !u!114 &4431907602736002208
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 916340287994646858}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 86c6556701af9e04380698b89f691b6e, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
nonRigidbodyVelocity: 0
|
||||
attenuationObject: {fileID: 916340287994646858}
|
||||
--- !u!1 &1084917492538600974
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -4392,8 +4407,8 @@ GameObject:
|
||||
- component: {fileID: 6243020581121736520}
|
||||
- component: {fileID: 1248243081272065818}
|
||||
- component: {fileID: 7904742026328308208}
|
||||
- component: {fileID: 438034309889585932}
|
||||
- component: {fileID: 5359875513008250733}
|
||||
- component: {fileID: 438034309889585932}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
@ -4630,20 +4645,6 @@ MonoBehaviour:
|
||||
mipBias: 0
|
||||
varianceClampScale: 0.9
|
||||
contrastAdaptiveSharpening: 0
|
||||
--- !u!114 &438034309889585932
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6810398627900972352}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 86c6556701af9e04380698b89f691b6e, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
nonRigidbodyVelocity: 0
|
||||
attenuationObject: {fileID: 0}
|
||||
--- !u!135 &5359875513008250733
|
||||
SphereCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -4665,6 +4666,20 @@ SphereCollider:
|
||||
serializedVersion: 3
|
||||
m_Radius: 0.1
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &438034309889585932
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6810398627900972352}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 86c6556701af9e04380698b89f691b6e, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
nonRigidbodyVelocity: 0
|
||||
attenuationObject: {fileID: 0}
|
||||
--- !u!1 &6839907377310123617
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@ -1692,7 +1692,7 @@ GameObject:
|
||||
- component: {fileID: 150987804393607111}
|
||||
- component: {fileID: 2849620166313326850}
|
||||
- component: {fileID: 3623653364064856318}
|
||||
- component: {fileID: 7426565597011524732}
|
||||
- component: {fileID: 6605356447225771655}
|
||||
m_Layer: 0
|
||||
m_Name: NetworkManagerUI
|
||||
m_TagString: Untagged
|
||||
@ -1791,7 +1791,7 @@ AudioListener:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8920648335286241163}
|
||||
m_Enabled: 1
|
||||
--- !u!114 &7426565597011524732
|
||||
--- !u!114 &6605356447225771655
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -1800,16 +1800,15 @@ MonoBehaviour:
|
||||
m_GameObject: {fileID: 8920648335286241163}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 891e12d2218566241a2acd395d5d3892, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: 0be1f6fa249e2b74d80c57af214b930d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
VRToggle: {fileID: 48284653022802127}
|
||||
VRToggle: {fileID: 0}
|
||||
startPlayingButton: {fileID: 4409105029378525441}
|
||||
reloadButton: {fileID: 3248072787155925101}
|
||||
joinMultiplayerButton: {fileID: 7057699864170177475}
|
||||
serverListContainer: {fileID: 1182580605524482518}
|
||||
IPButton: {fileID: 8155264290485183093, guid: 161eef8a6244baa46b0988be67d74a08,
|
||||
type: 3}
|
||||
serverListContainer: {fileID: 6604224998162932651}
|
||||
IPButton: {fileID: 8799561993934626415}
|
||||
statusText: {fileID: 2762709333159616741}
|
||||
quitButton: {fileID: 856744223094475457}
|
||||
networkDiscovery: {fileID: 0}
|
||||
|
||||
BIN
Assets/_PROJECT/Scenes/DeltaBuilding_base.unity
(Stored with Git LFS)
BIN
Assets/_PROJECT/Scenes/DeltaBuilding_base.unity
(Stored with Git LFS)
Binary file not shown.
@ -1,6 +1,7 @@
|
||||
using UnityEngine;
|
||||
using FMODUnity;
|
||||
using FMOD.Studio;
|
||||
using System.Collections;
|
||||
|
||||
public class FirstPersonOcclusion : MonoBehaviour
|
||||
{
|
||||
@ -28,7 +29,7 @@ public class FirstPersonOcclusion : MonoBehaviour
|
||||
private float lineCastHitCount = 0f;
|
||||
private Color colour;
|
||||
|
||||
private void Start()
|
||||
private IEnumerator Start()
|
||||
{
|
||||
Debug.Log("--- Start Method ---");
|
||||
|
||||
@ -54,21 +55,17 @@ public class FirstPersonOcclusion : MonoBehaviour
|
||||
Debug.Log($"FMOD Event Min/Max Distance: {minDistance:F2} / {MaxDistance:F2}");
|
||||
|
||||
// 6. Finding Listener
|
||||
yield return new WaitUntil(() => FindObjectOfType<StudioListener>() != null);
|
||||
Listener = FindObjectOfType<StudioListener>();
|
||||
if (Listener != null)
|
||||
{
|
||||
Debug.Log($"Found FMOD StudioListener on GameObject: {Listener.gameObject.name}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("FATAL: Could not find FMOD StudioListener in the scene!");
|
||||
}
|
||||
Debug.Log($"FMOD StudioListener found on {Listener.gameObject.name}");
|
||||
|
||||
Debug.Log("--- End Start Method ---");
|
||||
}
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
// Debug.Log("--- FixedUpdate Method ---"); // Too frequent, only log conditions
|
||||
if (Listener == null) return; // Skip until listener exists
|
||||
|
||||
AudioOccluded.isVirtual(out AudioIsVirtual);
|
||||
AudioOccluded.getPlaybackState(out pb);
|
||||
|
||||
@ -4,7 +4,7 @@ MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
executionOrder: 300
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -69,10 +69,10 @@
|
||||
</object>
|
||||
<object class="EventAutomatableProperties" id="{bae5b038-7025-49bb-a46b-664b3b2cf708}">
|
||||
<property name="minimumDistance">
|
||||
<value>5.4000001</value>
|
||||
<value>0</value>
|
||||
</property>
|
||||
<property name="maximumDistance">
|
||||
<value>2800</value>
|
||||
<value>55</value>
|
||||
</property>
|
||||
</object>
|
||||
<object class="MarkerTrack" id="{25ff9287-1371-4687-989c-3d2f2a0ae13a}" />
|
||||
@ -260,7 +260,6 @@
|
||||
<relationship name="automationPoints">
|
||||
<destination>{82188c03-e700-49ea-8eaf-7c940810ccd6}</destination>
|
||||
<destination>{1ac9a59a-3c4f-47cf-ac47-6437ecf4d430}</destination>
|
||||
<destination>{366a3ebf-3b48-42c8-b0bc-44dd6052e11e}</destination>
|
||||
<destination>{6f5ac1d5-b6c2-450b-83ac-ec20620434dc}</destination>
|
||||
</relationship>
|
||||
</object>
|
||||
@ -323,18 +322,10 @@
|
||||
</object>
|
||||
<object class="AutomationPoint" id="{1ac9a59a-3c4f-47cf-ac47-6437ecf4d430}">
|
||||
<property name="position">
|
||||
<value>0.99774011299435028</value>
|
||||
<value>0.98999999999999999</value>
|
||||
</property>
|
||||
<property name="value">
|
||||
<value>-80</value>
|
||||
</property>
|
||||
</object>
|
||||
<object class="AutomationPoint" id="{366a3ebf-3b48-42c8-b0bc-44dd6052e11e}">
|
||||
<property name="position">
|
||||
<value>0.6807909604519774</value>
|
||||
</property>
|
||||
<property name="value">
|
||||
<value>-14</value>
|
||||
<value>-11</value>
|
||||
</property>
|
||||
</object>
|
||||
<object class="AutomationPoint" id="{6f5ac1d5-b6c2-450b-83ac-ec20620434dc}">
|
||||
@ -359,7 +350,6 @@
|
||||
</relationship>
|
||||
<relationship name="automationPoints">
|
||||
<destination>{335032c8-8fa6-4912-ba6a-81e1e9ab9260}</destination>
|
||||
<destination>{9faaf027-6af9-4220-a945-fb36b1ed91b9}</destination>
|
||||
<destination>{2c793c93-937f-4acd-95ea-2a1c0616176c}</destination>
|
||||
</relationship>
|
||||
</object>
|
||||
@ -371,23 +361,15 @@
|
||||
<value>22000</value>
|
||||
</property>
|
||||
<property name="curveShape">
|
||||
<value>0.19472596</value>
|
||||
</property>
|
||||
</object>
|
||||
<object class="AutomationPoint" id="{9faaf027-6af9-4220-a945-fb36b1ed91b9}">
|
||||
<property name="position">
|
||||
<value>0.98999999999999999</value>
|
||||
</property>
|
||||
<property name="value">
|
||||
<value>20</value>
|
||||
<value>-0.0347861312</value>
|
||||
</property>
|
||||
</object>
|
||||
<object class="AutomationPoint" id="{2c793c93-937f-4acd-95ea-2a1c0616176c}">
|
||||
<property name="position">
|
||||
<value>0.68000000000000005</value>
|
||||
<value>0.98997916666666663</value>
|
||||
</property>
|
||||
<property name="value">
|
||||
<value>20</value>
|
||||
<value>90</value>
|
||||
</property>
|
||||
</object>
|
||||
</objects>
|
||||
|
||||
@ -15,5 +15,16 @@
|
||||
<property name="initialValue">
|
||||
<value>0</value>
|
||||
</property>
|
||||
<relationship name="modulators">
|
||||
<destination>{1b11aecc-af7e-4aa0-93cc-cc4c927ab240}</destination>
|
||||
</relationship>
|
||||
</object>
|
||||
<object class="SeekModulator" id="{1b11aecc-af7e-4aa0-93cc-cc4c927ab240}">
|
||||
<property name="nameOfPropertyBeingModulated">
|
||||
<value>cursorPosition</value>
|
||||
</property>
|
||||
<property name="speedAscending">
|
||||
<value>1.2000000476837158</value>
|
||||
</property>
|
||||
</object>
|
||||
</objects>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user