├── .gitignore ├── Assets ├── Materials.meta ├── Materials │ ├── Default White.mat │ └── Default White.mat.meta ├── Plugins.meta ├── Plugins │ ├── CSCore.dll │ └── CSCore.dll.meta ├── Prefabs.meta ├── Prefabs │ ├── Bar Spectrum Cube.prefab │ └── Bar Spectrum Cube.prefab.meta ├── Scripts.meta ├── Scripts │ ├── Audio.meta │ ├── Audio │ │ ├── AudioVisualizationStrategy.cs │ │ ├── AudioVisualizationStrategy.cs.meta │ │ ├── BasicSpectrumProvider.cs │ │ ├── BasicSpectrumProvider.cs.meta │ │ ├── ISpectrumProvider.cs │ │ ├── ISpectrumProvider.cs.meta │ │ ├── LineSpectrum.cs │ │ ├── LineSpectrum.cs.meta │ │ ├── LoopbackAudio.cs │ │ ├── LoopbackAudio.cs.meta │ │ ├── RealtimeAudio.cs │ │ ├── RealtimeAudio.cs.meta │ │ ├── ScalingStrategy.cs │ │ ├── ScalingStrategy.cs.meta │ │ ├── SpectrumBase.cs │ │ └── SpectrumBase.cs.meta │ ├── Behaviors.meta │ ├── Behaviors │ │ ├── RandomMaterialColorObject.cs │ │ └── RandomMaterialColorObject.cs.meta │ ├── Extensions.meta │ ├── Extensions │ │ ├── ListExtensions.cs │ │ └── ListExtensions.cs.meta │ ├── Globals.cs │ ├── Globals.cs.meta │ ├── ReactiveEffects.meta │ └── ReactiveEffects │ │ ├── Base.meta │ │ ├── Base │ │ ├── VisualizationEffectBase.cs │ │ └── VisualizationEffectBase.cs.meta │ │ ├── MaterialColorIntensityReactiveEffect.cs │ │ ├── MaterialColorIntensityReactiveEffect.cs.meta │ │ ├── ObjectScaleReactiveEffect.cs │ │ ├── ObjectScaleReactiveEffect.cs.meta │ │ ├── PrefabLayoutAudioObject.cs │ │ └── PrefabLayoutAudioObject.cs.meta ├── _scenes.meta └── _scenes │ ├── Main.unity │ └── Main.unity.meta ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── README.md └── UnityPackageManager └── manifest.json /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Visual Studio 2015 cache directory 9 | /.vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | 26 | # Unity3D generated meta files 27 | *.pidb.meta 28 | 29 | # Unity3D Generated File On Crash Reports 30 | sysinfo.txt 31 | 32 | # Builds 33 | *.apk 34 | *.unitypackage 35 | -------------------------------------------------------------------------------- /Assets/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 63df4479e8a17d041b88eaa22bb3144f 3 | folderAsset: yes 4 | timeCreated: 1509126997 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Materials/Default White.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Default White 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Materials/Default White.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 320b400d4a179e24d9a44605f328fb90 3 | timeCreated: 1509127009 4 | licenseType: Free 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e860cb2d1bbbade40ba9b810102871bf 3 | folderAsset: yes 4 | timeCreated: 1509125359 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Plugins/CSCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallidev/UnityWASAPILoopbackAudio/42c0b1d06dc84395f5019ea27e8d1b9e123e10bf/Assets/Plugins/CSCore.dll -------------------------------------------------------------------------------- /Assets/Plugins/CSCore.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5ab56cb999f13b46bb15670bea9a397 3 | timeCreated: 1509125365 4 | licenseType: Free 5 | PluginImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | iconMap: {} 9 | executionOrder: {} 10 | isPreloaded: 0 11 | isOverridable: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | DefaultValueInitialized: true 24 | - first: 25 | Windows Store Apps: WindowsStoreApps 26 | second: 27 | enabled: 0 28 | settings: 29 | CPU: AnyCPU 30 | userData: 31 | assetBundleName: 32 | assetBundleVariant: 33 | -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c71fc6f4145e23e4eaa8763f34681a3a 3 | folderAsset: yes 4 | timeCreated: 1509127138 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Prefabs/Bar Spectrum Cube.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_ParentPrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1143285611701888} 13 | m_IsPrefabParent: 1 14 | --- !u!1 &1143285611701888 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_PrefabParentObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 5 20 | m_Component: 21 | - component: {fileID: 4620026278452056} 22 | - component: {fileID: 33364499364152282} 23 | - component: {fileID: 65931422964808166} 24 | - component: {fileID: 23521452415898532} 25 | - component: {fileID: 114977533371762004} 26 | - component: {fileID: 114186006647847878} 27 | m_Layer: 0 28 | m_Name: Bar Spectrum Cube 29 | m_TagString: Untagged 30 | m_Icon: {fileID: 0} 31 | m_NavMeshLayer: 0 32 | m_StaticEditorFlags: 0 33 | m_IsActive: 1 34 | --- !u!4 &4620026278452056 35 | Transform: 36 | m_ObjectHideFlags: 1 37 | m_PrefabParentObject: {fileID: 0} 38 | m_PrefabInternal: {fileID: 100100000} 39 | m_GameObject: {fileID: 1143285611701888} 40 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 41 | m_LocalPosition: {x: 0, y: 0, z: 0} 42 | m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} 43 | m_Children: [] 44 | m_Father: {fileID: 0} 45 | m_RootOrder: 0 46 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 47 | --- !u!23 &23521452415898532 48 | MeshRenderer: 49 | m_ObjectHideFlags: 1 50 | m_PrefabParentObject: {fileID: 0} 51 | m_PrefabInternal: {fileID: 100100000} 52 | m_GameObject: {fileID: 1143285611701888} 53 | m_Enabled: 1 54 | m_CastShadows: 1 55 | m_ReceiveShadows: 1 56 | m_DynamicOccludee: 1 57 | m_MotionVectors: 1 58 | m_LightProbeUsage: 1 59 | m_ReflectionProbeUsage: 1 60 | m_Materials: 61 | - {fileID: 2100000, guid: 320b400d4a179e24d9a44605f328fb90, type: 2} 62 | m_StaticBatchInfo: 63 | firstSubMesh: 0 64 | subMeshCount: 0 65 | m_StaticBatchRoot: {fileID: 0} 66 | m_ProbeAnchor: {fileID: 0} 67 | m_LightProbeVolumeOverride: {fileID: 0} 68 | m_ScaleInLightmap: 1 69 | m_PreserveUVs: 1 70 | m_IgnoreNormalsForChartDetection: 0 71 | m_ImportantGI: 0 72 | m_StitchLightmapSeams: 0 73 | m_SelectedEditorRenderState: 3 74 | m_MinimumChartSize: 4 75 | m_AutoUVMaxDistance: 0.5 76 | m_AutoUVMaxAngle: 89 77 | m_LightmapParameters: {fileID: 0} 78 | m_SortingLayerID: 0 79 | m_SortingLayer: 0 80 | m_SortingOrder: 0 81 | --- !u!33 &33364499364152282 82 | MeshFilter: 83 | m_ObjectHideFlags: 1 84 | m_PrefabParentObject: {fileID: 0} 85 | m_PrefabInternal: {fileID: 100100000} 86 | m_GameObject: {fileID: 1143285611701888} 87 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 88 | --- !u!65 &65931422964808166 89 | BoxCollider: 90 | m_ObjectHideFlags: 1 91 | m_PrefabParentObject: {fileID: 0} 92 | m_PrefabInternal: {fileID: 100100000} 93 | m_GameObject: {fileID: 1143285611701888} 94 | m_Material: {fileID: 0} 95 | m_IsTrigger: 0 96 | m_Enabled: 1 97 | serializedVersion: 2 98 | m_Size: {x: 1, y: 1, z: 1} 99 | m_Center: {x: 0, y: 0, z: 0} 100 | --- !u!114 &114186006647847878 101 | MonoBehaviour: 102 | m_ObjectHideFlags: 1 103 | m_PrefabParentObject: {fileID: 0} 104 | m_PrefabInternal: {fileID: 100100000} 105 | m_GameObject: {fileID: 1143285611701888} 106 | m_Enabled: 1 107 | m_EditorHideFlags: 0 108 | m_Script: {fileID: 11500000, guid: 1e23875de3f875c47b6b582670277d87, type: 3} 109 | m_Name: 110 | m_EditorClassIdentifier: 111 | AudioVisualizationStrategy: 1 112 | AudioSampleIndex: 0 113 | MinIntensity: 0.1 114 | IntensityScale: 0.4 115 | MinEmissionIntensity: 0.1 116 | EmissionIntensityScale: 0.4 117 | --- !u!114 &114977533371762004 118 | MonoBehaviour: 119 | m_ObjectHideFlags: 1 120 | m_PrefabParentObject: {fileID: 0} 121 | m_PrefabInternal: {fileID: 100100000} 122 | m_GameObject: {fileID: 1143285611701888} 123 | m_Enabled: 1 124 | m_EditorHideFlags: 0 125 | m_Script: {fileID: 11500000, guid: f13a833d6049fab4d88af257d9e74d75, type: 3} 126 | m_Name: 127 | m_EditorClassIdentifier: 128 | AudioVisualizationStrategy: 1 129 | AudioSampleIndex: 0 130 | ScaleIntensity: {x: 0, y: 1, z: 0} 131 | -------------------------------------------------------------------------------- /Assets/Prefabs/Bar Spectrum Cube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e62b12bf802d264fbf867ae4db46dfd 3 | timeCreated: 1509127148 4 | licenseType: Free 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 100100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a35acdc62fe9fa40b7389c77d7b2451 3 | folderAsset: yes 4 | timeCreated: 1509125388 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f79d55f29b39c5448aff4d83851e45e 3 | folderAsset: yes 4 | timeCreated: 1509125408 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/AudioVisualizationStrategy.cs: -------------------------------------------------------------------------------- 1 | namespace Assets.Scripts.Audio 2 | { 3 | public enum AudioVisualizationStrategy 4 | { 5 | Raw, 6 | PostScaled, 7 | PostScaledMinMax, 8 | PostScaledMax, 9 | PostScaledEnergy 10 | } 11 | } -------------------------------------------------------------------------------- /Assets/Scripts/Audio/AudioVisualizationStrategy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6193d1efd822074a8aca40edcf4921c 3 | timeCreated: 1509203286 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/BasicSpectrumProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using CSCore.DSP; 4 | 5 | namespace Assets.Scripts.Audio 6 | { 7 | /// 8 | /// BasicSpectrumProvider 9 | /// 10 | public class BasicSpectrumProvider : FftProvider, ISpectrumProvider 11 | { 12 | private readonly int _sampleRate; 13 | private readonly List _contexts = new List(); 14 | 15 | public BasicSpectrumProvider(int channels, int sampleRate, FftSize fftSize) 16 | : base(channels, fftSize) 17 | { 18 | if (sampleRate <= 0) 19 | throw new ArgumentOutOfRangeException("sampleRate"); 20 | _sampleRate = sampleRate; 21 | } 22 | 23 | public int GetFftBandIndex(float frequency) 24 | { 25 | int fftSize = (int)FftSize; 26 | double f = _sampleRate / 2.0; 27 | // ReSharper disable once PossibleLossOfFraction 28 | return (int)((frequency / f) * (fftSize / 2)); 29 | } 30 | 31 | public bool GetFftData(float[] fftResultBuffer, object context) 32 | { 33 | if (_contexts.Contains(context)) 34 | return false; 35 | 36 | _contexts.Add(context); 37 | GetFftData(fftResultBuffer); 38 | return true; 39 | } 40 | 41 | public new void Add(float[] samples, int count) 42 | { 43 | base.Add(samples, count); 44 | if (count > 0) 45 | _contexts.Clear(); 46 | } 47 | 48 | public new void Add(float left, float right) 49 | { 50 | base.Add(left, right); 51 | _contexts.Clear(); 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /Assets/Scripts/Audio/BasicSpectrumProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d453fba098a3b342b1708e877285255 3 | timeCreated: 1509125421 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/ISpectrumProvider.cs: -------------------------------------------------------------------------------- 1 | namespace Assets.Scripts.Audio 2 | { 3 | internal interface ISpectrumProvider 4 | { 5 | bool GetFftData(float[] fftBuffer, object context); 6 | int GetFftBandIndex(float frequency); 7 | } 8 | } -------------------------------------------------------------------------------- /Assets/Scripts/Audio/ISpectrumProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a98e112992a5ead4e8d09a4f3b8c7223 3 | timeCreated: 1509125421 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/LineSpectrum.cs: -------------------------------------------------------------------------------- 1 | using CSCore.DSP; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace Assets.Scripts.Audio 6 | { 7 | internal class LineSpectrum : SpectrumBase 8 | { 9 | public int BarCount 10 | { 11 | get { return SpectrumResolution; } 12 | set { SpectrumResolution = value; } 13 | } 14 | 15 | public LineSpectrum(FftSize fftSize) 16 | { 17 | FftSize = fftSize; 18 | } 19 | 20 | public float[] GetSpectrumData(double maxValue) 21 | { 22 | // Get spectrum data internal 23 | var fftBuffer = new float[(int)FftSize]; 24 | 25 | UpdateFrequencyMapping(); 26 | 27 | if (SpectrumProvider.GetFftData(fftBuffer, this)) 28 | { 29 | SpectrumPointData[] spectrumPoints = CalculateSpectrumPoints(maxValue, fftBuffer); 30 | 31 | // Convert to float[] 32 | List spectrumData = new List(); 33 | spectrumPoints.ToList().ForEach(point => spectrumData.Add((float)point.Value)); 34 | return spectrumData.ToArray(); 35 | } 36 | 37 | return null; 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Assets/Scripts/Audio/LineSpectrum.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 954b1ac222699aa45b0a42b22a009f5b 3 | timeCreated: 1509125421 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/LoopbackAudio.cs: -------------------------------------------------------------------------------- 1 | using Assets.Scripts.Audio; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using System.Linq; 5 | using System; 6 | 7 | public class LoopbackAudio : MonoBehaviour 8 | { 9 | #region Constants 10 | 11 | private const int EnergyAverageCount = 100; 12 | 13 | #endregion 14 | 15 | #region Private Member Variables 16 | 17 | private RealtimeAudio _realtimeAudio; 18 | private List _postScaleAverages = new List(); 19 | 20 | #endregion 21 | 22 | #region Public Properties 23 | 24 | public int SpectrumSize; 25 | public ScalingStrategy ScalingStrategy; 26 | public float[] SpectrumData; 27 | public float[] PostScaledSpectrumData; 28 | public float[] PostScaledMinMaxSpectrumData; 29 | public float PostScaledMax; 30 | public float PostScaledEnergy; 31 | public bool IsIdle; 32 | 33 | // Set through editor, but good values are 0.8, 0.5, 1.2, 1.5 respectively 34 | public float ThresholdToMin; 35 | public float MinAmount; 36 | public float ThresholdToMax; 37 | public float MaxAmount; 38 | 39 | #endregion 40 | 41 | #region Startup / Shutdown 42 | 43 | public void Awake() 44 | { 45 | SpectrumData = new float[SpectrumSize]; 46 | PostScaledSpectrumData = new float[SpectrumSize]; 47 | PostScaledMinMaxSpectrumData = new float[SpectrumSize]; 48 | 49 | // Used for post scaling 50 | float postScaleStep = 1.0f / SpectrumSize; 51 | 52 | // Setup loopback audio and start listening 53 | _realtimeAudio = new RealtimeAudio(SpectrumSize, ScalingStrategy,(spectrumData) => 54 | { 55 | // Raw 56 | SpectrumData = spectrumData; 57 | 58 | // Post scaled for visualization 59 | float postScaledPoint = postScaleStep; 60 | float postScaledMax = 0.0f; 61 | 62 | float postScaleAverage = 0.0f; 63 | float totalPostScaledValue = 0.0f; 64 | 65 | bool isIdle = true; 66 | 67 | // Pass 1: Scaled. Scales progressively as moving up the spectrum 68 | for (int i = 0; i < SpectrumSize; i++) 69 | { 70 | // Don't scale low band, it's too useful 71 | if (i == 0) 72 | { 73 | PostScaledSpectrumData[i] = SpectrumData[i]; 74 | } 75 | else 76 | { 77 | float postScaleValue = postScaledPoint * SpectrumData[i] * (RealtimeAudio.MaxAudioValue - (1.0f - postScaledPoint)); 78 | PostScaledSpectrumData[i] = Mathf.Clamp(postScaleValue, 0, RealtimeAudio.MaxAudioValue); // TODO: Can this be done better than a clamp? 79 | } 80 | 81 | if (PostScaledSpectrumData[i] > postScaledMax) 82 | { 83 | postScaledMax = PostScaledSpectrumData[i]; 84 | } 85 | 86 | postScaledPoint += postScaleStep; 87 | totalPostScaledValue += PostScaledSpectrumData[i]; 88 | 89 | if (spectrumData[i] > 0) 90 | { 91 | isIdle = false; 92 | } 93 | } 94 | 95 | PostScaledMax = postScaledMax; 96 | 97 | // Calculate "energy" using the post scale average 98 | postScaleAverage = totalPostScaledValue / SpectrumSize; 99 | _postScaleAverages.Add(postScaleAverage); 100 | 101 | // We only want to track EnergyAverageCount averages. 102 | // With a value of 1000, this will happen every couple seconds 103 | if (_postScaleAverages.Count == EnergyAverageCount) 104 | { 105 | _postScaleAverages.RemoveAt(0); 106 | } 107 | 108 | // Average the averages to get the energy. 109 | PostScaledEnergy = _postScaleAverages.Average(); 110 | 111 | // Pass 2: MinMax spectrum. Here we use the average. 112 | // If a given band falls below the average, reduce it 50% 113 | // otherwise boost it 50% 114 | for (int i = 0; i < SpectrumSize; i++) 115 | { 116 | float minMaxed = PostScaledSpectrumData[i]; 117 | 118 | if(minMaxed <= postScaleAverage * ThresholdToMin) 119 | { 120 | minMaxed *= MinAmount; 121 | } 122 | else if(minMaxed >= postScaleAverage * ThresholdToMax) 123 | { 124 | minMaxed *= MaxAmount; 125 | } 126 | 127 | PostScaledMinMaxSpectrumData[i] = minMaxed; 128 | } 129 | 130 | IsIdle = isIdle; 131 | }); 132 | _realtimeAudio.StartListen(); 133 | } 134 | 135 | public void Update() 136 | { 137 | 138 | } 139 | 140 | public void OnApplicationQuit() 141 | { 142 | _realtimeAudio.StopListen(); 143 | } 144 | 145 | #endregion 146 | 147 | #region Public Methods 148 | 149 | public float[] GetAllSpectrumData(AudioVisualizationStrategy strategy) 150 | { 151 | float[] spectrumData; 152 | 153 | switch (strategy) 154 | { 155 | case AudioVisualizationStrategy.Raw: 156 | spectrumData = SpectrumData; 157 | break; 158 | case AudioVisualizationStrategy.PostScaled: 159 | spectrumData = PostScaledSpectrumData; 160 | break; 161 | case AudioVisualizationStrategy.PostScaledMinMax: 162 | spectrumData = PostScaledMinMaxSpectrumData; 163 | break; 164 | default: 165 | throw new InvalidOperationException(string.Format("Invalid for GetAllSpectrumData: {0}", strategy)); 166 | } 167 | 168 | return spectrumData; 169 | } 170 | 171 | public float GetSpectrumData(AudioVisualizationStrategy strategy, int index = 0) 172 | { 173 | float spectrumData = 0.0f; 174 | 175 | switch (strategy) 176 | { 177 | case AudioVisualizationStrategy.Raw: 178 | spectrumData = SpectrumData[index]; 179 | break; 180 | case AudioVisualizationStrategy.PostScaled: 181 | spectrumData = PostScaledSpectrumData[index]; 182 | break; 183 | case AudioVisualizationStrategy.PostScaledMinMax: 184 | spectrumData = PostScaledMinMaxSpectrumData[index]; 185 | break; 186 | case AudioVisualizationStrategy.PostScaledMax: 187 | spectrumData = PostScaledMax; 188 | break; 189 | case AudioVisualizationStrategy.PostScaledEnergy: 190 | spectrumData = PostScaledEnergy; 191 | break; 192 | } 193 | 194 | return spectrumData; 195 | } 196 | 197 | #endregion 198 | } 199 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/LoopbackAudio.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e92c638b1696f4343a3fedcf34286400 3 | timeCreated: 1509125421 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/RealtimeAudio.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CSCore; 3 | using CSCore.SoundIn; 4 | using CSCore.DSP; 5 | using CSCore.Streams; 6 | 7 | namespace Assets.Scripts.Audio 8 | { 9 | public class RealtimeAudio 10 | { 11 | #region Constants 12 | 13 | private const FftSize CFftSize = FftSize.Fft4096; 14 | public const int MaxAudioValue = 10; 15 | 16 | #endregion 17 | 18 | #region Private Member Variables 19 | 20 | private WasapiLoopbackCapture _loopbackCapture; 21 | private SoundInSource _soundInSource; 22 | private IWaveSource _realtimeSource; 23 | private BasicSpectrumProvider _basicSpectrumProvider; 24 | private LineSpectrum _lineSpectrum; 25 | private SingleBlockNotificationStream _singleBlockNotificationStream; 26 | private int _spectrumSize; 27 | private ScalingStrategy _scalingStrategy; 28 | private Action _receiveAudio; 29 | 30 | #endregion 31 | 32 | #region Constructor 33 | 34 | public RealtimeAudio(int spectrumSize, ScalingStrategy scalingStrategy, Action receiveAudio) 35 | { 36 | _spectrumSize = spectrumSize; 37 | _scalingStrategy = scalingStrategy; 38 | _receiveAudio = receiveAudio; 39 | } 40 | 41 | #endregion 42 | 43 | #region Public Properties 44 | 45 | public BasicSpectrumProvider BasicSpectrumProvider { get { return _basicSpectrumProvider; } } 46 | 47 | #endregion 48 | 49 | #region Public Methods 50 | 51 | public void StartListen() 52 | { 53 | _loopbackCapture = new WasapiLoopbackCapture(); 54 | _loopbackCapture.Initialize(); 55 | 56 | _soundInSource = new SoundInSource(_loopbackCapture); 57 | 58 | _basicSpectrumProvider = new BasicSpectrumProvider(_soundInSource.WaveFormat.Channels, _soundInSource.WaveFormat.SampleRate, CFftSize); 59 | 60 | _lineSpectrum = new LineSpectrum(CFftSize) 61 | { 62 | SpectrumProvider = _basicSpectrumProvider, 63 | BarCount = _spectrumSize, 64 | UseAverage = true, 65 | IsXLogScale = true, 66 | ScalingStrategy = _scalingStrategy 67 | }; 68 | 69 | _loopbackCapture.Start(); 70 | 71 | _singleBlockNotificationStream = new SingleBlockNotificationStream(_soundInSource.ToSampleSource()); 72 | _realtimeSource = _singleBlockNotificationStream.ToWaveSource(); 73 | 74 | byte[] buffer = new byte[_realtimeSource.WaveFormat.BytesPerSecond / 2]; 75 | 76 | _soundInSource.DataAvailable += (s, ea) => 77 | { 78 | while (_realtimeSource.Read(buffer, 0, buffer.Length) > 0) 79 | { 80 | float[] spectrumData = _lineSpectrum.GetSpectrumData(MaxAudioValue); 81 | 82 | if (spectrumData != null && _receiveAudio != null) 83 | { 84 | _receiveAudio(spectrumData); 85 | } 86 | } 87 | }; 88 | 89 | _singleBlockNotificationStream.SingleBlockRead += singleBlockNotificationStream_SingleBlockRead; 90 | } 91 | 92 | public void StopListen() 93 | { 94 | _singleBlockNotificationStream.SingleBlockRead -= singleBlockNotificationStream_SingleBlockRead; 95 | 96 | _soundInSource.Dispose(); 97 | _realtimeSource.Dispose(); 98 | _receiveAudio = null; 99 | _loopbackCapture.Stop(); 100 | _loopbackCapture.Dispose(); 101 | } 102 | 103 | #endregion 104 | 105 | #region Private Methods 106 | 107 | private void singleBlockNotificationStream_SingleBlockRead(object sender, SingleBlockReadEventArgs e) 108 | { 109 | _basicSpectrumProvider.Add(e.Left, e.Right); 110 | } 111 | 112 | #endregion 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/RealtimeAudio.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 572beb1d0b1b4694d943821692dafbe9 3 | timeCreated: 1509125420 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/ScalingStrategy.cs: -------------------------------------------------------------------------------- 1 | namespace Assets.Scripts.Audio 2 | { 3 | public enum ScalingStrategy 4 | { 5 | Decibel, 6 | Linear, 7 | Sqrt 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Scripts/Audio/ScalingStrategy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 692e08b6e2ba2f84dab8b190e6330d2a 3 | timeCreated: 1509125421 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Audio/SpectrumBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Diagnostics; 5 | using CSCore; 6 | using CSCore.DSP; 7 | 8 | namespace Assets.Scripts.Audio 9 | { 10 | internal class SpectrumBase : INotifyPropertyChanged 11 | { 12 | private const int ScaleFactorLinear = 9; 13 | protected const int ScaleFactorSqr = 2; 14 | protected const double MinDbValue = -90; 15 | protected const double MaxDbValue = 0; 16 | protected const double DbScale = (MaxDbValue - MinDbValue); 17 | 18 | private int _fftSize; 19 | private bool _isXLogScale; 20 | private int _maxFftIndex; 21 | private int _maximumFrequency = 20000; 22 | private int _maximumFrequencyIndex; 23 | private int _minimumFrequency = 20; //Default spectrum from 20Hz to 20kHz 24 | private int _minimumFrequencyIndex; 25 | private ScalingStrategy _scalingStrategy; 26 | private int[] _spectrumIndexMax; 27 | private int[] _spectrumLogScaleIndexMax; 28 | private ISpectrumProvider _spectrumProvider; 29 | 30 | protected int SpectrumResolution; 31 | private bool _useAverage; 32 | 33 | public int MaximumFrequency 34 | { 35 | get { return _maximumFrequency; } 36 | set 37 | { 38 | if (value <= MinimumFrequency) 39 | { 40 | throw new ArgumentOutOfRangeException("value", 41 | "Value must not be less or equal the MinimumFrequency."); 42 | } 43 | _maximumFrequency = value; 44 | UpdateFrequencyMapping(); 45 | 46 | RaisePropertyChanged("MaximumFrequency"); 47 | } 48 | } 49 | 50 | public int MinimumFrequency 51 | { 52 | get { return _minimumFrequency; } 53 | set 54 | { 55 | if (value < 0) 56 | throw new ArgumentOutOfRangeException("value"); 57 | _minimumFrequency = value; 58 | UpdateFrequencyMapping(); 59 | 60 | RaisePropertyChanged("MinimumFrequency"); 61 | } 62 | } 63 | 64 | [BrowsableAttribute(false)] 65 | public ISpectrumProvider SpectrumProvider 66 | { 67 | get { return _spectrumProvider; } 68 | set 69 | { 70 | if (value == null) 71 | throw new ArgumentNullException("value"); 72 | _spectrumProvider = value; 73 | 74 | RaisePropertyChanged("SpectrumProvider"); 75 | } 76 | } 77 | 78 | public bool IsXLogScale 79 | { 80 | get { return _isXLogScale; } 81 | set 82 | { 83 | _isXLogScale = value; 84 | UpdateFrequencyMapping(); 85 | RaisePropertyChanged("IsXLogScale"); 86 | } 87 | } 88 | 89 | public ScalingStrategy ScalingStrategy 90 | { 91 | get { return _scalingStrategy; } 92 | set 93 | { 94 | _scalingStrategy = value; 95 | RaisePropertyChanged("ScalingStrategy"); 96 | } 97 | } 98 | 99 | public bool UseAverage 100 | { 101 | get { return _useAverage; } 102 | set 103 | { 104 | _useAverage = value; 105 | RaisePropertyChanged("UseAverage"); 106 | } 107 | } 108 | 109 | [BrowsableAttribute(false)] 110 | public FftSize FftSize 111 | { 112 | get { return (FftSize) _fftSize; } 113 | protected set 114 | { 115 | if ((int) Math.Log((int) value, 2) % 1 != 0) 116 | throw new ArgumentOutOfRangeException("value"); 117 | 118 | _fftSize = (int) value; 119 | _maxFftIndex = _fftSize / 2 - 1; 120 | 121 | RaisePropertyChanged("FFTSize"); 122 | } 123 | } 124 | 125 | public event PropertyChangedEventHandler PropertyChanged; 126 | 127 | protected virtual void UpdateFrequencyMapping() 128 | { 129 | _maximumFrequencyIndex = Math.Min(_spectrumProvider.GetFftBandIndex(MaximumFrequency) + 1, _maxFftIndex); 130 | _minimumFrequencyIndex = Math.Min(_spectrumProvider.GetFftBandIndex(MinimumFrequency), _maxFftIndex); 131 | 132 | int actualResolution = SpectrumResolution; 133 | 134 | int indexCount = _maximumFrequencyIndex - _minimumFrequencyIndex; 135 | double linearIndexBucketSize = Math.Round(indexCount / (double) actualResolution, 3); 136 | 137 | _spectrumIndexMax = _spectrumIndexMax.CheckBuffer(actualResolution, true); 138 | _spectrumLogScaleIndexMax = _spectrumLogScaleIndexMax.CheckBuffer(actualResolution, true); 139 | 140 | double maxLog = Math.Log(actualResolution, actualResolution); 141 | for (int i = 1; i < actualResolution; i++) 142 | { 143 | int logIndex = 144 | (int) ((maxLog - Math.Log((actualResolution + 1) - i, (actualResolution + 1))) * indexCount) + 145 | _minimumFrequencyIndex; 146 | 147 | _spectrumIndexMax[i - 1] = _minimumFrequencyIndex + (int) (i * linearIndexBucketSize); 148 | _spectrumLogScaleIndexMax[i - 1] = logIndex; 149 | } 150 | 151 | if (actualResolution > 0) 152 | { 153 | _spectrumIndexMax[_spectrumIndexMax.Length - 1] = 154 | _spectrumLogScaleIndexMax[_spectrumLogScaleIndexMax.Length - 1] = _maximumFrequencyIndex; 155 | } 156 | } 157 | 158 | protected virtual SpectrumPointData[] CalculateSpectrumPoints(double maxValue, float[] fftBuffer) 159 | { 160 | var dataPoints = new List(); 161 | 162 | double value0 = 0, value = 0; 163 | double lastValue = 0; 164 | double actualMaxValue = maxValue; 165 | int spectrumPointIndex = 0; 166 | 167 | for (int i = _minimumFrequencyIndex; i <= _maximumFrequencyIndex; i++) 168 | { 169 | switch (ScalingStrategy) 170 | { 171 | case ScalingStrategy.Decibel: 172 | value0 = (((20 * Math.Log10(fftBuffer[i])) - MinDbValue) / DbScale) * actualMaxValue; 173 | break; 174 | case ScalingStrategy.Linear: 175 | value0 = (fftBuffer[i] * ScaleFactorLinear) * actualMaxValue; 176 | break; 177 | case ScalingStrategy.Sqrt: 178 | value0 = ((Math.Sqrt(fftBuffer[i])) * ScaleFactorSqr) * actualMaxValue; 179 | break; 180 | } 181 | 182 | bool recalc = true; 183 | 184 | value = Math.Max(0, Math.Max(value0, value)); 185 | 186 | while (spectrumPointIndex <= _spectrumIndexMax.Length - 1 && 187 | i == 188 | (IsXLogScale 189 | ? _spectrumLogScaleIndexMax[spectrumPointIndex] 190 | : _spectrumIndexMax[spectrumPointIndex])) 191 | { 192 | if (!recalc) 193 | value = lastValue; 194 | 195 | if (value > maxValue) 196 | value = maxValue; 197 | 198 | if (_useAverage && spectrumPointIndex > 0) 199 | value = (lastValue + value) / 2.0; 200 | 201 | dataPoints.Add(new SpectrumPointData {SpectrumPointIndex = spectrumPointIndex, Value = value}); 202 | 203 | lastValue = value; 204 | value = 0.0; 205 | spectrumPointIndex++; 206 | recalc = false; 207 | } 208 | 209 | //value = 0; 210 | } 211 | 212 | return dataPoints.ToArray(); 213 | } 214 | 215 | protected void RaisePropertyChanged(string propertyName) 216 | { 217 | if (PropertyChanged != null && !String.IsNullOrEmpty(propertyName)) 218 | PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 219 | } 220 | 221 | [DebuggerDisplay("{Value}")] 222 | protected struct SpectrumPointData 223 | { 224 | public int SpectrumPointIndex; 225 | public double Value; 226 | } 227 | } 228 | } -------------------------------------------------------------------------------- /Assets/Scripts/Audio/SpectrumBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 588b0841a1681b44b957b005ac9879c7 3 | timeCreated: 1509125420 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Behaviors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d10184d3c8e11354180e16bea1108796 3 | folderAsset: yes 4 | timeCreated: 1509126826 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/Behaviors/RandomMaterialColorObject.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Assets.Scripts.Behaviors 4 | { 5 | public class RandomMaterialColorObject : MonoBehaviour 6 | { 7 | #region Startup / Shutdown 8 | 9 | public void Awake() 10 | { 11 | Renderer rend = GetComponent(); 12 | Color color = Globals.GetRandomStrongColor(); 13 | rend.material.SetColor("_Color", color); 14 | rend.material.SetColor("_EmissionColor", color); 15 | } 16 | 17 | #endregion 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Assets/Scripts/Behaviors/RandomMaterialColorObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2132b3692d196814eb1aa56ec0a8bc6d 3 | timeCreated: 1509126826 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Extensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd06bb9d6011a8446b10b7ac18a7425c 3 | folderAsset: yes 4 | timeCreated: 1509127359 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/Extensions/ListExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Assets.Scripts.Extensions 5 | { 6 | public static class ListExtensions 7 | { 8 | private static Random _random = new Random(); 9 | 10 | public static void Shuffle(this IList list) 11 | { 12 | int n = list.Count; 13 | while (n > 1) 14 | { 15 | n--; 16 | int k = _random.Next(n + 1); 17 | T value = list[k]; 18 | list[k] = list[n]; 19 | list[n] = value; 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/Scripts/Extensions/ListExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3789451e1366e69458aed2922ac5b26b 3 | timeCreated: 1509127359 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Globals.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | namespace Assets.Scripts 5 | { 6 | public static class Globals 7 | { 8 | public static List StrongColors = new List(); 9 | public static List PastelColors = new List(); 10 | 11 | static Globals() 12 | { 13 | PastelColors.Add(new Color(1.0f, 0.5f, 0.5f)); 14 | PastelColors.Add(new Color(1.0f, 0.75f, 0.5f)); 15 | PastelColors.Add(new Color(1.0f, 1.0f, 0.5f)); 16 | PastelColors.Add(new Color(0.75f, 1.0f, 0.5f)); 17 | PastelColors.Add(new Color(0.5f, 1.0f, 0.5f)); 18 | PastelColors.Add(new Color(0.5f, 1.0f, 0.75f)); 19 | PastelColors.Add(new Color(0.5f, 1.0f, 1.0f)); 20 | PastelColors.Add(new Color(0.5f, 0.75f, 1.0f)); 21 | PastelColors.Add(new Color(0.5f, 0.5f, 1.0f)); 22 | PastelColors.Add(new Color(0.75f, 0.5f, 1.0f)); 23 | PastelColors.Add(new Color(1.0f, 0.5f, 1.0f)); 24 | PastelColors.Add(new Color(1.0f, 0.5f, 0.75f)); 25 | 26 | StrongColors.Add(FromRGB(255, 0, 51)); 27 | StrongColors.Add(FromRGB(0, 255, 51)); 28 | StrongColors.Add(FromRGB(0, 51, 255)); 29 | StrongColors.Add(FromRGB(255, 255, 51)); 30 | StrongColors.Add(FromRGB(255, 87, 34)); 31 | StrongColors.Add(FromRGB(41, 182, 246)); 32 | StrongColors.Add(FromRGB(74, 20, 140)); 33 | StrongColors.Add(FromRGB(233, 30, 99)); 34 | StrongColors.Add(FromRGB(255, 153, 0)); 35 | StrongColors.Add(FromRGB(204, 0, 153)); 36 | } 37 | 38 | public static Color GetRandomPastelColor() 39 | { 40 | return PastelColors[Random.Range(0, PastelColors.Count - 1)]; 41 | } 42 | 43 | public static Color GetRandomStrongColor() 44 | { 45 | return StrongColors[Random.Range(0, StrongColors.Count - 1)]; 46 | } 47 | 48 | private static Color FromRGB(int r, int g, int b) 49 | { 50 | return new Color(r / 255.0f, g / 255.0f, b / 255.0f); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Assets/Scripts/Globals.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7249b460713e07d48a6db7f8e9fce030 3 | timeCreated: 1509126647 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b61a57008a26af46a624fc2e6e4b1f0 3 | folderAsset: yes 4 | timeCreated: 1509125457 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects/Base.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1283d77426310684c86d1ed8f7029c91 3 | folderAsset: yes 4 | timeCreated: 1509125463 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects/Base/VisualizationEffectBase.cs: -------------------------------------------------------------------------------- 1 | using Assets.Scripts.Audio; 2 | using UnityEngine; 3 | 4 | namespace Assets.Scripts.ReactiveEffects.Base 5 | { 6 | public abstract class VisualizationEffectBase : MonoBehaviour 7 | { 8 | #region Private Member Variables 9 | 10 | private LoopbackAudio _loopbackAudio; 11 | 12 | #endregion 13 | 14 | #region Protected Properties 15 | 16 | protected LoopbackAudio LoopbackAudio { get { return _loopbackAudio; } } 17 | 18 | #endregion 19 | 20 | #region Public Properties 21 | 22 | public AudioVisualizationStrategy AudioVisualizationStrategy; 23 | public int AudioSampleIndex; 24 | public float PrimaryScaleFactor; 25 | 26 | #endregion 27 | 28 | #region Startup / Shutdown 29 | 30 | public virtual void Start() 31 | { 32 | // References and setup 33 | _loopbackAudio = FindObjectOfType(); 34 | } 35 | 36 | #endregion 37 | 38 | #region Protected Methods 39 | 40 | protected float GetAudioData() 41 | { 42 | // Get audio data 43 | return _loopbackAudio.GetSpectrumData(AudioVisualizationStrategy, AudioSampleIndex); 44 | } 45 | 46 | #endregion 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects/Base/VisualizationEffectBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 810354e1fea9d334e8e4ed264ba3d7b6 3 | timeCreated: 1509125471 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects/MaterialColorIntensityReactiveEffect.cs: -------------------------------------------------------------------------------- 1 | using Assets.Scripts.ReactiveEffects.Base; 2 | using UnityEngine; 3 | 4 | namespace Assets.Scripts.ReactiveEffects 5 | { 6 | public class MaterialColorIntensityReactiveEffect : VisualizationEffectBase 7 | { 8 | #region Private Member Variables 9 | 10 | private Renderer _renderer; 11 | private Color _initialColor; 12 | private Color _initialEmissionColor; 13 | 14 | #endregion 15 | 16 | #region Public Properties 17 | 18 | public float MinIntensity; 19 | public float IntensityScale; 20 | public float MinEmissionIntensity; 21 | public float EmissionIntensityScale; 22 | 23 | #endregion 24 | 25 | #region Startup / Shutdown 26 | 27 | public override void Start() 28 | { 29 | base.Start(); 30 | 31 | _renderer = GetComponent(); 32 | _initialColor = _renderer.material.GetColor("_Color"); 33 | _initialEmissionColor = _renderer.material.GetColor("_EmissionColor"); 34 | } 35 | 36 | #endregion 37 | 38 | #region Render 39 | 40 | public void Update() 41 | { 42 | float audioData = GetAudioData(); 43 | float scaledAmount = Mathf.Clamp(MinIntensity + (audioData * IntensityScale), 0.0f, 1.0f); 44 | float scaledEmissionAmount = Mathf.Clamp(MinEmissionIntensity + (audioData * EmissionIntensityScale), 0.0f, 1.0f); 45 | Color scaledColor = _initialColor * scaledAmount; 46 | Color scaledEmissionColor = _initialEmissionColor * scaledEmissionAmount; 47 | 48 | _renderer.material.SetColor("_Color", scaledColor); 49 | _renderer.material.SetColor("_EmissionColor", scaledEmissionColor); 50 | } 51 | 52 | #endregion 53 | 54 | #region Public Methods 55 | 56 | public void UpdateColor(Color color) 57 | { 58 | _initialColor = color; 59 | _initialEmissionColor = color; 60 | } 61 | 62 | #endregion 63 | } 64 | } -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects/MaterialColorIntensityReactiveEffect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e23875de3f875c47b6b582670277d87 3 | timeCreated: 1509126303 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects/ObjectScaleReactiveEffect.cs: -------------------------------------------------------------------------------- 1 | using Assets.Scripts.ReactiveEffects.Base; 2 | using UnityEngine; 3 | 4 | namespace Assets.Scripts.ReactiveEffects 5 | { 6 | public class ObjectScaleReactiveEffect : VisualizationEffectBase 7 | { 8 | #region Private Member Variables 9 | 10 | private Vector3 _initialScale; 11 | 12 | #endregion 13 | 14 | #region Public Properties 15 | 16 | public Vector3 ScaleIntensity; 17 | 18 | #endregion 19 | 20 | #region Startup / Shutdown 21 | 22 | public override void Start() 23 | { 24 | base.Start(); 25 | 26 | _initialScale = transform.localScale; 27 | } 28 | 29 | #endregion 30 | 31 | #region Render 32 | 33 | public void Update() 34 | { 35 | float audioData = GetAudioData(); 36 | float xScaleAmount = audioData * ScaleIntensity.x; 37 | float yScaleAmount = audioData * ScaleIntensity.y; 38 | float zScaleAmount = audioData * ScaleIntensity.z; 39 | gameObject.transform.localScale = _initialScale + new Vector3(xScaleAmount, yScaleAmount, zScaleAmount); 40 | } 41 | 42 | #endregion 43 | } 44 | } -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects/ObjectScaleReactiveEffect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f13a833d6049fab4d88af257d9e74d75 3 | timeCreated: 1509126296 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects/PrefabLayoutAudioObject.cs: -------------------------------------------------------------------------------- 1 | using Assets.Scripts; 2 | using Assets.Scripts.Extensions; 3 | using Assets.Scripts.ReactiveEffects.Base; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | 8 | #region Public Enums 9 | 10 | public enum PrefabLayoutType 11 | { 12 | XLinear, 13 | XZSpread, 14 | XZCircular 15 | } 16 | 17 | #endregion 18 | 19 | public class PrefabLayoutAudioObject : VisualizationEffectBase 20 | { 21 | #region Private Member Variables 22 | 23 | private List _gameObjects = new List(); 24 | 25 | #endregion 26 | 27 | #region Public Properties 28 | 29 | public GameObject Prefab; 30 | public PrefabLayoutType LayoutType; 31 | public float ObjectWidthDepth; 32 | public float CircularLayoutRadius; 33 | public Vector3 ObjectRotation; 34 | public Vector3 RotationOffset; 35 | public bool Shuffle; 36 | public int DesiredColorGroupCount; 37 | 38 | #endregion 39 | 40 | #region Startup / Shutdown 41 | 42 | public override void Start() 43 | { 44 | base.Start(); 45 | 46 | int groupSize = LoopbackAudio.SpectrumSize / DesiredColorGroupCount; 47 | 48 | // Instantiate GameObjects 49 | for (int i = 0; i < LoopbackAudio.SpectrumSize; i++) 50 | { 51 | GameObject newGameObject = Instantiate(Prefab); 52 | newGameObject.transform.parent = gameObject.transform; 53 | _gameObjects.Add(newGameObject); 54 | 55 | int group = (i / groupSize); 56 | 57 | Renderer rend = newGameObject.GetComponent(); 58 | Color color = Globals.StrongColors[group]; 59 | rend.material.SetColor("_Color", color); 60 | rend.material.SetColor("_EmissionColor", color); 61 | 62 | // Try to set various other used scripts 63 | VisualizationEffectBase[] visualizationEffects = newGameObject.GetComponents(); 64 | 65 | if (visualizationEffects != null && visualizationEffects.Length > 0) 66 | { 67 | foreach (VisualizationEffectBase visualizationEffect in visualizationEffects) 68 | { 69 | visualizationEffect.AudioVisualizationStrategy = AudioVisualizationStrategy; 70 | visualizationEffect.AudioSampleIndex = i; 71 | } 72 | } 73 | } 74 | 75 | performLayout(); 76 | } 77 | 78 | #endregion 79 | 80 | #region Render 81 | 82 | public void Update() 83 | { 84 | #if DEBUG 85 | 86 | if (Input.GetKeyDown(KeyCode.L)) 87 | { 88 | performLayout(); 89 | } 90 | 91 | #endif 92 | } 93 | 94 | #endregion 95 | 96 | #region Private Methods 97 | 98 | private void performLayout() 99 | { 100 | List layoutPositions = new List(); 101 | 102 | switch (LayoutType) 103 | { 104 | case PrefabLayoutType.XLinear: 105 | 106 | float offsetX = -(((LoopbackAudio.SpectrumData.Length) / 2.0f) * ObjectWidthDepth); 107 | float xStep = ObjectWidthDepth; 108 | 109 | for (int i = 0; i < LoopbackAudio.SpectrumData.Length; i++) 110 | { 111 | layoutPositions.Add(new Vector3(offsetX, 0.0f, 0.0f)); 112 | 113 | offsetX += xStep; 114 | } 115 | 116 | for (int i = 0; i < layoutPositions.Count; i++) 117 | { 118 | _gameObjects[i].transform.localPosition = layoutPositions[i]; 119 | } 120 | 121 | break; 122 | case PrefabLayoutType.XZSpread: 123 | 124 | int layoutStepCount = (int)Mathf.Sqrt(LoopbackAudio.SpectrumData.Length); 125 | float offsetStep = ObjectWidthDepth; 126 | float xzOffset = -((LoopbackAudio.SpectrumData.Length * offsetStep) / 16.0f) - (offsetStep / 2.0f); 127 | Vector3 initialOffset = new Vector3(xzOffset, 0.0f, xzOffset) + gameObject.transform.position; 128 | Vector3 offset = new Vector3(initialOffset.x, initialOffset.y, initialOffset.z); 129 | 130 | for (int i = 0; i < layoutStepCount; i++) 131 | { 132 | offset.x += offsetStep; 133 | 134 | for (int j = 0; j < layoutStepCount; j++) 135 | { 136 | offset.z += offsetStep; 137 | layoutPositions.Add(new Vector3(offset.x, offset.y, offset.z)); 138 | } 139 | 140 | offset.z = initialOffset.z; 141 | } 142 | 143 | if (Shuffle) 144 | { 145 | layoutPositions.Shuffle(); 146 | } 147 | 148 | for (int i = 0; i < layoutPositions.Count; i++) 149 | { 150 | _gameObjects[i].transform.localPosition = layoutPositions[i]; 151 | } 152 | 153 | break; 154 | case PrefabLayoutType.XZCircular: 155 | 156 | float angleStep = (360.0f) / LoopbackAudio.SpectrumData.Length; 157 | float currentAngle = 0.0f; 158 | 159 | for (int i = 0; i < LoopbackAudio.SpectrumData.Length; i++) 160 | { 161 | float angle = ((float)i / (LoopbackAudio.SpectrumSize) * Mathf.PI * 2.0f) - (Mathf.PI / 2.0f); 162 | 163 | float x = Mathf.Sin(angle) * CircularLayoutRadius; 164 | float z = Mathf.Cos(angle) * CircularLayoutRadius; 165 | 166 | layoutPositions.Add(new Vector3(x + gameObject.transform.position.x, gameObject.transform.position.y, z + gameObject.transform.position.z)); 167 | 168 | currentAngle += angleStep; 169 | } 170 | 171 | if (Shuffle) 172 | { 173 | layoutPositions.Shuffle(); 174 | } 175 | 176 | for (int i = 0; i < layoutPositions.Count; i++) 177 | { 178 | _gameObjects[i].transform.localPosition = layoutPositions[i]; 179 | _gameObjects[i].transform.Rotate(ObjectRotation); 180 | } 181 | 182 | break; 183 | } 184 | 185 | gameObject.transform.Rotate(RotationOffset); 186 | } 187 | 188 | #endregion 189 | } -------------------------------------------------------------------------------- /Assets/Scripts/ReactiveEffects/PrefabLayoutAudioObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83e83a0c625a37143b26eee36ba3d89c 3 | timeCreated: 1509127359 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/_scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 514ba2419e6b53a4fa564be8b4ff68cf 3 | folderAsset: yes 4 | timeCreated: 1509125294 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/_scenes/Main.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 8 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} 42 | --- !u!157 &3 43 | LightmapSettings: 44 | m_ObjectHideFlags: 0 45 | serializedVersion: 11 46 | m_GIWorkflowMode: 0 47 | m_GISettings: 48 | serializedVersion: 2 49 | m_BounceScale: 1 50 | m_IndirectOutputScale: 1 51 | m_AlbedoBoost: 1 52 | m_TemporalCoherenceThreshold: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 9 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_TextureWidth: 1024 61 | m_TextureHeight: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_LightingDataAsset: {fileID: 0} 92 | m_UseShadowmask: 1 93 | --- !u!196 &4 94 | NavMeshSettings: 95 | serializedVersion: 2 96 | m_ObjectHideFlags: 0 97 | m_BuildSettings: 98 | serializedVersion: 2 99 | agentTypeID: 0 100 | agentRadius: 0.5 101 | agentHeight: 2 102 | agentSlope: 45 103 | agentClimb: 0.4 104 | ledgeDropHeight: 0 105 | maxJumpAcrossDistance: 0 106 | minRegionArea: 2 107 | manualCellSize: 0 108 | cellSize: 0.16666667 109 | manualTileSize: 0 110 | tileSize: 256 111 | accuratePlacement: 0 112 | debug: 113 | m_Flags: 0 114 | m_NavMeshData: {fileID: 0} 115 | --- !u!1 &99621078 116 | GameObject: 117 | m_ObjectHideFlags: 0 118 | m_PrefabParentObject: {fileID: 0} 119 | m_PrefabInternal: {fileID: 0} 120 | serializedVersion: 5 121 | m_Component: 122 | - component: {fileID: 99621079} 123 | m_Layer: 0 124 | m_Name: Energy 125 | m_TagString: Untagged 126 | m_Icon: {fileID: 0} 127 | m_NavMeshLayer: 0 128 | m_StaticEditorFlags: 0 129 | m_IsActive: 1 130 | --- !u!4 &99621079 131 | Transform: 132 | m_ObjectHideFlags: 0 133 | m_PrefabParentObject: {fileID: 0} 134 | m_PrefabInternal: {fileID: 0} 135 | m_GameObject: {fileID: 99621078} 136 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 137 | m_LocalPosition: {x: 3, y: -7, z: 0} 138 | m_LocalScale: {x: 1, y: 1, z: 1} 139 | m_Children: 140 | - {fileID: 1209190099} 141 | - {fileID: 1953202698} 142 | m_Father: {fileID: 0} 143 | m_RootOrder: 6 144 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 145 | --- !u!1 &179407662 146 | GameObject: 147 | m_ObjectHideFlags: 0 148 | m_PrefabParentObject: {fileID: 0} 149 | m_PrefabInternal: {fileID: 0} 150 | serializedVersion: 5 151 | m_Component: 152 | - component: {fileID: 179407663} 153 | - component: {fileID: 179407666} 154 | - component: {fileID: 179407665} 155 | - component: {fileID: 179407664} 156 | m_Layer: 0 157 | m_Name: Measuring Stick 158 | m_TagString: Untagged 159 | m_Icon: {fileID: 0} 160 | m_NavMeshLayer: 0 161 | m_StaticEditorFlags: 0 162 | m_IsActive: 1 163 | --- !u!4 &179407663 164 | Transform: 165 | m_ObjectHideFlags: 0 166 | m_PrefabParentObject: {fileID: 0} 167 | m_PrefabInternal: {fileID: 0} 168 | m_GameObject: {fileID: 179407662} 169 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 170 | m_LocalPosition: {x: -10, y: 0, z: 0} 171 | m_LocalScale: {x: 1, y: 10, z: 1} 172 | m_Children: [] 173 | m_Father: {fileID: 265813037} 174 | m_RootOrder: 2 175 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 176 | --- !u!23 &179407664 177 | MeshRenderer: 178 | m_ObjectHideFlags: 0 179 | m_PrefabParentObject: {fileID: 0} 180 | m_PrefabInternal: {fileID: 0} 181 | m_GameObject: {fileID: 179407662} 182 | m_Enabled: 1 183 | m_CastShadows: 1 184 | m_ReceiveShadows: 1 185 | m_DynamicOccludee: 1 186 | m_MotionVectors: 1 187 | m_LightProbeUsage: 1 188 | m_ReflectionProbeUsage: 1 189 | m_Materials: 190 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 191 | m_StaticBatchInfo: 192 | firstSubMesh: 0 193 | subMeshCount: 0 194 | m_StaticBatchRoot: {fileID: 0} 195 | m_ProbeAnchor: {fileID: 0} 196 | m_LightProbeVolumeOverride: {fileID: 0} 197 | m_ScaleInLightmap: 1 198 | m_PreserveUVs: 1 199 | m_IgnoreNormalsForChartDetection: 0 200 | m_ImportantGI: 0 201 | m_StitchLightmapSeams: 0 202 | m_SelectedEditorRenderState: 3 203 | m_MinimumChartSize: 4 204 | m_AutoUVMaxDistance: 0.5 205 | m_AutoUVMaxAngle: 89 206 | m_LightmapParameters: {fileID: 0} 207 | m_SortingLayerID: 0 208 | m_SortingLayer: 0 209 | m_SortingOrder: 0 210 | --- !u!65 &179407665 211 | BoxCollider: 212 | m_ObjectHideFlags: 0 213 | m_PrefabParentObject: {fileID: 0} 214 | m_PrefabInternal: {fileID: 0} 215 | m_GameObject: {fileID: 179407662} 216 | m_Material: {fileID: 0} 217 | m_IsTrigger: 0 218 | m_Enabled: 1 219 | serializedVersion: 2 220 | m_Size: {x: 1, y: 1, z: 1} 221 | m_Center: {x: 0, y: 0, z: 0} 222 | --- !u!33 &179407666 223 | MeshFilter: 224 | m_ObjectHideFlags: 0 225 | m_PrefabParentObject: {fileID: 0} 226 | m_PrefabInternal: {fileID: 0} 227 | m_GameObject: {fileID: 179407662} 228 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 229 | --- !u!1 &265813036 230 | GameObject: 231 | m_ObjectHideFlags: 0 232 | m_PrefabParentObject: {fileID: 0} 233 | m_PrefabInternal: {fileID: 0} 234 | serializedVersion: 5 235 | m_Component: 236 | - component: {fileID: 265813037} 237 | m_Layer: 0 238 | m_Name: Post Scaled 239 | m_TagString: Untagged 240 | m_Icon: {fileID: 0} 241 | m_NavMeshLayer: 0 242 | m_StaticEditorFlags: 0 243 | m_IsActive: 1 244 | --- !u!4 &265813037 245 | Transform: 246 | m_ObjectHideFlags: 0 247 | m_PrefabParentObject: {fileID: 0} 248 | m_PrefabInternal: {fileID: 0} 249 | m_GameObject: {fileID: 265813036} 250 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 251 | m_LocalPosition: {x: -13, y: -6, z: 0} 252 | m_LocalScale: {x: 1, y: 1, z: 1} 253 | m_Children: 254 | - {fileID: 319769784} 255 | - {fileID: 712860078} 256 | - {fileID: 179407663} 257 | m_Father: {fileID: 0} 258 | m_RootOrder: 4 259 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 260 | --- !u!1 &319769783 261 | GameObject: 262 | m_ObjectHideFlags: 0 263 | m_PrefabParentObject: {fileID: 0} 264 | m_PrefabInternal: {fileID: 0} 265 | serializedVersion: 5 266 | m_Component: 267 | - component: {fileID: 319769784} 268 | - component: {fileID: 319769786} 269 | - component: {fileID: 319769785} 270 | m_Layer: 0 271 | m_Name: Header 272 | m_TagString: Untagged 273 | m_Icon: {fileID: 0} 274 | m_NavMeshLayer: 0 275 | m_StaticEditorFlags: 0 276 | m_IsActive: 1 277 | --- !u!4 &319769784 278 | Transform: 279 | m_ObjectHideFlags: 0 280 | m_PrefabParentObject: {fileID: 0} 281 | m_PrefabInternal: {fileID: 0} 282 | m_GameObject: {fileID: 319769783} 283 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 284 | m_LocalPosition: {x: -4, y: 6, z: 0} 285 | m_LocalScale: {x: 1, y: 1, z: 1} 286 | m_Children: [] 287 | m_Father: {fileID: 265813037} 288 | m_RootOrder: 0 289 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 290 | --- !u!102 &319769785 291 | TextMesh: 292 | serializedVersion: 3 293 | m_ObjectHideFlags: 0 294 | m_PrefabParentObject: {fileID: 0} 295 | m_PrefabInternal: {fileID: 0} 296 | m_GameObject: {fileID: 319769783} 297 | m_Text: Scaled 298 | m_OffsetZ: 0 299 | m_CharacterSize: 1 300 | m_LineSpacing: 1 301 | m_Anchor: 0 302 | m_Alignment: 0 303 | m_TabSize: 4 304 | m_FontSize: 0 305 | m_FontStyle: 0 306 | m_RichText: 1 307 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 308 | m_Color: 309 | serializedVersion: 2 310 | rgba: 4294967295 311 | --- !u!23 &319769786 312 | MeshRenderer: 313 | m_ObjectHideFlags: 0 314 | m_PrefabParentObject: {fileID: 0} 315 | m_PrefabInternal: {fileID: 0} 316 | m_GameObject: {fileID: 319769783} 317 | m_Enabled: 1 318 | m_CastShadows: 1 319 | m_ReceiveShadows: 1 320 | m_DynamicOccludee: 1 321 | m_MotionVectors: 1 322 | m_LightProbeUsage: 1 323 | m_ReflectionProbeUsage: 1 324 | m_Materials: 325 | - {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0} 326 | m_StaticBatchInfo: 327 | firstSubMesh: 0 328 | subMeshCount: 0 329 | m_StaticBatchRoot: {fileID: 0} 330 | m_ProbeAnchor: {fileID: 0} 331 | m_LightProbeVolumeOverride: {fileID: 0} 332 | m_ScaleInLightmap: 1 333 | m_PreserveUVs: 0 334 | m_IgnoreNormalsForChartDetection: 0 335 | m_ImportantGI: 0 336 | m_StitchLightmapSeams: 0 337 | m_SelectedEditorRenderState: 3 338 | m_MinimumChartSize: 4 339 | m_AutoUVMaxDistance: 0.5 340 | m_AutoUVMaxAngle: 89 341 | m_LightmapParameters: {fileID: 0} 342 | m_SortingLayerID: 0 343 | m_SortingLayer: 0 344 | m_SortingOrder: 0 345 | --- !u!1 &712860077 346 | GameObject: 347 | m_ObjectHideFlags: 0 348 | m_PrefabParentObject: {fileID: 0} 349 | m_PrefabInternal: {fileID: 0} 350 | serializedVersion: 5 351 | m_Component: 352 | - component: {fileID: 712860078} 353 | - component: {fileID: 712860079} 354 | m_Layer: 0 355 | m_Name: Bar Spectrum 356 | m_TagString: Untagged 357 | m_Icon: {fileID: 0} 358 | m_NavMeshLayer: 0 359 | m_StaticEditorFlags: 0 360 | m_IsActive: 1 361 | --- !u!4 &712860078 362 | Transform: 363 | m_ObjectHideFlags: 0 364 | m_PrefabParentObject: {fileID: 0} 365 | m_PrefabInternal: {fileID: 0} 366 | m_GameObject: {fileID: 712860077} 367 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 368 | m_LocalPosition: {x: 0, y: 0, z: 0} 369 | m_LocalScale: {x: 1, y: 1, z: 1} 370 | m_Children: [] 371 | m_Father: {fileID: 265813037} 372 | m_RootOrder: 1 373 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 374 | --- !u!114 &712860079 375 | MonoBehaviour: 376 | m_ObjectHideFlags: 0 377 | m_PrefabParentObject: {fileID: 0} 378 | m_PrefabInternal: {fileID: 0} 379 | m_GameObject: {fileID: 712860077} 380 | m_Enabled: 1 381 | m_EditorHideFlags: 0 382 | m_Script: {fileID: 11500000, guid: 83e83a0c625a37143b26eee36ba3d89c, type: 3} 383 | m_Name: 384 | m_EditorClassIdentifier: 385 | AudioVisualizationStrategy: 1 386 | AudioSampleIndex: 0 387 | PrimaryScaleFactor: 0 388 | Prefab: {fileID: 1143285611701888, guid: 6e62b12bf802d264fbf867ae4db46dfd, type: 2} 389 | LayoutType: 0 390 | ObjectWidthDepth: 0.2 391 | CircularLayoutRadius: 0 392 | ObjectRotation: {x: 0, y: 0, z: 0} 393 | RotationOffset: {x: 0, y: 0, z: 0} 394 | Shuffle: 0 395 | DesiredColorGroupCount: 4 396 | --- !u!1 &739531679 397 | GameObject: 398 | m_ObjectHideFlags: 0 399 | m_PrefabParentObject: {fileID: 0} 400 | m_PrefabInternal: {fileID: 0} 401 | serializedVersion: 5 402 | m_Component: 403 | - component: {fileID: 739531681} 404 | - component: {fileID: 739531680} 405 | m_Layer: 0 406 | m_Name: Loopback Audio Source 407 | m_TagString: Untagged 408 | m_Icon: {fileID: 0} 409 | m_NavMeshLayer: 0 410 | m_StaticEditorFlags: 0 411 | m_IsActive: 1 412 | --- !u!114 &739531680 413 | MonoBehaviour: 414 | m_ObjectHideFlags: 0 415 | m_PrefabParentObject: {fileID: 0} 416 | m_PrefabInternal: {fileID: 0} 417 | m_GameObject: {fileID: 739531679} 418 | m_Enabled: 1 419 | m_EditorHideFlags: 0 420 | m_Script: {fileID: 11500000, guid: e92c638b1696f4343a3fedcf34286400, type: 3} 421 | m_Name: 422 | m_EditorClassIdentifier: 423 | SpectrumSize: 64 424 | ScalingStrategy: 2 425 | SpectrumData: [] 426 | PostScaledSpectrumData: [] 427 | PostScaledMinMaxSpectrumData: [] 428 | PostScaledMax: 0 429 | PostScaledEnergy: 0 430 | IsIdle: 0 431 | ThresholdToMin: 1.5 432 | MinAmount: 0 433 | ThresholdToMax: 1.5 434 | MaxAmount: 1 435 | --- !u!4 &739531681 436 | Transform: 437 | m_ObjectHideFlags: 0 438 | m_PrefabParentObject: {fileID: 0} 439 | m_PrefabInternal: {fileID: 0} 440 | m_GameObject: {fileID: 739531679} 441 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 442 | m_LocalPosition: {x: 0, y: 0, z: 0} 443 | m_LocalScale: {x: 1, y: 1, z: 1} 444 | m_Children: [] 445 | m_Father: {fileID: 0} 446 | m_RootOrder: 2 447 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 448 | --- !u!1 &1209190098 449 | GameObject: 450 | m_ObjectHideFlags: 0 451 | m_PrefabParentObject: {fileID: 0} 452 | m_PrefabInternal: {fileID: 0} 453 | serializedVersion: 5 454 | m_Component: 455 | - component: {fileID: 1209190099} 456 | - component: {fileID: 1209190101} 457 | - component: {fileID: 1209190100} 458 | m_Layer: 0 459 | m_Name: Header 460 | m_TagString: Untagged 461 | m_Icon: {fileID: 0} 462 | m_NavMeshLayer: 0 463 | m_StaticEditorFlags: 0 464 | m_IsActive: 1 465 | --- !u!4 &1209190099 466 | Transform: 467 | m_ObjectHideFlags: 0 468 | m_PrefabParentObject: {fileID: 0} 469 | m_PrefabInternal: {fileID: 0} 470 | m_GameObject: {fileID: 1209190098} 471 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 472 | m_LocalPosition: {x: -2, y: 7, z: 0} 473 | m_LocalScale: {x: 1, y: 1, z: 1} 474 | m_Children: [] 475 | m_Father: {fileID: 99621079} 476 | m_RootOrder: 0 477 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 478 | --- !u!102 &1209190100 479 | TextMesh: 480 | serializedVersion: 3 481 | m_ObjectHideFlags: 0 482 | m_PrefabParentObject: {fileID: 0} 483 | m_PrefabInternal: {fileID: 0} 484 | m_GameObject: {fileID: 1209190098} 485 | m_Text: Energy 486 | m_OffsetZ: 0 487 | m_CharacterSize: 1 488 | m_LineSpacing: 1 489 | m_Anchor: 0 490 | m_Alignment: 0 491 | m_TabSize: 4 492 | m_FontSize: 0 493 | m_FontStyle: 0 494 | m_RichText: 1 495 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 496 | m_Color: 497 | serializedVersion: 2 498 | rgba: 4294967295 499 | --- !u!23 &1209190101 500 | MeshRenderer: 501 | m_ObjectHideFlags: 0 502 | m_PrefabParentObject: {fileID: 0} 503 | m_PrefabInternal: {fileID: 0} 504 | m_GameObject: {fileID: 1209190098} 505 | m_Enabled: 1 506 | m_CastShadows: 1 507 | m_ReceiveShadows: 1 508 | m_DynamicOccludee: 1 509 | m_MotionVectors: 1 510 | m_LightProbeUsage: 1 511 | m_ReflectionProbeUsage: 1 512 | m_Materials: 513 | - {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0} 514 | m_StaticBatchInfo: 515 | firstSubMesh: 0 516 | subMeshCount: 0 517 | m_StaticBatchRoot: {fileID: 0} 518 | m_ProbeAnchor: {fileID: 0} 519 | m_LightProbeVolumeOverride: {fileID: 0} 520 | m_ScaleInLightmap: 1 521 | m_PreserveUVs: 0 522 | m_IgnoreNormalsForChartDetection: 0 523 | m_ImportantGI: 0 524 | m_StitchLightmapSeams: 0 525 | m_SelectedEditorRenderState: 3 526 | m_MinimumChartSize: 4 527 | m_AutoUVMaxDistance: 0.5 528 | m_AutoUVMaxAngle: 89 529 | m_LightmapParameters: {fileID: 0} 530 | m_SortingLayerID: 0 531 | m_SortingLayer: 0 532 | m_SortingOrder: 0 533 | --- !u!1 &1218936448 534 | GameObject: 535 | m_ObjectHideFlags: 0 536 | m_PrefabParentObject: {fileID: 0} 537 | m_PrefabInternal: {fileID: 0} 538 | serializedVersion: 5 539 | m_Component: 540 | - component: {fileID: 1218936449} 541 | m_Layer: 0 542 | m_Name: Raw 543 | m_TagString: Untagged 544 | m_Icon: {fileID: 0} 545 | m_NavMeshLayer: 0 546 | m_StaticEditorFlags: 0 547 | m_IsActive: 1 548 | --- !u!4 &1218936449 549 | Transform: 550 | m_ObjectHideFlags: 0 551 | m_PrefabParentObject: {fileID: 0} 552 | m_PrefabInternal: {fileID: 0} 553 | m_GameObject: {fileID: 1218936448} 554 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 555 | m_LocalPosition: {x: -13, y: 6, z: 0} 556 | m_LocalScale: {x: 1, y: 1, z: 1} 557 | m_Children: 558 | - {fileID: 1596291569} 559 | - {fileID: 1469118162} 560 | - {fileID: 2068104888} 561 | m_Father: {fileID: 0} 562 | m_RootOrder: 3 563 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 564 | --- !u!1 &1317539212 565 | GameObject: 566 | m_ObjectHideFlags: 0 567 | m_PrefabParentObject: {fileID: 0} 568 | m_PrefabInternal: {fileID: 0} 569 | serializedVersion: 5 570 | m_Component: 571 | - component: {fileID: 1317539213} 572 | m_Layer: 0 573 | m_Name: Post Scaled Min Max 574 | m_TagString: Untagged 575 | m_Icon: {fileID: 0} 576 | m_NavMeshLayer: 0 577 | m_StaticEditorFlags: 0 578 | m_IsActive: 1 579 | --- !u!4 &1317539213 580 | Transform: 581 | m_ObjectHideFlags: 0 582 | m_PrefabParentObject: {fileID: 0} 583 | m_PrefabInternal: {fileID: 0} 584 | m_GameObject: {fileID: 1317539212} 585 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 586 | m_LocalPosition: {x: 13, y: 6, z: 0} 587 | m_LocalScale: {x: 1, y: 1, z: 1} 588 | m_Children: 589 | - {fileID: 2060317958} 590 | - {fileID: 1756800293} 591 | - {fileID: 1490997665} 592 | m_Father: {fileID: 0} 593 | m_RootOrder: 5 594 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 595 | --- !u!1 &1469118161 596 | GameObject: 597 | m_ObjectHideFlags: 0 598 | m_PrefabParentObject: {fileID: 0} 599 | m_PrefabInternal: {fileID: 0} 600 | serializedVersion: 5 601 | m_Component: 602 | - component: {fileID: 1469118162} 603 | - component: {fileID: 1469118163} 604 | m_Layer: 0 605 | m_Name: Bar Spectrum 606 | m_TagString: Untagged 607 | m_Icon: {fileID: 0} 608 | m_NavMeshLayer: 0 609 | m_StaticEditorFlags: 0 610 | m_IsActive: 1 611 | --- !u!4 &1469118162 612 | Transform: 613 | m_ObjectHideFlags: 0 614 | m_PrefabParentObject: {fileID: 0} 615 | m_PrefabInternal: {fileID: 0} 616 | m_GameObject: {fileID: 1469118161} 617 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 618 | m_LocalPosition: {x: 0, y: 0, z: 0} 619 | m_LocalScale: {x: 1, y: 1, z: 1} 620 | m_Children: [] 621 | m_Father: {fileID: 1218936449} 622 | m_RootOrder: 1 623 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 624 | --- !u!114 &1469118163 625 | MonoBehaviour: 626 | m_ObjectHideFlags: 0 627 | m_PrefabParentObject: {fileID: 0} 628 | m_PrefabInternal: {fileID: 0} 629 | m_GameObject: {fileID: 1469118161} 630 | m_Enabled: 1 631 | m_EditorHideFlags: 0 632 | m_Script: {fileID: 11500000, guid: 83e83a0c625a37143b26eee36ba3d89c, type: 3} 633 | m_Name: 634 | m_EditorClassIdentifier: 635 | AudioVisualizationStrategy: 0 636 | AudioSampleIndex: 0 637 | PrimaryScaleFactor: 0 638 | Prefab: {fileID: 1143285611701888, guid: 6e62b12bf802d264fbf867ae4db46dfd, type: 2} 639 | LayoutType: 0 640 | ObjectWidthDepth: 0.2 641 | CircularLayoutRadius: 0 642 | ObjectRotation: {x: 0, y: 0, z: 0} 643 | RotationOffset: {x: 0, y: 0, z: 0} 644 | Shuffle: 0 645 | DesiredColorGroupCount: 4 646 | --- !u!1 &1490997664 647 | GameObject: 648 | m_ObjectHideFlags: 0 649 | m_PrefabParentObject: {fileID: 0} 650 | m_PrefabInternal: {fileID: 0} 651 | serializedVersion: 5 652 | m_Component: 653 | - component: {fileID: 1490997665} 654 | - component: {fileID: 1490997668} 655 | - component: {fileID: 1490997667} 656 | - component: {fileID: 1490997666} 657 | m_Layer: 0 658 | m_Name: Measuring Stick 659 | m_TagString: Untagged 660 | m_Icon: {fileID: 0} 661 | m_NavMeshLayer: 0 662 | m_StaticEditorFlags: 0 663 | m_IsActive: 1 664 | --- !u!4 &1490997665 665 | Transform: 666 | m_ObjectHideFlags: 0 667 | m_PrefabParentObject: {fileID: 0} 668 | m_PrefabInternal: {fileID: 0} 669 | m_GameObject: {fileID: 1490997664} 670 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 671 | m_LocalPosition: {x: -10, y: 0, z: 0} 672 | m_LocalScale: {x: 1, y: 10, z: 1} 673 | m_Children: [] 674 | m_Father: {fileID: 1317539213} 675 | m_RootOrder: 2 676 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 677 | --- !u!23 &1490997666 678 | MeshRenderer: 679 | m_ObjectHideFlags: 0 680 | m_PrefabParentObject: {fileID: 0} 681 | m_PrefabInternal: {fileID: 0} 682 | m_GameObject: {fileID: 1490997664} 683 | m_Enabled: 1 684 | m_CastShadows: 1 685 | m_ReceiveShadows: 1 686 | m_DynamicOccludee: 1 687 | m_MotionVectors: 1 688 | m_LightProbeUsage: 1 689 | m_ReflectionProbeUsage: 1 690 | m_Materials: 691 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 692 | m_StaticBatchInfo: 693 | firstSubMesh: 0 694 | subMeshCount: 0 695 | m_StaticBatchRoot: {fileID: 0} 696 | m_ProbeAnchor: {fileID: 0} 697 | m_LightProbeVolumeOverride: {fileID: 0} 698 | m_ScaleInLightmap: 1 699 | m_PreserveUVs: 1 700 | m_IgnoreNormalsForChartDetection: 0 701 | m_ImportantGI: 0 702 | m_StitchLightmapSeams: 0 703 | m_SelectedEditorRenderState: 3 704 | m_MinimumChartSize: 4 705 | m_AutoUVMaxDistance: 0.5 706 | m_AutoUVMaxAngle: 89 707 | m_LightmapParameters: {fileID: 0} 708 | m_SortingLayerID: 0 709 | m_SortingLayer: 0 710 | m_SortingOrder: 0 711 | --- !u!65 &1490997667 712 | BoxCollider: 713 | m_ObjectHideFlags: 0 714 | m_PrefabParentObject: {fileID: 0} 715 | m_PrefabInternal: {fileID: 0} 716 | m_GameObject: {fileID: 1490997664} 717 | m_Material: {fileID: 0} 718 | m_IsTrigger: 0 719 | m_Enabled: 1 720 | serializedVersion: 2 721 | m_Size: {x: 1, y: 1, z: 1} 722 | m_Center: {x: 0, y: 0, z: 0} 723 | --- !u!33 &1490997668 724 | MeshFilter: 725 | m_ObjectHideFlags: 0 726 | m_PrefabParentObject: {fileID: 0} 727 | m_PrefabInternal: {fileID: 0} 728 | m_GameObject: {fileID: 1490997664} 729 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 730 | --- !u!1 &1596291568 731 | GameObject: 732 | m_ObjectHideFlags: 0 733 | m_PrefabParentObject: {fileID: 0} 734 | m_PrefabInternal: {fileID: 0} 735 | serializedVersion: 5 736 | m_Component: 737 | - component: {fileID: 1596291569} 738 | - component: {fileID: 1596291571} 739 | - component: {fileID: 1596291570} 740 | m_Layer: 0 741 | m_Name: Header 742 | m_TagString: Untagged 743 | m_Icon: {fileID: 0} 744 | m_NavMeshLayer: 0 745 | m_StaticEditorFlags: 0 746 | m_IsActive: 1 747 | --- !u!4 &1596291569 748 | Transform: 749 | m_ObjectHideFlags: 0 750 | m_PrefabParentObject: {fileID: 0} 751 | m_PrefabInternal: {fileID: 0} 752 | m_GameObject: {fileID: 1596291568} 753 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 754 | m_LocalPosition: {x: -4, y: 6, z: 0} 755 | m_LocalScale: {x: 1, y: 1, z: 1} 756 | m_Children: [] 757 | m_Father: {fileID: 1218936449} 758 | m_RootOrder: 0 759 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 760 | --- !u!102 &1596291570 761 | TextMesh: 762 | serializedVersion: 3 763 | m_ObjectHideFlags: 0 764 | m_PrefabParentObject: {fileID: 0} 765 | m_PrefabInternal: {fileID: 0} 766 | m_GameObject: {fileID: 1596291568} 767 | m_Text: Raw / Unmodified 768 | m_OffsetZ: 0 769 | m_CharacterSize: 1 770 | m_LineSpacing: 1 771 | m_Anchor: 0 772 | m_Alignment: 0 773 | m_TabSize: 4 774 | m_FontSize: 0 775 | m_FontStyle: 0 776 | m_RichText: 1 777 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 778 | m_Color: 779 | serializedVersion: 2 780 | rgba: 4294967295 781 | --- !u!23 &1596291571 782 | MeshRenderer: 783 | m_ObjectHideFlags: 0 784 | m_PrefabParentObject: {fileID: 0} 785 | m_PrefabInternal: {fileID: 0} 786 | m_GameObject: {fileID: 1596291568} 787 | m_Enabled: 1 788 | m_CastShadows: 1 789 | m_ReceiveShadows: 1 790 | m_DynamicOccludee: 1 791 | m_MotionVectors: 1 792 | m_LightProbeUsage: 1 793 | m_ReflectionProbeUsage: 1 794 | m_Materials: 795 | - {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0} 796 | m_StaticBatchInfo: 797 | firstSubMesh: 0 798 | subMeshCount: 0 799 | m_StaticBatchRoot: {fileID: 0} 800 | m_ProbeAnchor: {fileID: 0} 801 | m_LightProbeVolumeOverride: {fileID: 0} 802 | m_ScaleInLightmap: 1 803 | m_PreserveUVs: 0 804 | m_IgnoreNormalsForChartDetection: 0 805 | m_ImportantGI: 0 806 | m_StitchLightmapSeams: 0 807 | m_SelectedEditorRenderState: 3 808 | m_MinimumChartSize: 4 809 | m_AutoUVMaxDistance: 0.5 810 | m_AutoUVMaxAngle: 89 811 | m_LightmapParameters: {fileID: 0} 812 | m_SortingLayerID: 0 813 | m_SortingLayer: 0 814 | m_SortingOrder: 0 815 | --- !u!1 &1756800292 816 | GameObject: 817 | m_ObjectHideFlags: 0 818 | m_PrefabParentObject: {fileID: 0} 819 | m_PrefabInternal: {fileID: 0} 820 | serializedVersion: 5 821 | m_Component: 822 | - component: {fileID: 1756800293} 823 | - component: {fileID: 1756800294} 824 | m_Layer: 0 825 | m_Name: Bar Spectrum 826 | m_TagString: Untagged 827 | m_Icon: {fileID: 0} 828 | m_NavMeshLayer: 0 829 | m_StaticEditorFlags: 0 830 | m_IsActive: 1 831 | --- !u!4 &1756800293 832 | Transform: 833 | m_ObjectHideFlags: 0 834 | m_PrefabParentObject: {fileID: 0} 835 | m_PrefabInternal: {fileID: 0} 836 | m_GameObject: {fileID: 1756800292} 837 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 838 | m_LocalPosition: {x: 0, y: 0, z: 0} 839 | m_LocalScale: {x: 1, y: 1, z: 1} 840 | m_Children: [] 841 | m_Father: {fileID: 1317539213} 842 | m_RootOrder: 1 843 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 844 | --- !u!114 &1756800294 845 | MonoBehaviour: 846 | m_ObjectHideFlags: 0 847 | m_PrefabParentObject: {fileID: 0} 848 | m_PrefabInternal: {fileID: 0} 849 | m_GameObject: {fileID: 1756800292} 850 | m_Enabled: 1 851 | m_EditorHideFlags: 0 852 | m_Script: {fileID: 11500000, guid: 83e83a0c625a37143b26eee36ba3d89c, type: 3} 853 | m_Name: 854 | m_EditorClassIdentifier: 855 | AudioVisualizationStrategy: 2 856 | AudioSampleIndex: 0 857 | PrimaryScaleFactor: 0 858 | Prefab: {fileID: 1143285611701888, guid: 6e62b12bf802d264fbf867ae4db46dfd, type: 2} 859 | LayoutType: 0 860 | ObjectWidthDepth: 0.2 861 | CircularLayoutRadius: 0 862 | ObjectRotation: {x: 0, y: 0, z: 0} 863 | RotationOffset: {x: 0, y: 0, z: 0} 864 | Shuffle: 0 865 | DesiredColorGroupCount: 4 866 | --- !u!1 &1766081573 867 | GameObject: 868 | m_ObjectHideFlags: 0 869 | m_PrefabParentObject: {fileID: 0} 870 | m_PrefabInternal: {fileID: 0} 871 | serializedVersion: 5 872 | m_Component: 873 | - component: {fileID: 1766081575} 874 | - component: {fileID: 1766081574} 875 | m_Layer: 0 876 | m_Name: Directional Light 877 | m_TagString: Untagged 878 | m_Icon: {fileID: 0} 879 | m_NavMeshLayer: 0 880 | m_StaticEditorFlags: 0 881 | m_IsActive: 1 882 | --- !u!108 &1766081574 883 | Light: 884 | m_ObjectHideFlags: 0 885 | m_PrefabParentObject: {fileID: 0} 886 | m_PrefabInternal: {fileID: 0} 887 | m_GameObject: {fileID: 1766081573} 888 | m_Enabled: 1 889 | serializedVersion: 8 890 | m_Type: 1 891 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 892 | m_Intensity: 1 893 | m_Range: 10 894 | m_SpotAngle: 30 895 | m_CookieSize: 10 896 | m_Shadows: 897 | m_Type: 2 898 | m_Resolution: -1 899 | m_CustomResolution: -1 900 | m_Strength: 1 901 | m_Bias: 0.05 902 | m_NormalBias: 0.4 903 | m_NearPlane: 0.2 904 | m_Cookie: {fileID: 0} 905 | m_DrawHalo: 0 906 | m_Flare: {fileID: 0} 907 | m_RenderMode: 0 908 | m_CullingMask: 909 | serializedVersion: 2 910 | m_Bits: 4294967295 911 | m_Lightmapping: 4 912 | m_AreaSize: {x: 1, y: 1} 913 | m_BounceIntensity: 1 914 | m_ColorTemperature: 6570 915 | m_UseColorTemperature: 0 916 | m_ShadowRadius: 0 917 | m_ShadowAngle: 0 918 | --- !u!4 &1766081575 919 | Transform: 920 | m_ObjectHideFlags: 0 921 | m_PrefabParentObject: {fileID: 0} 922 | m_PrefabInternal: {fileID: 0} 923 | m_GameObject: {fileID: 1766081573} 924 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 925 | m_LocalPosition: {x: 0, y: 3, z: 0} 926 | m_LocalScale: {x: 1, y: 1, z: 1} 927 | m_Children: [] 928 | m_Father: {fileID: 0} 929 | m_RootOrder: 1 930 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 931 | --- !u!1 &1824562796 932 | GameObject: 933 | m_ObjectHideFlags: 0 934 | m_PrefabParentObject: {fileID: 0} 935 | m_PrefabInternal: {fileID: 0} 936 | serializedVersion: 5 937 | m_Component: 938 | - component: {fileID: 1824562800} 939 | - component: {fileID: 1824562799} 940 | - component: {fileID: 1824562798} 941 | - component: {fileID: 1824562797} 942 | m_Layer: 0 943 | m_Name: Main Camera 944 | m_TagString: MainCamera 945 | m_Icon: {fileID: 0} 946 | m_NavMeshLayer: 0 947 | m_StaticEditorFlags: 0 948 | m_IsActive: 1 949 | --- !u!81 &1824562797 950 | AudioListener: 951 | m_ObjectHideFlags: 0 952 | m_PrefabParentObject: {fileID: 0} 953 | m_PrefabInternal: {fileID: 0} 954 | m_GameObject: {fileID: 1824562796} 955 | m_Enabled: 1 956 | --- !u!124 &1824562798 957 | Behaviour: 958 | m_ObjectHideFlags: 0 959 | m_PrefabParentObject: {fileID: 0} 960 | m_PrefabInternal: {fileID: 0} 961 | m_GameObject: {fileID: 1824562796} 962 | m_Enabled: 1 963 | --- !u!20 &1824562799 964 | Camera: 965 | m_ObjectHideFlags: 0 966 | m_PrefabParentObject: {fileID: 0} 967 | m_PrefabInternal: {fileID: 0} 968 | m_GameObject: {fileID: 1824562796} 969 | m_Enabled: 1 970 | serializedVersion: 2 971 | m_ClearFlags: 2 972 | m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} 973 | m_NormalizedViewPortRect: 974 | serializedVersion: 2 975 | x: 0 976 | y: 0 977 | width: 1 978 | height: 1 979 | near clip plane: 0.3 980 | far clip plane: 1000 981 | field of view: 60 982 | orthographic: 0 983 | orthographic size: 5 984 | m_Depth: -1 985 | m_CullingMask: 986 | serializedVersion: 2 987 | m_Bits: 4294967295 988 | m_RenderingPath: -1 989 | m_TargetTexture: {fileID: 0} 990 | m_TargetDisplay: 0 991 | m_TargetEye: 3 992 | m_HDR: 1 993 | m_AllowMSAA: 1 994 | m_ForceIntoRT: 0 995 | m_OcclusionCulling: 1 996 | m_StereoConvergence: 10 997 | m_StereoSeparation: 0.022 998 | --- !u!4 &1824562800 999 | Transform: 1000 | m_ObjectHideFlags: 0 1001 | m_PrefabParentObject: {fileID: 0} 1002 | m_PrefabInternal: {fileID: 0} 1003 | m_GameObject: {fileID: 1824562796} 1004 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 1005 | m_LocalPosition: {x: 0, y: 1, z: -25} 1006 | m_LocalScale: {x: 1, y: 1, z: 1} 1007 | m_Children: [] 1008 | m_Father: {fileID: 0} 1009 | m_RootOrder: 0 1010 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1011 | --- !u!1 &1953202697 1012 | GameObject: 1013 | m_ObjectHideFlags: 0 1014 | m_PrefabParentObject: {fileID: 0} 1015 | m_PrefabInternal: {fileID: 0} 1016 | serializedVersion: 5 1017 | m_Component: 1018 | - component: {fileID: 1953202698} 1019 | - component: {fileID: 1953202702} 1020 | - component: {fileID: 1953202701} 1021 | - component: {fileID: 1953202700} 1022 | - component: {fileID: 1953202699} 1023 | m_Layer: 0 1024 | m_Name: Energy Bar 1025 | m_TagString: Untagged 1026 | m_Icon: {fileID: 0} 1027 | m_NavMeshLayer: 0 1028 | m_StaticEditorFlags: 0 1029 | m_IsActive: 1 1030 | --- !u!4 &1953202698 1031 | Transform: 1032 | m_ObjectHideFlags: 0 1033 | m_PrefabParentObject: {fileID: 0} 1034 | m_PrefabInternal: {fileID: 0} 1035 | m_GameObject: {fileID: 1953202697} 1036 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 1037 | m_LocalPosition: {x: 0, y: 0, z: 0} 1038 | m_LocalScale: {x: 1, y: 1, z: 1} 1039 | m_Children: [] 1040 | m_Father: {fileID: 99621079} 1041 | m_RootOrder: 1 1042 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1043 | --- !u!114 &1953202699 1044 | MonoBehaviour: 1045 | m_ObjectHideFlags: 0 1046 | m_PrefabParentObject: {fileID: 0} 1047 | m_PrefabInternal: {fileID: 0} 1048 | m_GameObject: {fileID: 1953202697} 1049 | m_Enabled: 1 1050 | m_EditorHideFlags: 0 1051 | m_Script: {fileID: 11500000, guid: f13a833d6049fab4d88af257d9e74d75, type: 3} 1052 | m_Name: 1053 | m_EditorClassIdentifier: 1054 | AudioVisualizationStrategy: 4 1055 | AudioSampleIndex: 0 1056 | PrimaryScaleFactor: 0 1057 | ScaleIntensity: {x: 0, y: 1, z: 0} 1058 | --- !u!23 &1953202700 1059 | MeshRenderer: 1060 | m_ObjectHideFlags: 0 1061 | m_PrefabParentObject: {fileID: 0} 1062 | m_PrefabInternal: {fileID: 0} 1063 | m_GameObject: {fileID: 1953202697} 1064 | m_Enabled: 1 1065 | m_CastShadows: 1 1066 | m_ReceiveShadows: 1 1067 | m_DynamicOccludee: 1 1068 | m_MotionVectors: 1 1069 | m_LightProbeUsage: 1 1070 | m_ReflectionProbeUsage: 1 1071 | m_Materials: 1072 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 1073 | m_StaticBatchInfo: 1074 | firstSubMesh: 0 1075 | subMeshCount: 0 1076 | m_StaticBatchRoot: {fileID: 0} 1077 | m_ProbeAnchor: {fileID: 0} 1078 | m_LightProbeVolumeOverride: {fileID: 0} 1079 | m_ScaleInLightmap: 1 1080 | m_PreserveUVs: 1 1081 | m_IgnoreNormalsForChartDetection: 0 1082 | m_ImportantGI: 0 1083 | m_StitchLightmapSeams: 0 1084 | m_SelectedEditorRenderState: 3 1085 | m_MinimumChartSize: 4 1086 | m_AutoUVMaxDistance: 0.5 1087 | m_AutoUVMaxAngle: 89 1088 | m_LightmapParameters: {fileID: 0} 1089 | m_SortingLayerID: 0 1090 | m_SortingLayer: 0 1091 | m_SortingOrder: 0 1092 | --- !u!65 &1953202701 1093 | BoxCollider: 1094 | m_ObjectHideFlags: 0 1095 | m_PrefabParentObject: {fileID: 0} 1096 | m_PrefabInternal: {fileID: 0} 1097 | m_GameObject: {fileID: 1953202697} 1098 | m_Material: {fileID: 0} 1099 | m_IsTrigger: 0 1100 | m_Enabled: 1 1101 | serializedVersion: 2 1102 | m_Size: {x: 1, y: 1, z: 1} 1103 | m_Center: {x: 0, y: 0, z: 0} 1104 | --- !u!33 &1953202702 1105 | MeshFilter: 1106 | m_ObjectHideFlags: 0 1107 | m_PrefabParentObject: {fileID: 0} 1108 | m_PrefabInternal: {fileID: 0} 1109 | m_GameObject: {fileID: 1953202697} 1110 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 1111 | --- !u!1 &2060317957 1112 | GameObject: 1113 | m_ObjectHideFlags: 0 1114 | m_PrefabParentObject: {fileID: 0} 1115 | m_PrefabInternal: {fileID: 0} 1116 | serializedVersion: 5 1117 | m_Component: 1118 | - component: {fileID: 2060317958} 1119 | - component: {fileID: 2060317960} 1120 | - component: {fileID: 2060317959} 1121 | m_Layer: 0 1122 | m_Name: Header 1123 | m_TagString: Untagged 1124 | m_Icon: {fileID: 0} 1125 | m_NavMeshLayer: 0 1126 | m_StaticEditorFlags: 0 1127 | m_IsActive: 1 1128 | --- !u!4 &2060317958 1129 | Transform: 1130 | m_ObjectHideFlags: 0 1131 | m_PrefabParentObject: {fileID: 0} 1132 | m_PrefabInternal: {fileID: 0} 1133 | m_GameObject: {fileID: 2060317957} 1134 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 1135 | m_LocalPosition: {x: -6, y: 6, z: 0} 1136 | m_LocalScale: {x: 1, y: 1, z: 1} 1137 | m_Children: [] 1138 | m_Father: {fileID: 1317539213} 1139 | m_RootOrder: 0 1140 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1141 | --- !u!102 &2060317959 1142 | TextMesh: 1143 | serializedVersion: 3 1144 | m_ObjectHideFlags: 0 1145 | m_PrefabParentObject: {fileID: 0} 1146 | m_PrefabInternal: {fileID: 0} 1147 | m_GameObject: {fileID: 2060317957} 1148 | m_Text: Min/Max 1149 | m_OffsetZ: 0 1150 | m_CharacterSize: 1 1151 | m_LineSpacing: 1 1152 | m_Anchor: 0 1153 | m_Alignment: 0 1154 | m_TabSize: 4 1155 | m_FontSize: 0 1156 | m_FontStyle: 0 1157 | m_RichText: 1 1158 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 1159 | m_Color: 1160 | serializedVersion: 2 1161 | rgba: 4294967295 1162 | --- !u!23 &2060317960 1163 | MeshRenderer: 1164 | m_ObjectHideFlags: 0 1165 | m_PrefabParentObject: {fileID: 0} 1166 | m_PrefabInternal: {fileID: 0} 1167 | m_GameObject: {fileID: 2060317957} 1168 | m_Enabled: 1 1169 | m_CastShadows: 1 1170 | m_ReceiveShadows: 1 1171 | m_DynamicOccludee: 1 1172 | m_MotionVectors: 1 1173 | m_LightProbeUsage: 1 1174 | m_ReflectionProbeUsage: 1 1175 | m_Materials: 1176 | - {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0} 1177 | m_StaticBatchInfo: 1178 | firstSubMesh: 0 1179 | subMeshCount: 0 1180 | m_StaticBatchRoot: {fileID: 0} 1181 | m_ProbeAnchor: {fileID: 0} 1182 | m_LightProbeVolumeOverride: {fileID: 0} 1183 | m_ScaleInLightmap: 1 1184 | m_PreserveUVs: 0 1185 | m_IgnoreNormalsForChartDetection: 0 1186 | m_ImportantGI: 0 1187 | m_StitchLightmapSeams: 0 1188 | m_SelectedEditorRenderState: 3 1189 | m_MinimumChartSize: 4 1190 | m_AutoUVMaxDistance: 0.5 1191 | m_AutoUVMaxAngle: 89 1192 | m_LightmapParameters: {fileID: 0} 1193 | m_SortingLayerID: 0 1194 | m_SortingLayer: 0 1195 | m_SortingOrder: 0 1196 | --- !u!1 &2068104884 1197 | GameObject: 1198 | m_ObjectHideFlags: 0 1199 | m_PrefabParentObject: {fileID: 0} 1200 | m_PrefabInternal: {fileID: 0} 1201 | serializedVersion: 5 1202 | m_Component: 1203 | - component: {fileID: 2068104888} 1204 | - component: {fileID: 2068104887} 1205 | - component: {fileID: 2068104886} 1206 | - component: {fileID: 2068104885} 1207 | m_Layer: 0 1208 | m_Name: Measuring Stick 1209 | m_TagString: Untagged 1210 | m_Icon: {fileID: 0} 1211 | m_NavMeshLayer: 0 1212 | m_StaticEditorFlags: 0 1213 | m_IsActive: 1 1214 | --- !u!23 &2068104885 1215 | MeshRenderer: 1216 | m_ObjectHideFlags: 0 1217 | m_PrefabParentObject: {fileID: 0} 1218 | m_PrefabInternal: {fileID: 0} 1219 | m_GameObject: {fileID: 2068104884} 1220 | m_Enabled: 1 1221 | m_CastShadows: 1 1222 | m_ReceiveShadows: 1 1223 | m_DynamicOccludee: 1 1224 | m_MotionVectors: 1 1225 | m_LightProbeUsage: 1 1226 | m_ReflectionProbeUsage: 1 1227 | m_Materials: 1228 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 1229 | m_StaticBatchInfo: 1230 | firstSubMesh: 0 1231 | subMeshCount: 0 1232 | m_StaticBatchRoot: {fileID: 0} 1233 | m_ProbeAnchor: {fileID: 0} 1234 | m_LightProbeVolumeOverride: {fileID: 0} 1235 | m_ScaleInLightmap: 1 1236 | m_PreserveUVs: 1 1237 | m_IgnoreNormalsForChartDetection: 0 1238 | m_ImportantGI: 0 1239 | m_StitchLightmapSeams: 0 1240 | m_SelectedEditorRenderState: 3 1241 | m_MinimumChartSize: 4 1242 | m_AutoUVMaxDistance: 0.5 1243 | m_AutoUVMaxAngle: 89 1244 | m_LightmapParameters: {fileID: 0} 1245 | m_SortingLayerID: 0 1246 | m_SortingLayer: 0 1247 | m_SortingOrder: 0 1248 | --- !u!65 &2068104886 1249 | BoxCollider: 1250 | m_ObjectHideFlags: 0 1251 | m_PrefabParentObject: {fileID: 0} 1252 | m_PrefabInternal: {fileID: 0} 1253 | m_GameObject: {fileID: 2068104884} 1254 | m_Material: {fileID: 0} 1255 | m_IsTrigger: 0 1256 | m_Enabled: 1 1257 | serializedVersion: 2 1258 | m_Size: {x: 1, y: 1, z: 1} 1259 | m_Center: {x: 0, y: 0, z: 0} 1260 | --- !u!33 &2068104887 1261 | MeshFilter: 1262 | m_ObjectHideFlags: 0 1263 | m_PrefabParentObject: {fileID: 0} 1264 | m_PrefabInternal: {fileID: 0} 1265 | m_GameObject: {fileID: 2068104884} 1266 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 1267 | --- !u!4 &2068104888 1268 | Transform: 1269 | m_ObjectHideFlags: 0 1270 | m_PrefabParentObject: {fileID: 0} 1271 | m_PrefabInternal: {fileID: 0} 1272 | m_GameObject: {fileID: 2068104884} 1273 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 1274 | m_LocalPosition: {x: -10, y: 0, z: 0} 1275 | m_LocalScale: {x: 1, y: 10, z: 1} 1276 | m_Children: [] 1277 | m_Father: {fileID: 1218936449} 1278 | m_RootOrder: 2 1279 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1280 | -------------------------------------------------------------------------------- /Assets/_scenes/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47f38254f92aaa04ca0f3eebf7ddb0a8 3 | timeCreated: 1509125295 4 | licenseType: Free 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | m_AutoSimulation: 1 20 | m_AutoSyncTransforms: 1 21 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_DefaultBehaviorMode: 0 10 | m_SpritePackerMode: 0 11 | m_SpritePackerPaddingPower: 1 12 | m_EtcTextureCompressorBehavior: 1 13 | m_EtcTextureFastCompressor: 1 14 | m_EtcTextureNormalCompressor: 2 15 | m_EtcTextureBestCompressor: 4 16 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 17 | m_ProjectGenerationRootNamespace: 18 | m_UserGeneratedProjectSuffix: 19 | m_CollabEditorSettings: 20 | inProgressEnabled: 1 21 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | productGUID: 027332243f2d8e343b9c0bd1d45a7787 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | defaultScreenOrientation: 4 11 | targetDevice: 2 12 | useOnDemandResources: 0 13 | accelerometerFrequency: 60 14 | companyName: DefaultCompany 15 | productName: WASAPI_Barebones 16 | defaultCursor: {fileID: 0} 17 | cursorHotspot: {x: 0, y: 0} 18 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 19 | m_ShowUnitySplashScreen: 1 20 | m_ShowUnitySplashLogo: 1 21 | m_SplashScreenOverlayOpacity: 1 22 | m_SplashScreenAnimation: 1 23 | m_SplashScreenLogoStyle: 1 24 | m_SplashScreenDrawMode: 0 25 | m_SplashScreenBackgroundAnimationZoom: 1 26 | m_SplashScreenLogoAnimationZoom: 1 27 | m_SplashScreenBackgroundLandscapeAspect: 1 28 | m_SplashScreenBackgroundPortraitAspect: 1 29 | m_SplashScreenBackgroundLandscapeUvs: 30 | serializedVersion: 2 31 | x: 0 32 | y: 0 33 | width: 1 34 | height: 1 35 | m_SplashScreenBackgroundPortraitUvs: 36 | serializedVersion: 2 37 | x: 0 38 | y: 0 39 | width: 1 40 | height: 1 41 | m_SplashScreenLogos: [] 42 | m_VirtualRealitySplashScreen: {fileID: 0} 43 | m_HolographicTrackingLossScreen: {fileID: 0} 44 | defaultScreenWidth: 1024 45 | defaultScreenHeight: 768 46 | defaultScreenWidthWeb: 960 47 | defaultScreenHeightWeb: 600 48 | m_StereoRenderingPath: 0 49 | m_ActiveColorSpace: 0 50 | m_MTRendering: 1 51 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 52 | iosShowActivityIndicatorOnLoading: -1 53 | androidShowActivityIndicatorOnLoading: -1 54 | tizenShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 1 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | disableDepthAndStencilBuffers: 0 65 | androidBlitType: 0 66 | defaultIsFullScreen: 1 67 | defaultIsNativeResolution: 1 68 | macRetinaSupport: 1 69 | runInBackground: 0 70 | captureSingleScreen: 0 71 | muteOtherAudioSources: 0 72 | Prepare IOS For Recording: 0 73 | Force IOS Speakers When Recording: 0 74 | submitAnalytics: 1 75 | usePlayerLog: 1 76 | bakeCollisionMeshes: 0 77 | forceSingleInstance: 0 78 | resizableWindow: 0 79 | useMacAppStoreValidation: 0 80 | macAppStoreCategory: public.app-category.games 81 | gpuSkinning: 0 82 | graphicsJobs: 0 83 | xboxPIXTextureCapture: 0 84 | xboxEnableAvatar: 0 85 | xboxEnableKinect: 0 86 | xboxEnableKinectAutoTracking: 0 87 | xboxEnableFitness: 0 88 | visibleInBackground: 1 89 | allowFullscreenSwitch: 1 90 | graphicsJobMode: 0 91 | macFullscreenMode: 2 92 | d3d9FullscreenMode: 1 93 | d3d11FullscreenMode: 1 94 | xboxSpeechDB: 0 95 | xboxEnableHeadOrientation: 0 96 | xboxEnableGuest: 0 97 | xboxEnablePIXSampling: 0 98 | metalFramebufferOnly: 0 99 | n3dsDisableStereoscopicView: 0 100 | n3dsEnableSharedListOpt: 1 101 | n3dsEnableVSync: 0 102 | ignoreAlphaClear: 0 103 | xboxOneResolution: 0 104 | xboxOneMonoLoggingLevel: 0 105 | xboxOneLoggingLevel: 1 106 | xboxOneDisableEsram: 0 107 | xboxOnePresentImmediateThreshold: 0 108 | videoMemoryForVertexBuffers: 0 109 | psp2PowerMode: 0 110 | psp2AcquireBGM: 1 111 | wiiUTVResolution: 0 112 | wiiUGamePadMSAA: 1 113 | wiiUSupportsNunchuk: 0 114 | wiiUSupportsClassicController: 0 115 | wiiUSupportsBalanceBoard: 0 116 | wiiUSupportsMotionPlus: 0 117 | wiiUSupportsProController: 0 118 | wiiUAllowScreenCapture: 1 119 | wiiUControllerCount: 0 120 | m_SupportedAspectRatios: 121 | 4:3: 1 122 | 5:4: 1 123 | 16:10: 1 124 | 16:9: 1 125 | Others: 1 126 | bundleVersion: 1.0 127 | preloadedAssets: [] 128 | metroInputSource: 0 129 | m_HolographicPauseOnTrackingLoss: 1 130 | xboxOneDisableKinectGpuReservation: 0 131 | xboxOneEnable7thCore: 0 132 | vrSettings: 133 | cardboard: 134 | depthFormat: 0 135 | enableTransitionView: 0 136 | daydream: 137 | depthFormat: 0 138 | useSustainedPerformanceMode: 0 139 | enableVideoLayer: 0 140 | useProtectedVideoMemory: 0 141 | hololens: 142 | depthFormat: 1 143 | protectGraphicsMemory: 0 144 | useHDRDisplay: 0 145 | m_ColorGamuts: 00000000 146 | targetPixelDensity: 0 147 | resolutionScalingMode: 0 148 | androidSupportedAspectRatio: 1 149 | androidMaxAspectRatio: 2.1 150 | applicationIdentifier: {} 151 | buildNumber: {} 152 | AndroidBundleVersionCode: 1 153 | AndroidMinSdkVersion: 16 154 | AndroidTargetSdkVersion: 0 155 | AndroidPreferredInstallLocation: 1 156 | aotOptions: 157 | stripEngineCode: 1 158 | iPhoneStrippingLevel: 0 159 | iPhoneScriptCallOptimization: 0 160 | ForceInternetPermission: 0 161 | ForceSDCardPermission: 0 162 | CreateWallpaper: 0 163 | APKExpansionFiles: 0 164 | keepLoadedShadersAlive: 0 165 | StripUnusedMeshComponents: 0 166 | VertexChannelCompressionMask: 167 | serializedVersion: 2 168 | m_Bits: 238 169 | iPhoneSdkVersion: 988 170 | iOSTargetOSVersionString: 7.0 171 | tvOSSdkVersion: 0 172 | tvOSRequireExtendedGameController: 0 173 | tvOSTargetOSVersionString: 9.0 174 | uIPrerenderedIcon: 0 175 | uIRequiresPersistentWiFi: 0 176 | uIRequiresFullScreen: 1 177 | uIStatusBarHidden: 1 178 | uIExitOnSuspend: 0 179 | uIStatusBarStyle: 0 180 | iPhoneSplashScreen: {fileID: 0} 181 | iPhoneHighResSplashScreen: {fileID: 0} 182 | iPhoneTallHighResSplashScreen: {fileID: 0} 183 | iPhone47inSplashScreen: {fileID: 0} 184 | iPhone55inPortraitSplashScreen: {fileID: 0} 185 | iPhone55inLandscapeSplashScreen: {fileID: 0} 186 | iPadPortraitSplashScreen: {fileID: 0} 187 | iPadHighResPortraitSplashScreen: {fileID: 0} 188 | iPadLandscapeSplashScreen: {fileID: 0} 189 | iPadHighResLandscapeSplashScreen: {fileID: 0} 190 | appleTVSplashScreen: {fileID: 0} 191 | tvOSSmallIconLayers: [] 192 | tvOSLargeIconLayers: [] 193 | tvOSTopShelfImageLayers: [] 194 | tvOSTopShelfImageWideLayers: [] 195 | iOSLaunchScreenType: 0 196 | iOSLaunchScreenPortrait: {fileID: 0} 197 | iOSLaunchScreenLandscape: {fileID: 0} 198 | iOSLaunchScreenBackgroundColor: 199 | serializedVersion: 2 200 | rgba: 0 201 | iOSLaunchScreenFillPct: 100 202 | iOSLaunchScreenSize: 100 203 | iOSLaunchScreenCustomXibPath: 204 | iOSLaunchScreeniPadType: 0 205 | iOSLaunchScreeniPadImage: {fileID: 0} 206 | iOSLaunchScreeniPadBackgroundColor: 207 | serializedVersion: 2 208 | rgba: 0 209 | iOSLaunchScreeniPadFillPct: 100 210 | iOSLaunchScreeniPadSize: 100 211 | iOSLaunchScreeniPadCustomXibPath: 212 | iOSDeviceRequirements: [] 213 | iOSURLSchemes: [] 214 | iOSBackgroundModes: 0 215 | iOSMetalForceHardShadows: 0 216 | metalEditorSupport: 1 217 | metalAPIValidation: 1 218 | iOSRenderExtraFrameOnPause: 0 219 | appleDeveloperTeamID: 220 | iOSManualSigningProvisioningProfileID: 221 | tvOSManualSigningProvisioningProfileID: 222 | appleEnableAutomaticSigning: 0 223 | AndroidTargetDevice: 0 224 | AndroidSplashScreenScale: 0 225 | androidSplashScreen: {fileID: 0} 226 | AndroidKeystoreName: 227 | AndroidKeyaliasName: 228 | AndroidTVCompatibility: 1 229 | AndroidIsGame: 1 230 | AndroidEnableTango: 0 231 | androidEnableBanner: 1 232 | androidUseLowAccuracyLocation: 0 233 | m_AndroidBanners: 234 | - width: 320 235 | height: 180 236 | banner: {fileID: 0} 237 | androidGamepadSupportLevel: 0 238 | resolutionDialogBanner: {fileID: 0} 239 | m_BuildTargetIcons: [] 240 | m_BuildTargetBatching: [] 241 | m_BuildTargetGraphicsAPIs: [] 242 | m_BuildTargetVRSettings: [] 243 | m_BuildTargetEnableVuforiaSettings: [] 244 | openGLRequireES31: 0 245 | openGLRequireES31AEP: 0 246 | m_TemplateCustomTags: {} 247 | mobileMTRendering: 248 | Android: 1 249 | iPhone: 1 250 | tvOS: 1 251 | wiiUTitleID: 0005000011000000 252 | wiiUGroupID: 00010000 253 | wiiUCommonSaveSize: 4096 254 | wiiUAccountSaveSize: 2048 255 | wiiUOlvAccessKey: 0 256 | wiiUTinCode: 0 257 | wiiUJoinGameId: 0 258 | wiiUJoinGameModeMask: 0000000000000000 259 | wiiUCommonBossSize: 0 260 | wiiUAccountBossSize: 0 261 | wiiUAddOnUniqueIDs: [] 262 | wiiUMainThreadStackSize: 3072 263 | wiiULoaderThreadStackSize: 1024 264 | wiiUSystemHeapSize: 128 265 | wiiUTVStartupScreen: {fileID: 0} 266 | wiiUGamePadStartupScreen: {fileID: 0} 267 | wiiUDrcBufferDisabled: 0 268 | wiiUProfilerLibPath: 269 | playModeTestRunnerEnabled: 0 270 | actionOnDotNetUnhandledException: 1 271 | enableInternalProfiler: 0 272 | logObjCUncaughtExceptions: 1 273 | enableCrashReportAPI: 0 274 | cameraUsageDescription: 275 | locationUsageDescription: 276 | microphoneUsageDescription: 277 | switchNetLibKey: 278 | switchSocketMemoryPoolSize: 6144 279 | switchSocketAllocatorPoolSize: 128 280 | switchSocketConcurrencyLimit: 14 281 | switchScreenResolutionBehavior: 2 282 | switchUseCPUProfiler: 0 283 | switchApplicationID: 0x01004b9000490000 284 | switchNSODependencies: 285 | switchTitleNames_0: 286 | switchTitleNames_1: 287 | switchTitleNames_2: 288 | switchTitleNames_3: 289 | switchTitleNames_4: 290 | switchTitleNames_5: 291 | switchTitleNames_6: 292 | switchTitleNames_7: 293 | switchTitleNames_8: 294 | switchTitleNames_9: 295 | switchTitleNames_10: 296 | switchTitleNames_11: 297 | switchPublisherNames_0: 298 | switchPublisherNames_1: 299 | switchPublisherNames_2: 300 | switchPublisherNames_3: 301 | switchPublisherNames_4: 302 | switchPublisherNames_5: 303 | switchPublisherNames_6: 304 | switchPublisherNames_7: 305 | switchPublisherNames_8: 306 | switchPublisherNames_9: 307 | switchPublisherNames_10: 308 | switchPublisherNames_11: 309 | switchIcons_0: {fileID: 0} 310 | switchIcons_1: {fileID: 0} 311 | switchIcons_2: {fileID: 0} 312 | switchIcons_3: {fileID: 0} 313 | switchIcons_4: {fileID: 0} 314 | switchIcons_5: {fileID: 0} 315 | switchIcons_6: {fileID: 0} 316 | switchIcons_7: {fileID: 0} 317 | switchIcons_8: {fileID: 0} 318 | switchIcons_9: {fileID: 0} 319 | switchIcons_10: {fileID: 0} 320 | switchIcons_11: {fileID: 0} 321 | switchSmallIcons_0: {fileID: 0} 322 | switchSmallIcons_1: {fileID: 0} 323 | switchSmallIcons_2: {fileID: 0} 324 | switchSmallIcons_3: {fileID: 0} 325 | switchSmallIcons_4: {fileID: 0} 326 | switchSmallIcons_5: {fileID: 0} 327 | switchSmallIcons_6: {fileID: 0} 328 | switchSmallIcons_7: {fileID: 0} 329 | switchSmallIcons_8: {fileID: 0} 330 | switchSmallIcons_9: {fileID: 0} 331 | switchSmallIcons_10: {fileID: 0} 332 | switchSmallIcons_11: {fileID: 0} 333 | switchManualHTML: 334 | switchAccessibleURLs: 335 | switchLegalInformation: 336 | switchMainThreadStackSize: 1048576 337 | switchPresenceGroupId: 338 | switchLogoHandling: 0 339 | switchReleaseVersion: 0 340 | switchDisplayVersion: 1.0.0 341 | switchStartupUserAccount: 0 342 | switchTouchScreenUsage: 0 343 | switchSupportedLanguagesMask: 0 344 | switchLogoType: 0 345 | switchApplicationErrorCodeCategory: 346 | switchUserAccountSaveDataSize: 0 347 | switchUserAccountSaveDataJournalSize: 0 348 | switchApplicationAttribute: 0 349 | switchCardSpecSize: -1 350 | switchCardSpecClock: -1 351 | switchRatingsMask: 0 352 | switchRatingsInt_0: 0 353 | switchRatingsInt_1: 0 354 | switchRatingsInt_2: 0 355 | switchRatingsInt_3: 0 356 | switchRatingsInt_4: 0 357 | switchRatingsInt_5: 0 358 | switchRatingsInt_6: 0 359 | switchRatingsInt_7: 0 360 | switchRatingsInt_8: 0 361 | switchRatingsInt_9: 0 362 | switchRatingsInt_10: 0 363 | switchRatingsInt_11: 0 364 | switchLocalCommunicationIds_0: 365 | switchLocalCommunicationIds_1: 366 | switchLocalCommunicationIds_2: 367 | switchLocalCommunicationIds_3: 368 | switchLocalCommunicationIds_4: 369 | switchLocalCommunicationIds_5: 370 | switchLocalCommunicationIds_6: 371 | switchLocalCommunicationIds_7: 372 | switchParentalControl: 0 373 | switchAllowsScreenshot: 1 374 | switchDataLossConfirmation: 0 375 | switchSupportedNpadStyles: 3 376 | switchSocketConfigEnabled: 0 377 | switchTcpInitialSendBufferSize: 32 378 | switchTcpInitialReceiveBufferSize: 64 379 | switchTcpAutoSendBufferSizeMax: 256 380 | switchTcpAutoReceiveBufferSizeMax: 256 381 | switchUdpSendBufferSize: 9 382 | switchUdpReceiveBufferSize: 42 383 | switchSocketBufferEfficiency: 4 384 | switchSocketInitializeEnabled: 1 385 | switchNetworkInterfaceManagerInitializeEnabled: 1 386 | switchPlayerConnectionEnabled: 1 387 | ps4NPAgeRating: 12 388 | ps4NPTitleSecret: 389 | ps4NPTrophyPackPath: 390 | ps4ParentalLevel: 11 391 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 392 | ps4Category: 0 393 | ps4MasterVersion: 01.00 394 | ps4AppVersion: 01.00 395 | ps4AppType: 0 396 | ps4ParamSfxPath: 397 | ps4VideoOutPixelFormat: 0 398 | ps4VideoOutInitialWidth: 1920 399 | ps4VideoOutBaseModeInitialWidth: 1920 400 | ps4VideoOutReprojectionRate: 60 401 | ps4PronunciationXMLPath: 402 | ps4PronunciationSIGPath: 403 | ps4BackgroundImagePath: 404 | ps4StartupImagePath: 405 | ps4SaveDataImagePath: 406 | ps4SdkOverride: 407 | ps4BGMPath: 408 | ps4ShareFilePath: 409 | ps4ShareOverlayImagePath: 410 | ps4PrivacyGuardImagePath: 411 | ps4NPtitleDatPath: 412 | ps4RemotePlayKeyAssignment: -1 413 | ps4RemotePlayKeyMappingDir: 414 | ps4PlayTogetherPlayerCount: 0 415 | ps4EnterButtonAssignment: 1 416 | ps4ApplicationParam1: 0 417 | ps4ApplicationParam2: 0 418 | ps4ApplicationParam3: 0 419 | ps4ApplicationParam4: 0 420 | ps4DownloadDataSize: 0 421 | ps4GarlicHeapSize: 2048 422 | ps4ProGarlicHeapSize: 2560 423 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 424 | ps4pnSessions: 1 425 | ps4pnPresence: 1 426 | ps4pnFriends: 1 427 | ps4pnGameCustomData: 1 428 | playerPrefsSupport: 0 429 | restrictedAudioUsageRights: 0 430 | ps4UseResolutionFallback: 0 431 | ps4ReprojectionSupport: 0 432 | ps4UseAudio3dBackend: 0 433 | ps4SocialScreenEnabled: 0 434 | ps4ScriptOptimizationLevel: 0 435 | ps4Audio3dVirtualSpeakerCount: 14 436 | ps4attribCpuUsage: 0 437 | ps4PatchPkgPath: 438 | ps4PatchLatestPkgPath: 439 | ps4PatchChangeinfoPath: 440 | ps4PatchDayOne: 0 441 | ps4attribUserManagement: 0 442 | ps4attribMoveSupport: 0 443 | ps4attrib3DSupport: 0 444 | ps4attribShareSupport: 0 445 | ps4attribExclusiveVR: 0 446 | ps4disableAutoHideSplash: 0 447 | ps4videoRecordingFeaturesUsed: 0 448 | ps4contentSearchFeaturesUsed: 0 449 | ps4attribEyeToEyeDistanceSettingVR: 0 450 | ps4IncludedModules: [] 451 | monoEnv: 452 | psp2Splashimage: {fileID: 0} 453 | psp2NPTrophyPackPath: 454 | psp2NPSupportGBMorGJP: 0 455 | psp2NPAgeRating: 12 456 | psp2NPTitleDatPath: 457 | psp2NPCommsID: 458 | psp2NPCommunicationsID: 459 | psp2NPCommsPassphrase: 460 | psp2NPCommsSig: 461 | psp2ParamSfxPath: 462 | psp2ManualPath: 463 | psp2LiveAreaGatePath: 464 | psp2LiveAreaBackroundPath: 465 | psp2LiveAreaPath: 466 | psp2LiveAreaTrialPath: 467 | psp2PatchChangeInfoPath: 468 | psp2PatchOriginalPackage: 469 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 470 | psp2KeystoneFile: 471 | psp2MemoryExpansionMode: 0 472 | psp2DRMType: 0 473 | psp2StorageType: 0 474 | psp2MediaCapacity: 0 475 | psp2DLCConfigPath: 476 | psp2ThumbnailPath: 477 | psp2BackgroundPath: 478 | psp2SoundPath: 479 | psp2TrophyCommId: 480 | psp2TrophyPackagePath: 481 | psp2PackagedResourcesPath: 482 | psp2SaveDataQuota: 10240 483 | psp2ParentalLevel: 1 484 | psp2ShortTitle: Not Set 485 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 486 | psp2Category: 0 487 | psp2MasterVersion: 01.00 488 | psp2AppVersion: 01.00 489 | psp2TVBootMode: 0 490 | psp2EnterButtonAssignment: 2 491 | psp2TVDisableEmu: 0 492 | psp2AllowTwitterDialog: 1 493 | psp2Upgradable: 0 494 | psp2HealthWarning: 0 495 | psp2UseLibLocation: 0 496 | psp2InfoBarOnStartup: 0 497 | psp2InfoBarColor: 0 498 | psp2ScriptOptimizationLevel: 0 499 | psmSplashimage: {fileID: 0} 500 | splashScreenBackgroundSourceLandscape: {fileID: 0} 501 | splashScreenBackgroundSourcePortrait: {fileID: 0} 502 | spritePackerPolicy: 503 | webGLMemorySize: 256 504 | webGLExceptionSupport: 1 505 | webGLNameFilesAsHashes: 0 506 | webGLDataCaching: 0 507 | webGLDebugSymbols: 0 508 | webGLEmscriptenArgs: 509 | webGLModulesDirectory: 510 | webGLTemplate: APPLICATION:Default 511 | webGLAnalyzeBuildSize: 0 512 | webGLUseEmbeddedResources: 0 513 | webGLUseWasm: 0 514 | webGLCompressionFormat: 1 515 | scriptingDefineSymbols: {} 516 | platformArchitecture: {} 517 | scriptingBackend: {} 518 | incrementalIl2cppBuild: {} 519 | additionalIl2CppArgs: 520 | scriptingRuntimeVersion: 0 521 | apiCompatibilityLevelPerPlatform: {} 522 | m_RenderingPath: 1 523 | m_MobileRenderingPath: 1 524 | metroPackageName: WASAPI_Barebones 525 | metroPackageVersion: 526 | metroCertificatePath: 527 | metroCertificatePassword: 528 | metroCertificateSubject: 529 | metroCertificateIssuer: 530 | metroCertificateNotAfter: 0000000000000000 531 | metroApplicationDescription: WASAPI_Barebones 532 | wsaImages: {} 533 | metroTileShortName: 534 | metroCommandLineArgsFile: 535 | metroTileShowName: 0 536 | metroMediumTileShowName: 0 537 | metroLargeTileShowName: 0 538 | metroWideTileShowName: 0 539 | metroDefaultTileSize: 1 540 | metroTileForegroundText: 2 541 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 542 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 543 | a: 1} 544 | metroSplashScreenUseBackgroundColor: 0 545 | platformCapabilities: {} 546 | metroFTAName: 547 | metroFTAFileTypes: [] 548 | metroProtocolName: 549 | metroCompilationOverrides: 1 550 | tizenProductDescription: 551 | tizenProductURL: 552 | tizenSigningProfileName: 553 | tizenGPSPermissions: 0 554 | tizenMicrophonePermissions: 0 555 | tizenDeploymentTarget: 556 | tizenDeploymentTargetType: -1 557 | tizenMinOSVersion: 1 558 | n3dsUseExtSaveData: 0 559 | n3dsCompressStaticMem: 1 560 | n3dsExtSaveDataNumber: 0x12345 561 | n3dsStackSize: 131072 562 | n3dsTargetPlatform: 2 563 | n3dsRegion: 7 564 | n3dsMediaSize: 0 565 | n3dsLogoStyle: 3 566 | n3dsTitle: GameName 567 | n3dsProductCode: 568 | n3dsApplicationId: 0xFF3FF 569 | stvDeviceAddress: 570 | stvProductDescription: 571 | stvProductAuthor: 572 | stvProductAuthorEmail: 573 | stvProductLink: 574 | stvProductCategory: 0 575 | XboxOneProductId: 576 | XboxOneUpdateKey: 577 | XboxOneSandboxId: 578 | XboxOneContentId: 579 | XboxOneTitleId: 580 | XboxOneSCId: 581 | XboxOneGameOsOverridePath: 582 | XboxOnePackagingOverridePath: 583 | XboxOneAppManifestOverridePath: 584 | XboxOnePackageEncryption: 0 585 | XboxOnePackageUpdateGranularity: 2 586 | XboxOneDescription: 587 | XboxOneLanguage: 588 | - enus 589 | XboxOneCapability: [] 590 | XboxOneGameRating: {} 591 | XboxOneIsContentPackage: 0 592 | XboxOneEnableGPUVariability: 0 593 | XboxOneSockets: {} 594 | XboxOneSplashScreen: {fileID: 0} 595 | XboxOneAllowedProductIds: [] 596 | XboxOnePersistentLocalStorageSize: 0 597 | xboxOneScriptCompiler: 0 598 | vrEditorSettings: 599 | daydream: 600 | daydreamIconForeground: {fileID: 0} 601 | daydreamIconBackground: {fileID: 0} 602 | cloudServicesEnabled: {} 603 | facebookSdkVersion: 7.9.4 604 | apiCompatibilityLevel: 2 605 | cloudProjectId: 606 | projectName: 607 | organizationId: 608 | cloudEnabled: 0 609 | enableNativePlatformBackendsForNewInputSystem: 0 610 | disableOldInputManagerSupport: 0 611 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.2.0f3 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 4 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 2 136 | antiAliasing: 2 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Samsung TV: 2 185 | Standalone: 5 186 | Tizen: 2 187 | WebGL: 3 188 | WiiU: 5 189 | Windows Store Apps: 5 190 | XboxOne: 5 191 | iPhone: 2 192 | tvOS: 2 193 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | DEPRECATED 2 | 3 | See repository here for a Unity 2019 sample that includes Loopback and Microphone as well as a VFX Graph example: 4 | 5 | https://github.com/hallidev/UnityWasapiAudio 6 | 7 | # UnityWASAPILoopbackAudio 8 | A barebones example of WASAPI Loopback Audio in Unity using CSCore 9 | 10 | Check out CSCore: 11 | https://github.com/filoe/cscore 12 | 13 | Instructions: 14 | 15 | 1: Clone / download 16 | 17 | 2: Open in Unity 18 | 19 | 3: IMPORTANT! If you are going to be making a build using this, you need to go to Edit -> Project Settings -> Player -> Api Compatibility Level and set it to ".NET 4.x". Otherwise you will get a kernel exception upon trying to run Unity Player. 20 | 21 | 4: Play some music on your computer 22 | 23 | 5: Bang that "Play" button 24 | 25 | That's it! 26 | 27 | You won't see the bar analyzer until you hit Play - it's instantiated at runtime. 28 | -------------------------------------------------------------------------------- /UnityPackageManager/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | } 4 | } 5 | --------------------------------------------------------------------------------