diff --git a/Editor/EditorUtils.cs b/Editor/EditorUtils.cs index 0200d1c..7e367db 100644 --- a/Editor/EditorUtils.cs +++ b/Editor/EditorUtils.cs @@ -17,30 +17,32 @@ namespace VelNet.Editor Dictionary ids = new Dictionary(); foreach (NetworkObject o in objs) { + SerializedObject so = new SerializedObject(o); + SerializedProperty sceneNetworkId = so.FindProperty("sceneNetworkId"); if (!o.isSceneObject) continue; - if (ids.ContainsKey(o.sceneNetworkId) || o.sceneNetworkId < 100) + if (ids.ContainsKey(sceneNetworkId.intValue) || sceneNetworkId.intValue < 100) { - if (ids.ContainsKey(o.sceneNetworkId)) + if (ids.ContainsKey(sceneNetworkId.intValue)) { - Debug.Log($"Found duplicated id: {o.name} {ids[o.sceneNetworkId].name}", o); + Debug.Log($"Found duplicated id: {o.name} {ids[sceneNetworkId.intValue].name}", o); } else { - Debug.Log($"Found duplicated id: {o.name} {o.sceneNetworkId}", o); + Debug.Log($"Found duplicated id: {o.name} {sceneNetworkId.intValue}", o); } - o.sceneNetworkId = 100; - while (ids.ContainsKey(o.sceneNetworkId)) + sceneNetworkId.intValue = 100; + while (ids.ContainsKey(sceneNetworkId.intValue)) { - o.sceneNetworkId += 1; + sceneNetworkId.intValue += 1; } - PrefabUtility.RecordPrefabInstancePropertyModifications(o); + so.ApplyModifiedProperties(); EditorSceneManager.MarkSceneDirty(SceneManager.GetActiveScene()); } - ids.Add(o.sceneNetworkId, o); + ids.Add(sceneNetworkId.intValue, o); } } diff --git a/Runtime/NetworkObject.cs b/Runtime/NetworkObject.cs index b784435..086ea6d 100644 --- a/Runtime/NetworkObject.cs +++ b/Runtime/NetworkObject.cs @@ -89,7 +89,7 @@ namespace VelNet return VelNetPlayer.SendMessage(this, componentByte, message, reliable); } - + public bool SendBytesToGroup(NetworkComponent component, bool isRpc, string group, byte[] message, bool reliable = true) { // only needs to be owner if this isn't an RPC @@ -169,15 +169,20 @@ namespace VelNet if (GUILayout.Button("Find Network Components and add backreferences.")) { - NetworkComponent[] comps = t.GetComponentsInChildren(); - t.syncedComponents = comps.ToList(); - foreach (NetworkComponent c in comps) + NetworkComponent[] components = t.GetComponentsInChildren(); + SerializedObject so = new SerializedObject(t); + SerializedProperty prop = so.FindProperty("syncedComponents"); + prop.ClearArray(); + foreach (NetworkComponent comp in components) { - c.networkObject = t; - PrefabUtility.RecordPrefabInstancePropertyModifications(c); + prop.InsertArrayElementAtIndex(0); + prop.GetArrayElementAtIndex(0).objectReferenceValue = comp; + SerializedObject soComponent = new SerializedObject(comp); + soComponent.FindProperty("networkObject").objectReferenceValue = t; + soComponent.ApplyModifiedProperties(); } - PrefabUtility.RecordPrefabInstancePropertyModifications(t); + so.ApplyModifiedProperties(); } // make the sceneNetworkId a new unique value @@ -195,8 +200,10 @@ namespace VelNet } } - t.sceneNetworkId = available; - PrefabUtility.RecordPrefabInstancePropertyModifications(t); + SerializedObject so = new SerializedObject(t); + SerializedProperty prop = so.FindProperty("sceneNetworkId"); + prop.intValue = available; + so.ApplyModifiedProperties(); } EditorGUILayout.Space(); diff --git a/Runtime/Plugins.meta b/Runtime/Plugins.meta index 8745142..dd4b9b5 100644 --- a/Runtime/Plugins.meta +++ b/Runtime/Plugins.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4a3b9ce0fbdeaeb49ba34712af854547 +guid: 8fc77b544145afc42aaad1a21565845b folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/VelNetManager.cs b/Runtime/VelNetManager.cs index bf12ae2..20aab53 100644 --- a/Runtime/VelNetManager.cs +++ b/Runtime/VelNetManager.cs @@ -423,7 +423,7 @@ namespace VelNet } case YouLeftMessage msg: { - LeaveRoom(); + LeaveRoomInternal(); break; } case PlayerLeftMessage lm: @@ -596,7 +596,7 @@ namespace VelNet } } - private void LeaveRoom() + private void LeaveRoomInternal() { VelNetLogger.Info("Leaving Room"); string oldRoom = LocalPlayer?.room; @@ -740,9 +740,11 @@ namespace VelNet //login case MessageReceivedType.LOGGED_IN: { - LoginMessage m = new LoginMessage(); - m.userId = GetIntFromBytes(ReadExact(stream, 4)); //not really the sender... - AddMessage(m); + AddMessage(new LoginMessage + { + // not really the sender... + userId = GetIntFromBytes(ReadExact(stream, 4)) + }); break; } //rooms @@ -761,10 +763,11 @@ namespace VelNet string[] pieces = s.Split(':'); if (pieces.Length == 2) { - ListedRoom lr = new ListedRoom(); - lr.name = pieces[0]; - lr.numUsers = int.Parse(pieces[1]); - m.rooms.Add(lr); + m.rooms.Add(new ListedRoom + { + name = pieces[0], + numUsers = int.Parse(pieces[1]) + }); } } @@ -1069,8 +1072,23 @@ namespace VelNet /// Joins a room by name /// /// The name of the room to join + [Obsolete("Use JoinRoom() instead")] public static void Join(string roomName) { + JoinRoom(roomName); + } + + /// + /// Joins a room by name + /// + /// The name of the room to join + public static void JoinRoom(string roomName) + { + if (instance.userid == -1) + { + Debug.LogError("Joining room before logging in.", instance); + return; + } MemoryStream stream = new MemoryStream(); BinaryWriter writer = new BinaryWriter(stream); @@ -1085,11 +1103,21 @@ namespace VelNet /// /// Leaves a room if we're in one /// + [Obsolete("Use LeaveRoom() instead")] public static void Leave() + { + LeaveRoom(); + } + + + /// + /// Leaves a room if we're in one + /// + public static void LeaveRoom() { if (InRoom) { - Join(""); // super secret way to leave + JoinRoom(""); // super secret way to leave } } @@ -1200,6 +1228,11 @@ namespace VelNet return NetworkInstantiate(prefabName); } + /// + /// Instantiates a prefab for all players. + /// + /// This prefab *must* by added to the list of prefabs in the scene's VelNetManager for all players. + /// The NetworkObject for the instantiated object. public static NetworkObject NetworkInstantiate(string prefabName) { VelNetPlayer localPlayer = LocalPlayer; diff --git a/Runtime/VelVoice.meta b/Runtime/VelVoice.meta new file mode 100644 index 0000000..2fc9241 --- /dev/null +++ b/Runtime/VelVoice.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d785ab2bc9c4e0b40843c6b858fdcc35 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/VelVoice/VelVoice.asmdef b/Runtime/VelVoice/VelVoice.asmdef new file mode 100644 index 0000000..dddd489 --- /dev/null +++ b/Runtime/VelVoice/VelVoice.asmdef @@ -0,0 +1,16 @@ +{ + "name": "VelVoice", + "rootNamespace": "VelNet.VelVoice", + "references": [ + "GUID:1e55e2c4387020247a1ae212bbcbd381" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Runtime/VelVoice/VelVoice.asmdef.meta b/Runtime/VelVoice/VelVoice.asmdef.meta new file mode 100644 index 0000000..525a640 --- /dev/null +++ b/Runtime/VelVoice/VelVoice.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 79880af77beac474791f8a1f79b26946 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Util/VelVoice.cs b/Runtime/VelVoice/VelVoice.cs similarity index 94% rename from Runtime/Util/VelVoice.cs rename to Runtime/VelVoice/VelVoice.cs index 733b0b7..5a3fb9a 100644 --- a/Runtime/Util/VelVoice.cs +++ b/Runtime/VelVoice/VelVoice.cs @@ -5,7 +5,7 @@ using System.Threading; using System; using System.Linq; -namespace VelNet +namespace VelNet.Voice { public class VelVoice : MonoBehaviour { @@ -65,7 +65,7 @@ namespace VelNet /// private int numSilent; - public int minSilencePacketsToStop = 5; + public int minSilencePacketsToStop = 10; private double averageVolume; private Thread t; public Action encodedFrameAvailable = delegate { }; @@ -92,10 +92,22 @@ namespace VelNet if (autostartMicrophone) { - StartMicrophone(Microphone.devices.FirstOrDefault()); + StartMicrophone(); } } + /// + /// Starts VelVoice with the default microphone. + /// + public void StartMicrophone() + { + StartMicrophone(Microphone.devices.FirstOrDefault()); + } + + /// + /// Starts VelVoice + /// + /// The device name of the microphone to record with public void StartMicrophone(string micDeviceName) { Debug.Log("Starting with microphone: " + micDeviceName); diff --git a/Runtime/Util/VelVoice.cs.meta b/Runtime/VelVoice/VelVoice.cs.meta similarity index 100% rename from Runtime/Util/VelVoice.cs.meta rename to Runtime/VelVoice/VelVoice.cs.meta diff --git a/Runtime/Util/VelVoicePlayer.cs b/Runtime/VelVoice/VelVoicePlayer.cs similarity index 96% rename from Runtime/Util/VelVoicePlayer.cs rename to Runtime/VelVoice/VelVoicePlayer.cs index 07eea1a..a07d516 100644 --- a/Runtime/Util/VelVoicePlayer.cs +++ b/Runtime/VelVoice/VelVoicePlayer.cs @@ -1,7 +1,7 @@ using System.IO; using UnityEngine; -namespace VelNet +namespace VelNet.Voice { public class VelVoicePlayer : NetworkComponent { @@ -75,10 +75,10 @@ namespace VelNet { if (bufferedAmount > playedAmount) { - var offset = bufferedAmount - playedAmount; + int offset = bufferedAmount - playedAmount; if ((offset > 1000) || (Time.time - delayStartTime) > .1f) //this seems to make the quality better { - var temp = Mathf.Max(0, offset - 2000); + int temp = Mathf.Max(0, offset - 2000); source.pitch = Mathf.Min(2, 1 + temp / 18000.0f); //okay to behind by 2000. These numbers correspond to about 2x speed at a seconds behind diff --git a/Runtime/Util/VelVoicePlayer.cs.meta b/Runtime/VelVoice/VelVoicePlayer.cs.meta similarity index 100% rename from Runtime/Util/VelVoicePlayer.cs.meta rename to Runtime/VelVoice/VelVoicePlayer.cs.meta diff --git a/Samples.meta b/Samples.meta new file mode 100644 index 0000000..7f21dea --- /dev/null +++ b/Samples.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c21669ca5861f6d4abeb8ebd066d3527 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/Example.meta b/Samples/BasicExample.meta similarity index 100% rename from Samples~/Example.meta rename to Samples/BasicExample.meta diff --git a/Samples/BasicExample/BasicExample.asmdef b/Samples/BasicExample/BasicExample.asmdef new file mode 100644 index 0000000..256483f --- /dev/null +++ b/Samples/BasicExample/BasicExample.asmdef @@ -0,0 +1,16 @@ +{ + "name": "BasicExample", + "rootNamespace": "", + "references": [ + "GUID:1e55e2c4387020247a1ae212bbcbd381" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Samples/BasicExample/BasicExample.asmdef.meta b/Samples/BasicExample/BasicExample.asmdef.meta new file mode 100644 index 0000000..f667d22 --- /dev/null +++ b/Samples/BasicExample/BasicExample.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: fa31ea627f36a894b881f02122e95022 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleDissonance/Materials.meta b/Samples/BasicExample/Materials.meta similarity index 77% rename from Samples~/ExampleDissonance/Materials.meta rename to Samples/BasicExample/Materials.meta index 38f5869..d710c99 100644 --- a/Samples~/ExampleDissonance/Materials.meta +++ b/Samples/BasicExample/Materials.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dc0ae145afb98164493d097e29dfb3bd +guid: 73beb3717001234418e2f581119bf132 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Samples~/ExampleVelVoice/Materials/TransparentMat.mat b/Samples/BasicExample/Materials/Black.mat similarity index 82% rename from Samples~/ExampleVelVoice/Materials/TransparentMat.mat rename to Samples/BasicExample/Materials/Black.mat index 194ed0a..f8deb84 100644 --- a/Samples~/ExampleVelVoice/Materials/TransparentMat.mat +++ b/Samples/BasicExample/Materials/Black.mat @@ -2,20 +2,20 @@ %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: - serializedVersion: 6 + serializedVersion: 8 m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: TransparentMat + m_Name: Black m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} - m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _GLOSSYREFLECTIONS_OFF _SPECULARHIGHLIGHTS_OFF + m_ValidKeywords: [] + m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 - m_CustomRenderQueue: 3000 - stringTagMap: - RenderType: Transparent + m_CustomRenderQueue: -1 + stringTagMap: {} disabledShaderPasses: [] m_SavedProperties: serializedVersion: 3 @@ -56,24 +56,25 @@ Material: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} + m_Ints: [] m_Floats: - _BumpScale: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 - - _DstBlend: 10 + - _DstBlend: 0 - _GlossMapScale: 1 - - _Glossiness: 0.5 - - _GlossyReflections: 0 + - _Glossiness: 0 + - _GlossyReflections: 1 - _Metallic: 0 - - _Mode: 3 + - _Mode: 0 - _OcclusionStrength: 1 - _Parallax: 0.02 - _SmoothnessTextureChannel: 0 - - _SpecularHighlights: 0 + - _SpecularHighlights: 1 - _SrcBlend: 1 - _UVSec: 0 - - _ZWrite: 0 + - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 0.03137255} + - _Color: {r: 0.103773594, g: 0.103773594, b: 0.103773594, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} m_BuildTextureStacks: [] diff --git a/Samples~/ExampleDissonance/Materials/TransparentMat.mat.meta b/Samples/BasicExample/Materials/Black.mat.meta similarity index 79% rename from Samples~/ExampleDissonance/Materials/TransparentMat.mat.meta rename to Samples/BasicExample/Materials/Black.mat.meta index ab60bc1..34cfa43 100644 --- a/Samples~/ExampleDissonance/Materials/TransparentMat.mat.meta +++ b/Samples/BasicExample/Materials/Black.mat.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6fad1ca32acea73489c2c4b898cdb9d4 +guid: d324d61aab426a3469d1f8f57de79236 NativeFormatImporter: externalObjects: {} mainObjectFileID: 2100000 diff --git a/Samples/BasicExample/Materials/White.mat b/Samples/BasicExample/Materials/White.mat new file mode 100644 index 0000000..7932c00 --- /dev/null +++ b/Samples/BasicExample/Materials/White.mat @@ -0,0 +1,80 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: White + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Samples/BasicExample/Materials/White.mat.meta b/Samples/BasicExample/Materials/White.mat.meta new file mode 100644 index 0000000..adef305 --- /dev/null +++ b/Samples/BasicExample/Materials/White.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 03fbf3fd787bfcb41a583d9e97e35f6b +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleVelVoice/Prefabs.meta b/Samples/BasicExample/Prefabs.meta similarity index 77% rename from Samples~/ExampleVelVoice/Prefabs.meta rename to Samples/BasicExample/Prefabs.meta index af051bd..3726ac2 100644 --- a/Samples~/ExampleVelVoice/Prefabs.meta +++ b/Samples/BasicExample/Prefabs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 18b28d1150d229647ae76efe2bea95f8 +guid: 1677f080c48d13e42a92a5e77b88ed2a folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Samples/BasicExample/Prefabs/PlayerPrefab.prefab b/Samples/BasicExample/Prefabs/PlayerPrefab.prefab new file mode 100644 index 0000000..f916045 --- /dev/null +++ b/Samples/BasicExample/Prefabs/PlayerPrefab.prefab @@ -0,0 +1,449 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &857495161650682534 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 468346864574947203} + - component: {fileID: 6200543026214726218} + - component: {fileID: 3836140235167936603} + - component: {fileID: 2985972989340466755} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &468346864574947203 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 857495161650682534} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.25, y: 0.182, z: -0.5} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3076416102083120807} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &6200543026214726218 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 857495161650682534} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &3836140235167936603 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 857495161650682534} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: d324d61aab426a3469d1f8f57de79236, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &2985972989340466755 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 857495161650682534} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &2597866068570990601 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7140957824065309761} + - component: {fileID: 3781999332398636156} + - component: {fileID: 8208957152953143025} + - component: {fileID: 8134777332132834302} + m_Layer: 0 + m_Name: Cube (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7140957824065309761 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.25, y: 0.182, z: -0.5} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3076416102083120807} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3781999332398636156 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &8208957152953143025 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: d324d61aab426a3469d1f8f57de79236, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &8134777332132834302 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &6139051692386484099 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3076416102083120807} + - component: {fileID: 8527011532923434593} + - component: {fileID: 6854617867369839} + - component: {fileID: 5845716565458182149} + - component: {fileID: 9102273340480352682} + - component: {fileID: 7564913803199044469} + - component: {fileID: 3931189231264197893} + m_Layer: 0 + m_Name: PlayerPrefab + m_TagString: TestSphere + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3076416102083120807 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 468346864574947203} + - {fileID: 7140957824065309761} + - {fileID: 7386466832192907297} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &8527011532923434593 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &6854617867369839 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 03fbf3fd787bfcb41a583d9e97e35f6b, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &5845716565458182149 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!114 &9102273340480352682 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5515094c5c544b6b8ed7fd51a86548d4, type: 3} + m_Name: + m_EditorClassIdentifier: + ownershipLocked: 1 + networkId: + sceneNetworkId: 0 + prefabName: + isSceneObject: 0 + syncedComponents: + - {fileID: 7564913803199044469} +--- !u!114 &7564913803199044469 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3f1f9b0bbd93a484a987c51f1107ebe5, type: 3} + m_Name: + m_EditorClassIdentifier: + networkObject: {fileID: 9102273340480352682} + serializationRateHz: 60 + hybridOnChangeCompression: 1 + position: 1 + rotation: 0 + scale: 0 + useLocalTransform: 0 + teleportDistance: 0 + teleportAngle: 0 +--- !u!114 &3931189231264197893 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 544bfd0908e09d141adb9828d99baa08, type: 3} + m_Name: + m_EditorClassIdentifier: + networkObject: {fileID: 9102273340480352682} +--- !u!1 &7360746642267561319 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7386466832192907297} + - component: {fileID: 965219210261117935} + - component: {fileID: 794944376408528338} + - component: {fileID: 8136080099801646095} + m_Layer: 0 + m_Name: Cube (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7386466832192907297 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: -0.16800001, z: -0.5} + m_LocalScale: {x: 0.5, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3076416102083120807} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &965219210261117935 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &794944376408528338 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: d324d61aab426a3469d1f8f57de79236, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &8136080099801646095 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab.meta b/Samples/BasicExample/Prefabs/PlayerPrefab.prefab.meta similarity index 74% rename from Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab.meta rename to Samples/BasicExample/Prefabs/PlayerPrefab.prefab.meta index 7899882..b0a3bb8 100644 --- a/Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab.meta +++ b/Samples/BasicExample/Prefabs/PlayerPrefab.prefab.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d4158ab9c4a204cdbba28d3273fc1fb3 +guid: a530707991ae9de48b82ac6c85d69611 PrefabImporter: externalObjects: {} userData: diff --git a/Samples~/ExampleVelVoice/Scenes.meta b/Samples/BasicExample/Scenes.meta similarity index 77% rename from Samples~/ExampleVelVoice/Scenes.meta rename to Samples/BasicExample/Scenes.meta index 6c58880..97bfd07 100644 --- a/Samples~/ExampleVelVoice/Scenes.meta +++ b/Samples/BasicExample/Scenes.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f8bb9027566930042942da486c1e29e0 +guid: 62bcc1d2cada2c74ea4a5942e61c8631 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Samples/BasicExample/Scenes/BasicExample.unity b/Samples/BasicExample/Scenes/BasicExample.unity new file mode 100644 index 0000000..eb3602f --- /dev/null +++ b/Samples/BasicExample/Scenes/BasicExample.unity @@ -0,0 +1,624 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.5137255, g: 0.53333336, b: 0.5647059, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 652307110} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 112000000, guid: d1b34f106c04378428823df374b0e07c, type: 2} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &284766986 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 284766990} + - component: {fileID: 284766989} + - component: {fileID: 284766988} + - component: {fileID: 284766987} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &284766987 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 284766986} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &284766988 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 284766986} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &284766989 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 284766986} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!224 &284766990 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 284766986} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 435632865} + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!1 &435632864 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 435632865} + - component: {fileID: 435632867} + - component: {fileID: 435632866} + m_Layer: 5 + m_Name: README + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &435632865 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 435632864} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 284766990} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -60, y: -60} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &435632866 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 435632864} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 20 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 2 + m_MaxSize: 40 + m_Alignment: 0 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: 'This is a minimal sample for VelNet. + + BasicVelNetMan joins a static + room code and spawns a movable player character.' +--- !u!222 &435632867 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 435632864} + m_CullTransparentMesh: 1 +--- !u!1 &440509381 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 440509384} + - component: {fileID: 440509383} + - component: {fileID: 440509382} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &440509382 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 440509381} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &440509383 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 440509381} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &440509384 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 440509381} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &652307109 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 652307111} + - component: {fileID: 652307110} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &652307110 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 652307109} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_UseViewFrustumForShadowCasterCull: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &652307111 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 652307109} + m_LocalRotation: {x: 0.20336074, y: -0.13662237, z: 0.1672859, w: 0.9549839} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 25.729, y: -12.365, z: 17.037} +--- !u!1 &903768653 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 903768657} + - component: {fileID: 903768656} + - component: {fileID: 903768658} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!20 &903768656 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 903768653} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.2735849, g: 0.2735849, b: 0.2735849, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 40 + orthographic: 1 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &903768657 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 903768653} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -20} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!81 &903768658 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 903768653} + m_Enabled: 1 +--- !u!1 &1099803612 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1099803615} + - component: {fileID: 1099803616} + - component: {fileID: 1099803617} + m_Layer: 0 + m_Name: NetworkManager + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1099803615 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099803612} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1099803616 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099803612} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 233344de094f11341bdb834d564708dc, type: 3} + m_Name: + m_EditorClassIdentifier: + host: vn.ugavel.com + port: 5000 + udpConnected: 0 + userid: -1 + debugMessages: 1 + autoLogin: 1 + onlyConnectToSameVersion: 1 + connected: 0 + prefabs: + - {fileID: 9102273340480352682, guid: a530707991ae9de48b82ac6c85d69611, type: 3} + sceneObjects: [] + deletedSceneObjects: [] +--- !u!114 &1099803617 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099803612} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b617a8f3fd4ddee48aeca1947a2ac9c8, type: 3} + m_Name: + m_EditorClassIdentifier: + playerPrefab: {fileID: 6139051692386484099, guid: a530707991ae9de48b82ac6c85d69611, type: 3} diff --git a/Samples~/ExampleVelVoice/Scenes/VelVoiceSample.unity.meta b/Samples/BasicExample/Scenes/BasicExample.unity.meta similarity index 74% rename from Samples~/ExampleVelVoice/Scenes/VelVoiceSample.unity.meta rename to Samples/BasicExample/Scenes/BasicExample.unity.meta index 79d6735..1e8fddd 100644 --- a/Samples~/ExampleVelVoice/Scenes/VelVoiceSample.unity.meta +++ b/Samples/BasicExample/Scenes/BasicExample.unity.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 640dff55801b890489258dcd776d4562 +guid: 60df66da82c2e5640a77683b7469852d DefaultImporter: externalObjects: {} userData: diff --git a/Samples~/ExampleVelVoice/Scripts.meta b/Samples/BasicExample/Scripts.meta similarity index 77% rename from Samples~/ExampleVelVoice/Scripts.meta rename to Samples/BasicExample/Scripts.meta index f2cbcac..a38e7f7 100644 --- a/Samples~/ExampleVelVoice/Scripts.meta +++ b/Samples/BasicExample/Scripts.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: cd6dd1d4e81bce64faaf29eedf9d2a63 +guid: 3d280ad558c9e3e42a4d44b6b3c520f1 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Samples/BasicExample/Scripts/BasicVelNetMan.cs b/Samples/BasicExample/Scripts/BasicVelNetMan.cs new file mode 100644 index 0000000..3380e9f --- /dev/null +++ b/Samples/BasicExample/Scripts/BasicVelNetMan.cs @@ -0,0 +1,13 @@ +using UnityEngine; +using VelNet; + +public class BasicVelNetMan : MonoBehaviour +{ + public GameObject playerPrefab; + + private void Start() + { + VelNetManager.OnLoggedIn += () => VelNetManager.JoinRoom("BasicExample"); + VelNetManager.OnJoinedRoom += _ => { VelNetManager.NetworkInstantiate(playerPrefab.name); }; + } +} \ No newline at end of file diff --git a/Samples/BasicExample/Scripts/BasicVelNetMan.cs.meta b/Samples/BasicExample/Scripts/BasicVelNetMan.cs.meta new file mode 100644 index 0000000..329f3aa --- /dev/null +++ b/Samples/BasicExample/Scripts/BasicVelNetMan.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b617a8f3fd4ddee48aeca1947a2ac9c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/BasicExample/Scripts/PlayerController.cs b/Samples/BasicExample/Scripts/PlayerController.cs new file mode 100644 index 0000000..157027c --- /dev/null +++ b/Samples/BasicExample/Scripts/PlayerController.cs @@ -0,0 +1,21 @@ +using UnityEngine; + +namespace VelNet +{ + public class PlayerController : MonoBehaviour + { + public NetworkObject networkObject; + + private void Update() + { + if (networkObject.IsMine) + { + Vector3 movement = new Vector3(); + movement.x += Input.GetAxis("Horizontal"); + movement.y += Input.GetAxis("Vertical"); + movement.z = 0; + transform.Translate(movement * Time.deltaTime); + } + } + } +} \ No newline at end of file diff --git a/Samples~/ExampleVelVoice/Scripts/PlayerController.cs.meta b/Samples/BasicExample/Scripts/PlayerController.cs.meta similarity index 83% rename from Samples~/ExampleVelVoice/Scripts/PlayerController.cs.meta rename to Samples/BasicExample/Scripts/PlayerController.cs.meta index 1c49a76..fa0896f 100644 --- a/Samples~/ExampleVelVoice/Scripts/PlayerController.cs.meta +++ b/Samples/BasicExample/Scripts/PlayerController.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 89e3af759df774692a566a166b4bf69b +guid: 544bfd0908e09d141adb9828d99baa08 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples/DissonanceExample.meta b/Samples/DissonanceExample.meta new file mode 100644 index 0000000..a94c822 --- /dev/null +++ b/Samples/DissonanceExample.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5bffab8a5a16b2749827ee95aed74863 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleVelVoice/Materials.meta b/Samples/DissonanceExample/Materials.meta similarity index 77% rename from Samples~/ExampleVelVoice/Materials.meta rename to Samples/DissonanceExample/Materials.meta index 38f5869..4854d1f 100644 --- a/Samples~/ExampleVelVoice/Materials.meta +++ b/Samples/DissonanceExample/Materials.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dc0ae145afb98164493d097e29dfb3bd +guid: f237d49fc522bd04fa69847249233357 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Samples~/ExampleDissonance/Materials/TransparentMat.mat b/Samples/DissonanceExample/Materials/TransparentMat.mat similarity index 100% rename from Samples~/ExampleDissonance/Materials/TransparentMat.mat rename to Samples/DissonanceExample/Materials/TransparentMat.mat diff --git a/Samples~/ExampleVelVoice/Materials/TransparentMat.mat.meta b/Samples/DissonanceExample/Materials/TransparentMat.mat.meta similarity index 79% rename from Samples~/ExampleVelVoice/Materials/TransparentMat.mat.meta rename to Samples/DissonanceExample/Materials/TransparentMat.mat.meta index ab60bc1..177818e 100644 --- a/Samples~/ExampleVelVoice/Materials/TransparentMat.mat.meta +++ b/Samples/DissonanceExample/Materials/TransparentMat.mat.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6fad1ca32acea73489c2c4b898cdb9d4 +guid: 7ad173f785ad60f49a6f33269f7adbe8 NativeFormatImporter: externalObjects: {} mainObjectFileID: 2100000 diff --git a/Samples~/ExampleDissonance/Prefabs.meta b/Samples/DissonanceExample/Prefabs.meta similarity index 77% rename from Samples~/ExampleDissonance/Prefabs.meta rename to Samples/DissonanceExample/Prefabs.meta index af051bd..9083e37 100644 --- a/Samples~/ExampleDissonance/Prefabs.meta +++ b/Samples/DissonanceExample/Prefabs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 18b28d1150d229647ae76efe2bea95f8 +guid: 2409c17c982a3b948b1647a8bda7f242 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Samples~/ExampleDissonance/Prefabs/PlayerPrefab.prefab b/Samples/DissonanceExample/Prefabs/PlayerPrefab.prefab similarity index 100% rename from Samples~/ExampleDissonance/Prefabs/PlayerPrefab.prefab rename to Samples/DissonanceExample/Prefabs/PlayerPrefab.prefab diff --git a/Samples~/ExampleDissonance/Prefabs/PlayerPrefab.prefab.meta b/Samples/DissonanceExample/Prefabs/PlayerPrefab.prefab.meta similarity index 74% rename from Samples~/ExampleDissonance/Prefabs/PlayerPrefab.prefab.meta rename to Samples/DissonanceExample/Prefabs/PlayerPrefab.prefab.meta index 7899882..7873d34 100644 --- a/Samples~/ExampleDissonance/Prefabs/PlayerPrefab.prefab.meta +++ b/Samples/DissonanceExample/Prefabs/PlayerPrefab.prefab.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d4158ab9c4a204cdbba28d3273fc1fb3 +guid: 0e4840d8111cace419728cad0265592f PrefabImporter: externalObjects: {} userData: diff --git a/Samples~/ExampleDissonance/Prefabs/TestNetworkedGameObject.prefab b/Samples/DissonanceExample/Prefabs/TestNetworkedGameObject.prefab similarity index 100% rename from Samples~/ExampleDissonance/Prefabs/TestNetworkedGameObject.prefab rename to Samples/DissonanceExample/Prefabs/TestNetworkedGameObject.prefab diff --git a/Samples~/ExampleDissonance/Prefabs/TestNetworkedGameObject.prefab.meta b/Samples/DissonanceExample/Prefabs/TestNetworkedGameObject.prefab.meta similarity index 74% rename from Samples~/ExampleDissonance/Prefabs/TestNetworkedGameObject.prefab.meta rename to Samples/DissonanceExample/Prefabs/TestNetworkedGameObject.prefab.meta index 0743d13..4c47603 100644 --- a/Samples~/ExampleDissonance/Prefabs/TestNetworkedGameObject.prefab.meta +++ b/Samples/DissonanceExample/Prefabs/TestNetworkedGameObject.prefab.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6e4a023f70e01405e8b249a4488fe319 +guid: 5b473cb6cca293d4290bdea340dc9da0 PrefabImporter: externalObjects: {} userData: diff --git a/Samples~/ExampleDissonance/Scenes.meta b/Samples/DissonanceExample/Scenes.meta similarity index 77% rename from Samples~/ExampleDissonance/Scenes.meta rename to Samples/DissonanceExample/Scenes.meta index 6c58880..9974e57 100644 --- a/Samples~/ExampleDissonance/Scenes.meta +++ b/Samples/DissonanceExample/Scenes.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f8bb9027566930042942da486c1e29e0 +guid: 030e396768855b44cb28aa167de6b814 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Samples~/ExampleDissonance/Scenes/Demo All.unity b/Samples/DissonanceExample/Scenes/Demo All.unity similarity index 100% rename from Samples~/ExampleDissonance/Scenes/Demo All.unity rename to Samples/DissonanceExample/Scenes/Demo All.unity diff --git a/Samples~/ExampleDissonance/Scenes/Demo All.unity.meta b/Samples/DissonanceExample/Scenes/Demo All.unity.meta similarity index 100% rename from Samples~/ExampleDissonance/Scenes/Demo All.unity.meta rename to Samples/DissonanceExample/Scenes/Demo All.unity.meta diff --git a/Samples~/ExampleDissonance/Scenes/Simple Connection Example.unity b/Samples/DissonanceExample/Scenes/Simple Connection Example.unity similarity index 100% rename from Samples~/ExampleDissonance/Scenes/Simple Connection Example.unity rename to Samples/DissonanceExample/Scenes/Simple Connection Example.unity diff --git a/Samples~/ExampleDissonance/Scenes/Simple Connection Example.unity.meta b/Samples/DissonanceExample/Scenes/Simple Connection Example.unity.meta similarity index 100% rename from Samples~/ExampleDissonance/Scenes/Simple Connection Example.unity.meta rename to Samples/DissonanceExample/Scenes/Simple Connection Example.unity.meta diff --git a/Samples~/ExampleDissonance/Scripts.meta b/Samples/DissonanceExample/Scripts.meta similarity index 77% rename from Samples~/ExampleDissonance/Scripts.meta rename to Samples/DissonanceExample/Scripts.meta index f2cbcac..7fcb279 100644 --- a/Samples~/ExampleDissonance/Scripts.meta +++ b/Samples/DissonanceExample/Scripts.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: cd6dd1d4e81bce64faaf29eedf9d2a63 +guid: bc774e4782fc23d46af9b65fb717eda5 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Samples~/ExampleDissonance/Scripts/CustomMessageTest.cs b/Samples/DissonanceExample/Scripts/CustomMessageTest.cs similarity index 100% rename from Samples~/ExampleDissonance/Scripts/CustomMessageTest.cs rename to Samples/DissonanceExample/Scripts/CustomMessageTest.cs diff --git a/Samples~/ExampleDissonance/Scripts/CustomMessageTest.cs.meta b/Samples/DissonanceExample/Scripts/CustomMessageTest.cs.meta similarity index 83% rename from Samples~/ExampleDissonance/Scripts/CustomMessageTest.cs.meta rename to Samples/DissonanceExample/Scripts/CustomMessageTest.cs.meta index 354019c..5b334d0 100644 --- a/Samples~/ExampleDissonance/Scripts/CustomMessageTest.cs.meta +++ b/Samples/DissonanceExample/Scripts/CustomMessageTest.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5ea1fe0eb58e4184bbb2edcc99c51119 +guid: 6f028099402b51942b4246adf1e41933 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples~/ExampleDissonance/Scripts/MouseDragger.cs b/Samples/DissonanceExample/Scripts/MouseDragger.cs similarity index 100% rename from Samples~/ExampleDissonance/Scripts/MouseDragger.cs rename to Samples/DissonanceExample/Scripts/MouseDragger.cs diff --git a/Samples~/ExampleVelVoice/Scripts/MouseDragger.cs.meta b/Samples/DissonanceExample/Scripts/MouseDragger.cs.meta similarity index 83% rename from Samples~/ExampleVelVoice/Scripts/MouseDragger.cs.meta rename to Samples/DissonanceExample/Scripts/MouseDragger.cs.meta index dcc6a81..4eb6624 100644 --- a/Samples~/ExampleVelVoice/Scripts/MouseDragger.cs.meta +++ b/Samples/DissonanceExample/Scripts/MouseDragger.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c9d312e1088769143a72b0c13d5aee32 +guid: 6a209e255812230429070c96dfbf5ab6 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples~/ExampleDissonance/Scripts/NetworkGUI.cs b/Samples/DissonanceExample/Scripts/NetworkGUI.cs similarity index 96% rename from Samples~/ExampleDissonance/Scripts/NetworkGUI.cs rename to Samples/DissonanceExample/Scripts/NetworkGUI.cs index f938720..90e9a25 100644 --- a/Samples~/ExampleDissonance/Scripts/NetworkGUI.cs +++ b/Samples/DissonanceExample/Scripts/NetworkGUI.cs @@ -1,3 +1,6 @@ +#undef DISSONANCE + +#if DISSONANCE using System.Collections; using System.Collections.Generic; using Dissonance; @@ -66,4 +69,5 @@ namespace VelNet comms.MicrophoneName = microphones.options[microphones.value].text; } } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Samples~/ExampleVelVoice/Scripts/NetworkGUI.cs.meta b/Samples/DissonanceExample/Scripts/NetworkGUI.cs.meta similarity index 83% rename from Samples~/ExampleVelVoice/Scripts/NetworkGUI.cs.meta rename to Samples/DissonanceExample/Scripts/NetworkGUI.cs.meta index c4289bb..83c55aa 100644 --- a/Samples~/ExampleVelVoice/Scripts/NetworkGUI.cs.meta +++ b/Samples/DissonanceExample/Scripts/NetworkGUI.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7a7db5bc792cd471dbd8039664359eee +guid: 76b585eeefe1fd34296f5f8dd84f9131 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples~/ExampleDissonance/Scripts/PlayerController.cs b/Samples/DissonanceExample/Scripts/PlayerController.cs similarity index 100% rename from Samples~/ExampleDissonance/Scripts/PlayerController.cs rename to Samples/DissonanceExample/Scripts/PlayerController.cs diff --git a/Samples~/ExampleDissonance/Scripts/PlayerController.cs.meta b/Samples/DissonanceExample/Scripts/PlayerController.cs.meta similarity index 83% rename from Samples~/ExampleDissonance/Scripts/PlayerController.cs.meta rename to Samples/DissonanceExample/Scripts/PlayerController.cs.meta index 1c49a76..d7790ad 100644 --- a/Samples~/ExampleDissonance/Scripts/PlayerController.cs.meta +++ b/Samples/DissonanceExample/Scripts/PlayerController.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 89e3af759df774692a566a166b4bf69b +guid: 6ed633903e3092f429a9f86803829fb1 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples~/ExampleDissonance/Scripts/RPCTest.cs b/Samples/DissonanceExample/Scripts/RPCTest.cs similarity index 100% rename from Samples~/ExampleDissonance/Scripts/RPCTest.cs rename to Samples/DissonanceExample/Scripts/RPCTest.cs diff --git a/Samples~/ExampleDissonance/Scripts/RPCTest.cs.meta b/Samples/DissonanceExample/Scripts/RPCTest.cs.meta similarity index 83% rename from Samples~/ExampleDissonance/Scripts/RPCTest.cs.meta rename to Samples/DissonanceExample/Scripts/RPCTest.cs.meta index 6f48220..469598b 100644 --- a/Samples~/ExampleDissonance/Scripts/RPCTest.cs.meta +++ b/Samples/DissonanceExample/Scripts/RPCTest.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2bcc94802a5742d4299e48c898e52dfa +guid: a8a3bcaa880b94c4499917e478745de6 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples~/ExampleDissonance/Scripts/SyncedTextbox.cs b/Samples/DissonanceExample/Scripts/SyncedTextbox.cs similarity index 100% rename from Samples~/ExampleDissonance/Scripts/SyncedTextbox.cs rename to Samples/DissonanceExample/Scripts/SyncedTextbox.cs diff --git a/Samples~/ExampleDissonance/Scripts/SyncedTextbox.cs.meta b/Samples/DissonanceExample/Scripts/SyncedTextbox.cs.meta similarity index 83% rename from Samples~/ExampleDissonance/Scripts/SyncedTextbox.cs.meta rename to Samples/DissonanceExample/Scripts/SyncedTextbox.cs.meta index 2e95173..17e5b67 100644 --- a/Samples~/ExampleDissonance/Scripts/SyncedTextbox.cs.meta +++ b/Samples/DissonanceExample/Scripts/SyncedTextbox.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0a7b2180d3fffdc459417bfc24b179b8 +guid: 20e2fcb77785d3843828f7bdf56e204a MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples~/ExampleDissonance/Scripts/VelNetMan.cs b/Samples/DissonanceExample/Scripts/VelNetMan.cs similarity index 100% rename from Samples~/ExampleDissonance/Scripts/VelNetMan.cs rename to Samples/DissonanceExample/Scripts/VelNetMan.cs diff --git a/Samples~/ExampleDissonance/Scripts/VelNetMan.cs.meta b/Samples/DissonanceExample/Scripts/VelNetMan.cs.meta similarity index 83% rename from Samples~/ExampleDissonance/Scripts/VelNetMan.cs.meta rename to Samples/DissonanceExample/Scripts/VelNetMan.cs.meta index 225d370..10b58aa 100644 --- a/Samples~/ExampleDissonance/Scripts/VelNetMan.cs.meta +++ b/Samples/DissonanceExample/Scripts/VelNetMan.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2fcf036844b060b47b23ad9a1e49eec2 +guid: 29b463252bcc8f54f89d79adf5ba5db7 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples/DissonanceExample/VelNetDissonanceExample.asmdef b/Samples/DissonanceExample/VelNetDissonanceExample.asmdef new file mode 100644 index 0000000..5778e13 --- /dev/null +++ b/Samples/DissonanceExample/VelNetDissonanceExample.asmdef @@ -0,0 +1,14 @@ +{ + "name": "VelNetDissonanceExample", + "rootNamespace": "", + "references": ["GUID:1e55e2c4387020247a1ae212bbcbd381"], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Samples/DissonanceExample/VelNetDissonanceExample.asmdef.meta b/Samples/DissonanceExample/VelNetDissonanceExample.asmdef.meta new file mode 100644 index 0000000..9356776 --- /dev/null +++ b/Samples/DissonanceExample/VelNetDissonanceExample.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: c313e658f79a2d34a8b878ed7e07d53f +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/FullExample.meta b/Samples/FullExample.meta new file mode 100644 index 0000000..1c9a17e --- /dev/null +++ b/Samples/FullExample.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 92660f87d08e4df4bb60742175cca0f6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/FullExample/FullExample.asmdef b/Samples/FullExample/FullExample.asmdef new file mode 100644 index 0000000..fa2c111 --- /dev/null +++ b/Samples/FullExample/FullExample.asmdef @@ -0,0 +1,17 @@ +{ + "name": "FullExample", + "rootNamespace": "", + "references": [ + "GUID:1e55e2c4387020247a1ae212bbcbd381", + "GUID:79880af77beac474791f8a1f79b26946" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Samples/FullExample/FullExample.asmdef.meta b/Samples/FullExample/FullExample.asmdef.meta new file mode 100644 index 0000000..d78cf25 --- /dev/null +++ b/Samples/FullExample/FullExample.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: d4fa03c9f21d52c49b2853b8456e4c11 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/FullExample/Materials.meta b/Samples/FullExample/Materials.meta new file mode 100644 index 0000000..c495270 --- /dev/null +++ b/Samples/FullExample/Materials.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 012250ead0b8f8c46a672d660f33037e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/FullExample/Materials/Black.mat b/Samples/FullExample/Materials/Black.mat new file mode 100644 index 0000000..f8deb84 --- /dev/null +++ b/Samples/FullExample/Materials/Black.mat @@ -0,0 +1,80 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Black + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 0.103773594, g: 0.103773594, b: 0.103773594, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Samples/FullExample/Materials/Black.mat.meta b/Samples/FullExample/Materials/Black.mat.meta new file mode 100644 index 0000000..eadfda8 --- /dev/null +++ b/Samples/FullExample/Materials/Black.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 87360e56e93cb524694c613ac2b9802d +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/FullExample/Materials/White.mat b/Samples/FullExample/Materials/White.mat new file mode 100644 index 0000000..7932c00 --- /dev/null +++ b/Samples/FullExample/Materials/White.mat @@ -0,0 +1,80 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: White + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Samples/FullExample/Materials/White.mat.meta b/Samples/FullExample/Materials/White.mat.meta new file mode 100644 index 0000000..d6af50b --- /dev/null +++ b/Samples/FullExample/Materials/White.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4e7ca9c240c17b04688f4beb6eba5840 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/FullExample/Prefabs.meta b/Samples/FullExample/Prefabs.meta new file mode 100644 index 0000000..d1a65b3 --- /dev/null +++ b/Samples/FullExample/Prefabs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 443fae9b4d405034ea782f68f3b4b847 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab b/Samples/FullExample/Prefabs/PlayerPrefab.prefab similarity index 52% rename from Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab rename to Samples/FullExample/Prefabs/PlayerPrefab.prefab index aa3f17d..fbc90dc 100644 --- a/Samples~/ExampleVelVoice/Prefabs/PlayerPrefab.prefab +++ b/Samples/FullExample/Prefabs/PlayerPrefab.prefab @@ -1,6 +1,6 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!1 &2802320351940726854 +--- !u!1 &857495161650682534 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -8,46 +8,47 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 6602982999811082154} - - component: {fileID: 6433756913090684124} - - component: {fileID: 6919422133110223353} + - component: {fileID: 468346864574947203} + - component: {fileID: 6200543026214726218} + - component: {fileID: 3836140235167936603} + - component: {fileID: 2985972989340466755} m_Layer: 0 - m_Name: Range + m_Name: Cube m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!4 &6602982999811082154 +--- !u!4 &468346864574947203 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2802320351940726854} - m_LocalRotation: {x: -0.70710635, y: -0, z: -0, w: 0.7071073} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 8, y: 0.1, z: 8} + m_GameObject: {fileID: 857495161650682534} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.25, y: 0.182, z: -0.5} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3076416102083120807} m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} ---- !u!33 &6433756913090684124 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &6200543026214726218 MeshFilter: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2802320351940726854} - m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &6919422133110223353 + m_GameObject: {fileID: 857495161650682534} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &3836140235167936603 MeshRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2802320351940726854} + m_GameObject: {fileID: 857495161650682534} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 @@ -61,7 +62,7 @@ MeshRenderer: m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 2100000, guid: 6fad1ca32acea73489c2c4b898cdb9d4, type: 2} + - {fileID: 2100000, guid: d324d61aab426a3469d1f8f57de79236, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -83,6 +84,116 @@ MeshRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &2985972989340466755 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 857495161650682534} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &2597866068570990601 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7140957824065309761} + - component: {fileID: 3781999332398636156} + - component: {fileID: 8208957152953143025} + - component: {fileID: 8134777332132834302} + m_Layer: 0 + m_Name: Cube (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7140957824065309761 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.25, y: 0.182, z: -0.5} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3076416102083120807} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3781999332398636156 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &8208957152953143025 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: d324d61aab426a3469d1f8f57de79236, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &8134777332132834302 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} --- !u!1 &6139051692386484099 GameObject: m_ObjectHideFlags: 0 @@ -96,10 +207,10 @@ GameObject: - component: {fileID: 6854617867369839} - component: {fileID: 5845716565458182149} - component: {fileID: 9102273340480352682} - - component: {fileID: -4404668399269848200} - component: {fileID: 7564913803199044469} - - component: {fileID: 4663964746634023742} - - component: {fileID: 7756407589087806652} + - component: {fileID: -7265713502900314656} + - component: {fileID: 1674689795532972108} + - component: {fileID: 6242706970237734521} m_Layer: 0 m_Name: PlayerPrefab m_TagString: TestSphere @@ -119,7 +230,9 @@ Transform: m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 6602982999811082154} + - {fileID: 468346864574947203} + - {fileID: 7140957824065309761} + - {fileID: 7386466832192907297} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -151,7 +264,7 @@ MeshRenderer: m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 2100000, guid: 03fbf3fd787bfcb41a583d9e97e35f6b, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -204,25 +317,9 @@ MonoBehaviour: prefabName: isSceneObject: 0 syncedComponents: - - {fileID: -4404668399269848200} + - {fileID: 1674689795532972108} + - {fileID: -7265713502900314656} - {fileID: 7564913803199044469} - - {fileID: 4663964746634023742} ---- !u!114 &-4404668399269848200 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6139051692386484099} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89e3af759df774692a566a166b4bf69b, type: 3} - m_Name: - m_EditorClassIdentifier: - networkObject: {fileID: 9102273340480352682} - serializationRateHz: 30 - hybridOnChangeCompression: 1 - color: {r: 0, g: 0, b: 0, a: 0} --- !u!114 &7564913803199044469 MonoBehaviour: m_ObjectHideFlags: 0 @@ -244,7 +341,23 @@ MonoBehaviour: useLocalTransform: 0 teleportDistance: 0 teleportAngle: 0 ---- !u!114 &4663964746634023742 +--- !u!114 &-7265713502900314656 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: db0c62852cd66a649a36d52c448b1b01, type: 3} + m_Name: + m_EditorClassIdentifier: + networkObject: {fileID: 9102273340480352682} + serializationRateHz: 30 + hybridOnChangeCompression: 1 + color: {r: 0, g: 0, b: 0, a: 0} +--- !u!114 &1674689795532972108 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -258,10 +371,10 @@ MonoBehaviour: m_EditorClassIdentifier: networkObject: {fileID: 9102273340480352682} voiceSystem: {fileID: 0} - source: {fileID: 7756407589087806652} + source: {fileID: 6242706970237734521} bufferedAmount: 0 playedAmount: 0 ---- !u!82 &7756407589087806652 +--- !u!82 &6242706970237734521 AudioSource: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -292,95 +405,23 @@ AudioSource: serializedVersion: 2 m_Curve: - serializedVersion: 3 - time: 0.002 + time: 0 value: 1 - inSlope: -500.20065 - outSlope: -500.20065 + inSlope: 0 + outSlope: 0 tangentMode: 0 weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 0.004 - value: 0.5 - inSlope: -125.05016 - outSlope: -125.05016 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 0.008 - value: 0.25 - inSlope: -31.26254 - outSlope: -31.26254 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 0.016 - value: 0.125 - inSlope: -7.815635 - outSlope: -7.815635 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 0.032 - value: 0.0625 - inSlope: -1.9539088 - outSlope: -1.9539088 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 0.064 - value: 0.02798462 - inSlope: -0.2878108 - outSlope: -0.2878108 - tangentMode: 0 - weightedMode: 0 - inWeight: 1 - outWeight: 0 - - serializedVersion: 3 - time: 0.128 - value: 0.015625 - inSlope: -0.1221193 - outSlope: -0.1221193 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 0.256 - value: 0.0078125 - inSlope: -0.030529825 - outSlope: -0.030529825 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 0.512 - value: 0.00390625 - inSlope: -0.0076324563 - outSlope: -0.0076324563 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 - serializedVersion: 3 time: 1 - value: 0.002 - inSlope: -0.002000801 - outSlope: -0.002000801 + value: 0 + inSlope: 0 + outSlope: 0 tangentMode: 0 weightedMode: 0 - inWeight: 0 - outWeight: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 @@ -429,3 +470,100 @@ AudioSource: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 +--- !u!1 &7360746642267561319 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7386466832192907297} + - component: {fileID: 965219210261117935} + - component: {fileID: 794944376408528338} + - component: {fileID: 8136080099801646095} + m_Layer: 0 + m_Name: Cube (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7386466832192907297 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: -0.16800001, z: -0.5} + m_LocalScale: {x: 0.5, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3076416102083120807} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &965219210261117935 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &794944376408528338 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: d324d61aab426a3469d1f8f57de79236, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &8136080099801646095 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Samples/FullExample/Prefabs/PlayerPrefab.prefab.meta b/Samples/FullExample/Prefabs/PlayerPrefab.prefab.meta new file mode 100644 index 0000000..537031a --- /dev/null +++ b/Samples/FullExample/Prefabs/PlayerPrefab.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e07dfcf3af0e6ad438df1df54cd960a5 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleVelVoice/Prefabs/TestNetworkedGameObject.prefab b/Samples/FullExample/Prefabs/TestNetworkedGameObject.prefab similarity index 63% rename from Samples~/ExampleVelVoice/Prefabs/TestNetworkedGameObject.prefab rename to Samples/FullExample/Prefabs/TestNetworkedGameObject.prefab index 3be87ea..f4fa907 100644 --- a/Samples~/ExampleVelVoice/Prefabs/TestNetworkedGameObject.prefab +++ b/Samples/FullExample/Prefabs/TestNetworkedGameObject.prefab @@ -1,6 +1,6 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!1 &6003361529827848619 +--- !u!1 &419466048389313172 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -8,50 +8,54 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 7099230484513283147} - - component: {fileID: 8811139817265458480} - - component: {fileID: 3776025769317911085} - - component: {fileID: 1426238303320144522} + - component: {fileID: 419466048389313162} + - component: {fileID: 419466048389313163} + - component: {fileID: 419466048389313160} + - component: {fileID: 419466048389313161} + - component: {fileID: 419466048389313174} + - component: {fileID: 419466048389313175} m_Layer: 0 - m_Name: Cube - m_TagString: TestSphere + m_Name: TestNetworkedGameObject + m_TagString: draggable m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!4 &7099230484513283147 +--- !u!4 &419466048389313162 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6003361529827848619} + m_GameObject: {fileID: 419466048389313172} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 8565720275311462455} + m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &8811139817265458480 +--- !u!33 &419466048389313163 MeshFilter: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6003361529827848619} + m_GameObject: {fileID: 419466048389313172} m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!23 &3776025769317911085 +--- !u!23 &419466048389313160 MeshRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6003361529827848619} + m_GameObject: {fileID: 419466048389313172} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 @@ -82,59 +86,26 @@ MeshRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_AdditionalVertexStreams: {fileID: 0} ---- !u!65 &1426238303320144522 +--- !u!65 &419466048389313161 BoxCollider: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6003361529827848619} + m_GameObject: {fileID: 419466048389313172} m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 serializedVersion: 2 m_Size: {x: 1, y: 1, z: 1} m_Center: {x: 0, y: 0, z: 0} ---- !u!1 &8565720275311462453 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 8565720275311462455} - - component: {fileID: 3951900052977689805} - - component: {fileID: 8565720275311462452} - m_Layer: 0 - m_Name: TestNetworkedGameObject - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &8565720275311462455 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8565720275311462453} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 7099230484513283147} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &3951900052977689805 +--- !u!114 &419466048389313174 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8565720275311462453} + m_GameObject: {fileID: 419466048389313172} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 5515094c5c544b6b8ed7fd51a86548d4, type: 3} @@ -146,22 +117,25 @@ MonoBehaviour: prefabName: isSceneObject: 0 syncedComponents: - - {fileID: 8565720275311462452} ---- !u!114 &8565720275311462452 + - {fileID: 419466048389313175} +--- !u!114 &419466048389313175 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8565720275311462453} + m_GameObject: {fileID: 419466048389313172} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3f1f9b0bbd93a484a987c51f1107ebe5, type: 3} m_Name: m_EditorClassIdentifier: - networkObject: {fileID: 3951900052977689805} + networkObject: {fileID: 419466048389313174} serializationRateHz: 60 hybridOnChangeCompression: 1 + position: 1 + rotation: 1 + scale: 0 useLocalTransform: 0 teleportDistance: 0 teleportAngle: 0 diff --git a/Samples~/ExampleVelVoice/Prefabs/TestNetworkedGameObject.prefab.meta b/Samples/FullExample/Prefabs/TestNetworkedGameObject.prefab.meta similarity index 74% rename from Samples~/ExampleVelVoice/Prefabs/TestNetworkedGameObject.prefab.meta rename to Samples/FullExample/Prefabs/TestNetworkedGameObject.prefab.meta index 0743d13..fcc1855 100644 --- a/Samples~/ExampleVelVoice/Prefabs/TestNetworkedGameObject.prefab.meta +++ b/Samples/FullExample/Prefabs/TestNetworkedGameObject.prefab.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 6e4a023f70e01405e8b249a4488fe319 +guid: c0c7ee35b5be203468523c819c9da422 PrefabImporter: externalObjects: {} userData: diff --git a/Samples/FullExample/Scenes.meta b/Samples/FullExample/Scenes.meta new file mode 100644 index 0000000..87fcdad --- /dev/null +++ b/Samples/FullExample/Scenes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b5f016efc6460f24186cc01405e26967 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleVelVoice/Scenes/VelVoiceSample.unity b/Samples/FullExample/Scenes/FullExample.unity similarity index 96% rename from Samples~/ExampleVelVoice/Scenes/VelVoiceSample.unity rename to Samples/FullExample/Scenes/FullExample.unity index 4d6c2c1..a4c87e0 100644 --- a/Samples~/ExampleVelVoice/Scenes/VelVoiceSample.unity +++ b/Samples/FullExample/Scenes/FullExample.unity @@ -216,7 +216,7 @@ GameObject: - component: {fileID: 117638566} - component: {fileID: 117638564} m_Layer: 5 - m_Name: Dropdown + m_Name: Microphone Dropdown m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -275,8 +275,8 @@ MonoBehaviour: m_PersistentCalls: m_Calls: - m_Target: {fileID: 244561621} - m_TargetAssemblyTypeName: NetworkGUI, Assembly-CSharp - m_MethodName: handleMicrophoneSelection + m_TargetAssemblyTypeName: VelNet.NetworkGUI, FullExample + m_MethodName: HandleMicrophoneSelection m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} @@ -630,11 +630,11 @@ MonoBehaviour: m_GameObject: {fileID: 244561616} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7a7db5bc792cd471dbd8039664359eee, type: 3} + m_Script: {fileID: 11500000, guid: b82421cc61dd72344888f330782d6df1, type: 3} m_Name: m_EditorClassIdentifier: userInput: {fileID: 626742069} - sendInput: {fileID: 0} + sendInput: {fileID: 948755941} roomInput: {fileID: 711524768} messages: {fileID: 1894247854} messageBuffer: [] @@ -750,7 +750,6 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} m_Name: m_EditorClassIdentifier: - m_SendPointerHoverToParent: 1 m_HorizontalAxis: Horizontal m_VerticalAxis: Vertical m_SubmitButton: Submit @@ -786,7 +785,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 4 + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &498776799 GameObject: @@ -1317,7 +1316,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 3 + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} --- !u!1 &711524766 GameObject: @@ -1708,11 +1707,11 @@ MonoBehaviour: m_GameObject: {fileID: 903768653} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c9d312e1088769143a72b0c13d5aee32, type: 3} + m_Script: {fileID: 11500000, guid: f2bc9932f479559468331d796a661f6b, type: 3} m_Name: m_EditorClassIdentifier: draggableTags: - - TestSphere + - draggable --- !u!20 &903768656 Camera: m_ObjectHideFlags: 0 @@ -1769,7 +1768,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 2 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!81 &903768658 AudioListener: @@ -2032,7 +2031,7 @@ MonoBehaviour: m_GameObject: {fileID: 948755937} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0a7b2180d3fffdc459417bfc24b179b8, type: 3} + m_Script: {fileID: 11500000, guid: 155e633187d627747aa3f26161e86a89, type: 3} m_Name: m_EditorClassIdentifier: networkObject: {fileID: 948755940} @@ -2164,6 +2163,71 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 948755937} m_CullTransparentMesh: 1 +--- !u!1 &975168708 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 975168711} + - component: {fileID: 975168710} + - component: {fileID: 975168709} + m_Layer: 0 + m_Name: RPCTest + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &975168709 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975168708} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 05dcacc7ab16f7e4d9897d240d309081, type: 3} + m_Name: + m_EditorClassIdentifier: + networkObject: {fileID: 975168710} +--- !u!114 &975168710 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975168708} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5515094c5c544b6b8ed7fd51a86548d4, type: 3} + m_Name: + m_EditorClassIdentifier: + ownershipLocked: 0 + networkId: + sceneNetworkId: 100 + prefabName: + isSceneObject: 1 + syncedComponents: + - {fileID: 975168709} +--- !u!4 &975168711 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975168708} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 152.57689, y: 81.06283, z: -23.554092} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1020014859 GameObject: m_ObjectHideFlags: 0 @@ -2461,8 +2525,9 @@ GameObject: - component: {fileID: 1099803616} - component: {fileID: 1099803613} - component: {fileID: 1099803614} + - component: {fileID: 1099803618} m_Layer: 0 - m_Name: NetworkManager + m_Name: GameManager m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -2477,10 +2542,10 @@ MonoBehaviour: m_GameObject: {fileID: 1099803612} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2fcf036844b060b47b23ad9a1e49eec2, type: 3} + m_Script: {fileID: 11500000, guid: 433739e260186754a8589d8adbd4bb10, type: 3} m_Name: m_EditorClassIdentifier: - playerPrefab: {fileID: 6139051692386484099, guid: d4158ab9c4a204cdbba28d3273fc1fb3, type: 3} + playerPrefab: {fileID: 6139051692386484099, guid: e07dfcf3af0e6ad438df1df54cd960a5, type: 3} --- !u!114 &1099803614 MonoBehaviour: m_ObjectHideFlags: 0 @@ -2490,9 +2555,12 @@ MonoBehaviour: m_GameObject: {fileID: 1099803612} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5ea1fe0eb58e4184bbb2edcc99c51119, type: 3} + m_Script: {fileID: 11500000, guid: 798d4aea9be4cfc4297706b051a11b0e, type: 3} m_Name: m_EditorClassIdentifier: + silenceThreshold: 0.01 + minSilencePacketsToStop: 10 + autostartMicrophone: 1 --- !u!4 &1099803615 Transform: m_ObjectHideFlags: 0 @@ -2506,7 +2574,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 0 + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &1099803616 MonoBehaviour: @@ -2529,10 +2597,22 @@ MonoBehaviour: onlyConnectToSameVersion: 1 connected: 0 prefabs: - - {fileID: 9102273340480352682, guid: d4158ab9c4a204cdbba28d3273fc1fb3, type: 3} - - {fileID: 3951900052977689805, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} + - {fileID: 9102273340480352682, guid: e07dfcf3af0e6ad438df1df54cd960a5, type: 3} + - {fileID: 419466048389313174, guid: c0c7ee35b5be203468523c819c9da422, type: 3} sceneObjects: [] deletedSceneObjects: [] +--- !u!114 &1099803618 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099803612} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 258f5a62ab0d84e4ba9d2800116d629f, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &1154194181 GameObject: m_ObjectHideFlags: 0 @@ -3143,6 +3223,9 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 798d4aea9be4cfc4297706b051a11b0e, type: 3} m_Name: m_EditorClassIdentifier: + silenceThreshold: 0.01 + minSilencePacketsToStop: 10 + autostartMicrophone: 1 --- !u!4 &1505205302 Transform: m_ObjectHideFlags: 0 @@ -3156,7 +3239,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 7 + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1536292192 GameObject: @@ -3516,7 +3599,7 @@ MonoBehaviour: m_PersistentCalls: m_Calls: - m_Target: {fileID: 244561621} - m_TargetAssemblyTypeName: NetworkGUI, Assembly-CSharp + m_TargetAssemblyTypeName: VelNet.NetworkGUI, FullExample m_MethodName: HandleLogin m_Mode: 1 m_Arguments: @@ -3696,7 +3779,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -3993,71 +4076,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1997780489} m_CullTransparentMesh: 1 ---- !u!1 &2021764943 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2021764946} - - component: {fileID: 2021764945} - - component: {fileID: 2021764944} - m_Layer: 0 - m_Name: TestRPC Object - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &2021764944 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2021764943} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5515094c5c544b6b8ed7fd51a86548d4, type: 3} - m_Name: - m_EditorClassIdentifier: - ownershipLocked: 0 - networkId: - sceneNetworkId: 102 - prefabName: - isSceneObject: 1 - syncedComponents: - - {fileID: 2021764945} ---- !u!114 &2021764945 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2021764943} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2bcc94802a5742d4299e48c898e52dfa, type: 3} - m_Name: - m_EditorClassIdentifier: - networkObject: {fileID: 2021764944} ---- !u!4 &2021764946 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2021764943} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2.9278836, y: 2.2367568, z: 0.06653424} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &2033163676 GameObject: m_ObjectHideFlags: 0 @@ -4290,76 +4308,3 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2144436499} m_CullTransparentMesh: 1 ---- !u!1001 &8565720276829121781 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: 3951900052977689805, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: isSceneObject - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3951900052977689805, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: sceneNetworkId - value: 100 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462452, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_Enabled - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462453, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_Name - value: TestNetworkedGameObject - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462453, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_IsActive - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_RootOrder - value: 5 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalPosition.y - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3} diff --git a/Samples/FullExample/Scenes/FullExample.unity.meta b/Samples/FullExample/Scenes/FullExample.unity.meta new file mode 100644 index 0000000..9e3fff8 --- /dev/null +++ b/Samples/FullExample/Scenes/FullExample.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: c4315dc9f7a902b42bd2deb7b7404863 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/FullExample/Scripts.meta b/Samples/FullExample/Scripts.meta new file mode 100644 index 0000000..7e2f647 --- /dev/null +++ b/Samples/FullExample/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c66763a1152ece2449bf59db4834b3e7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleVelVoice/Scripts/CustomMessageTest.cs b/Samples/FullExample/Scripts/CustomMessageTest.cs similarity index 100% rename from Samples~/ExampleVelVoice/Scripts/CustomMessageTest.cs rename to Samples/FullExample/Scripts/CustomMessageTest.cs diff --git a/Samples~/ExampleVelVoice/Scripts/CustomMessageTest.cs.meta b/Samples/FullExample/Scripts/CustomMessageTest.cs.meta similarity index 83% rename from Samples~/ExampleVelVoice/Scripts/CustomMessageTest.cs.meta rename to Samples/FullExample/Scripts/CustomMessageTest.cs.meta index 354019c..a16ea54 100644 --- a/Samples~/ExampleVelVoice/Scripts/CustomMessageTest.cs.meta +++ b/Samples/FullExample/Scripts/CustomMessageTest.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5ea1fe0eb58e4184bbb2edcc99c51119 +guid: 258f5a62ab0d84e4ba9d2800116d629f MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples/FullExample/Scripts/GameManager.cs b/Samples/FullExample/Scripts/GameManager.cs new file mode 100644 index 0000000..aeeef3d --- /dev/null +++ b/Samples/FullExample/Scripts/GameManager.cs @@ -0,0 +1,13 @@ +using UnityEngine; +using VelNet; + +public class GameManager : MonoBehaviour +{ + public GameObject playerPrefab; + + private void Start() + { + VelNetManager.OnLoggedIn += () => VelNetManager.JoinRoom("FullExample"); + VelNetManager.OnJoinedRoom += player => { VelNetManager.NetworkInstantiate(playerPrefab.name); }; + } +} \ No newline at end of file diff --git a/Samples/FullExample/Scripts/GameManager.cs.meta b/Samples/FullExample/Scripts/GameManager.cs.meta new file mode 100644 index 0000000..05c02eb --- /dev/null +++ b/Samples/FullExample/Scripts/GameManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 433739e260186754a8589d8adbd4bb10 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleVelVoice/Scripts/MouseDragger.cs b/Samples/FullExample/Scripts/MouseDragger.cs similarity index 100% rename from Samples~/ExampleVelVoice/Scripts/MouseDragger.cs rename to Samples/FullExample/Scripts/MouseDragger.cs diff --git a/Samples~/ExampleDissonance/Scripts/MouseDragger.cs.meta b/Samples/FullExample/Scripts/MouseDragger.cs.meta similarity index 83% rename from Samples~/ExampleDissonance/Scripts/MouseDragger.cs.meta rename to Samples/FullExample/Scripts/MouseDragger.cs.meta index dcc6a81..672a566 100644 --- a/Samples~/ExampleDissonance/Scripts/MouseDragger.cs.meta +++ b/Samples/FullExample/Scripts/MouseDragger.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c9d312e1088769143a72b0c13d5aee32 +guid: f2bc9932f479559468331d796a661f6b MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples~/ExampleVelVoice/Scripts/NetworkGUI.cs b/Samples/FullExample/Scripts/NetworkGUI.cs similarity index 81% rename from Samples~/ExampleVelVoice/Scripts/NetworkGUI.cs rename to Samples/FullExample/Scripts/NetworkGUI.cs index 65f4097..750e539 100644 --- a/Samples~/ExampleVelVoice/Scripts/NetworkGUI.cs +++ b/Samples/FullExample/Scripts/NetworkGUI.cs @@ -1,7 +1,7 @@ -using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; +using VelNet.Voice; namespace VelNet { @@ -14,6 +14,16 @@ namespace VelNet public List messageBuffer; public Dropdown microphones; public VelVoice velVoice; + + + // Start is called before the first frame update + private void Start() + { + microphones.AddOptions(new List(Microphone.devices)); + HandleMicrophoneSelection(); + } + + public void HandleLogin() { if (userInput.text != "") @@ -42,25 +52,18 @@ namespace VelNet { if (roomInput.text != "") { - VelNetManager.Join(roomInput.text); + VelNetManager.JoinRoom(roomInput.text); } } public void HandleLeave() { - VelNetManager.Leave(); + VelNetManager.LeaveRoom(); } - // Start is called before the first frame update - private void Start() + public void HandleMicrophoneSelection() { - microphones.AddOptions(new List(Microphone.devices)); - handleMicrophoneSelection(); - } - - public void handleMicrophoneSelection() - { - velVoice.startMicrophone(microphones.options[microphones.value].text); + velVoice.StartMicrophone(microphones.options[microphones.value].text); } } } \ No newline at end of file diff --git a/Samples~/ExampleDissonance/Scripts/NetworkGUI.cs.meta b/Samples/FullExample/Scripts/NetworkGUI.cs.meta similarity index 83% rename from Samples~/ExampleDissonance/Scripts/NetworkGUI.cs.meta rename to Samples/FullExample/Scripts/NetworkGUI.cs.meta index c4289bb..029b574 100644 --- a/Samples~/ExampleDissonance/Scripts/NetworkGUI.cs.meta +++ b/Samples/FullExample/Scripts/NetworkGUI.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7a7db5bc792cd471dbd8039664359eee +guid: b82421cc61dd72344888f330782d6df1 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples~/ExampleVelVoice/Scripts/PlayerController.cs b/Samples/FullExample/Scripts/PlayerController.cs similarity index 87% rename from Samples~/ExampleVelVoice/Scripts/PlayerController.cs rename to Samples/FullExample/Scripts/PlayerController.cs index 50d7b24..cc2266c 100644 --- a/Samples~/ExampleVelVoice/Scripts/PlayerController.cs +++ b/Samples/FullExample/Scripts/PlayerController.cs @@ -11,11 +11,10 @@ namespace VelNet private Renderer rend; public Color color; - protected override void Awake() + protected void Start() { - base.Awake(); - rend = GetComponent(); + if (IsMine) { color = new Color(Random.Range(0, 1f), Random.Range(0, 1f), Random.Range(0, 1f)); @@ -67,11 +66,7 @@ namespace VelNet protected override void ReceiveState(BinaryReader binaryReader) { // Color newColor = binaryReader.ReadColor(); - Color newColor; - newColor.r = binaryReader.ReadSingle(); - newColor.g = binaryReader.ReadSingle(); - newColor.b = binaryReader.ReadSingle(); - newColor.a = binaryReader.ReadSingle(); + Color newColor = binaryReader.ReadColor(); if (newColor != color) { rend.material.color = newColor; diff --git a/Samples/FullExample/Scripts/PlayerController.cs.meta b/Samples/FullExample/Scripts/PlayerController.cs.meta new file mode 100644 index 0000000..9c181bd --- /dev/null +++ b/Samples/FullExample/Scripts/PlayerController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: db0c62852cd66a649a36d52c448b1b01 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleVelVoice/Scripts/RPCTest.cs b/Samples/FullExample/Scripts/RPCTest.cs similarity index 80% rename from Samples~/ExampleVelVoice/Scripts/RPCTest.cs rename to Samples/FullExample/Scripts/RPCTest.cs index ca3de9a..5c654fd 100644 --- a/Samples~/ExampleVelVoice/Scripts/RPCTest.cs +++ b/Samples/FullExample/Scripts/RPCTest.cs @@ -1,6 +1,3 @@ -using System.Collections; -using System.Collections.Generic; -using System.IO; using UnityEngine; using VelNet; diff --git a/Samples~/ExampleVelVoice/Scripts/RPCTest.cs.meta b/Samples/FullExample/Scripts/RPCTest.cs.meta similarity index 83% rename from Samples~/ExampleVelVoice/Scripts/RPCTest.cs.meta rename to Samples/FullExample/Scripts/RPCTest.cs.meta index 6f48220..881830e 100644 --- a/Samples~/ExampleVelVoice/Scripts/RPCTest.cs.meta +++ b/Samples/FullExample/Scripts/RPCTest.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 2bcc94802a5742d4299e48c898e52dfa +guid: 05dcacc7ab16f7e4d9897d240d309081 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples~/ExampleVelVoice/Scripts/SyncedTextbox.cs b/Samples/FullExample/Scripts/SyncedTextbox.cs similarity index 100% rename from Samples~/ExampleVelVoice/Scripts/SyncedTextbox.cs rename to Samples/FullExample/Scripts/SyncedTextbox.cs diff --git a/Samples~/ExampleVelVoice/Scripts/SyncedTextbox.cs.meta b/Samples/FullExample/Scripts/SyncedTextbox.cs.meta similarity index 83% rename from Samples~/ExampleVelVoice/Scripts/SyncedTextbox.cs.meta rename to Samples/FullExample/Scripts/SyncedTextbox.cs.meta index 2e95173..9ccf19c 100644 --- a/Samples~/ExampleVelVoice/Scripts/SyncedTextbox.cs.meta +++ b/Samples/FullExample/Scripts/SyncedTextbox.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0a7b2180d3fffdc459417bfc24b179b8 +guid: 155e633187d627747aa3f26161e86a89 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Samples/VelVoiceExample.meta b/Samples/VelVoiceExample.meta new file mode 100644 index 0000000..16cfbeb --- /dev/null +++ b/Samples/VelVoiceExample.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c67bcaf6d7514574e86eab2542b0d0ab +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Materials.meta b/Samples/VelVoiceExample/Materials.meta new file mode 100644 index 0000000..b394646 --- /dev/null +++ b/Samples/VelVoiceExample/Materials.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 87c48a4d7c864844c9eb3b37e9f76728 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Materials/Black.mat b/Samples/VelVoiceExample/Materials/Black.mat new file mode 100644 index 0000000..f8deb84 --- /dev/null +++ b/Samples/VelVoiceExample/Materials/Black.mat @@ -0,0 +1,80 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Black + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 0.103773594, g: 0.103773594, b: 0.103773594, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Samples/VelVoiceExample/Materials/Black.mat.meta b/Samples/VelVoiceExample/Materials/Black.mat.meta new file mode 100644 index 0000000..64e81d3 --- /dev/null +++ b/Samples/VelVoiceExample/Materials/Black.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: edfdb8c77b06a964bae56f73e6350855 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Materials/White.mat b/Samples/VelVoiceExample/Materials/White.mat new file mode 100644 index 0000000..7932c00 --- /dev/null +++ b/Samples/VelVoiceExample/Materials/White.mat @@ -0,0 +1,80 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: White + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Samples/VelVoiceExample/Materials/White.mat.meta b/Samples/VelVoiceExample/Materials/White.mat.meta new file mode 100644 index 0000000..841b5bb --- /dev/null +++ b/Samples/VelVoiceExample/Materials/White.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 20950dac428521f46a7f7b05df49562c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Prefabs.meta b/Samples/VelVoiceExample/Prefabs.meta new file mode 100644 index 0000000..e9c5903 --- /dev/null +++ b/Samples/VelVoiceExample/Prefabs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 99b06b0f45775c3469de729adf481de9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Prefabs/PlayerPrefab.prefab b/Samples/VelVoiceExample/Prefabs/PlayerPrefab.prefab new file mode 100644 index 0000000..30b082b --- /dev/null +++ b/Samples/VelVoiceExample/Prefabs/PlayerPrefab.prefab @@ -0,0 +1,565 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &857495161650682534 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 468346864574947203} + - component: {fileID: 6200543026214726218} + - component: {fileID: 3836140235167936603} + - component: {fileID: 2985972989340466755} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &468346864574947203 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 857495161650682534} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.25, y: 0.182, z: -0.5} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3076416102083120807} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &6200543026214726218 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 857495161650682534} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &3836140235167936603 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 857495161650682534} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: d324d61aab426a3469d1f8f57de79236, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &2985972989340466755 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 857495161650682534} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &2597866068570990601 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7140957824065309761} + - component: {fileID: 3781999332398636156} + - component: {fileID: 8208957152953143025} + - component: {fileID: 8134777332132834302} + m_Layer: 0 + m_Name: Cube (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7140957824065309761 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.25, y: 0.182, z: -0.5} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3076416102083120807} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3781999332398636156 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &8208957152953143025 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: d324d61aab426a3469d1f8f57de79236, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &8134777332132834302 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2597866068570990601} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &6139051692386484099 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3076416102083120807} + - component: {fileID: 8527011532923434593} + - component: {fileID: 6854617867369839} + - component: {fileID: 5845716565458182149} + - component: {fileID: 9102273340480352682} + - component: {fileID: 7564913803199044469} + - component: {fileID: 3931189231264197893} + - component: {fileID: 1833529818468634519} + - component: {fileID: 1058783918878763107} + m_Layer: 0 + m_Name: PlayerPrefab + m_TagString: TestSphere + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3076416102083120807 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 468346864574947203} + - {fileID: 7140957824065309761} + - {fileID: 7386466832192907297} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &8527011532923434593 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &6854617867369839 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 03fbf3fd787bfcb41a583d9e97e35f6b, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &5845716565458182149 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!114 &9102273340480352682 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5515094c5c544b6b8ed7fd51a86548d4, type: 3} + m_Name: + m_EditorClassIdentifier: + ownershipLocked: 1 + networkId: + sceneNetworkId: 0 + prefabName: + isSceneObject: 0 + syncedComponents: + - {fileID: 1833529818468634519} + - {fileID: 7564913803199044469} +--- !u!114 &7564913803199044469 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3f1f9b0bbd93a484a987c51f1107ebe5, type: 3} + m_Name: + m_EditorClassIdentifier: + networkObject: {fileID: 9102273340480352682} + serializationRateHz: 60 + hybridOnChangeCompression: 1 + position: 1 + rotation: 0 + scale: 0 + useLocalTransform: 0 + teleportDistance: 0 + teleportAngle: 0 +--- !u!114 &3931189231264197893 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 544bfd0908e09d141adb9828d99baa08, type: 3} + m_Name: + m_EditorClassIdentifier: + networkObject: {fileID: 9102273340480352682} +--- !u!114 &1833529818468634519 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a5aa9e635c1bd5c41b0847806a597f45, type: 3} + m_Name: + m_EditorClassIdentifier: + networkObject: {fileID: 9102273340480352682} + voiceSystem: {fileID: 0} + source: {fileID: 1058783918878763107} + bufferedAmount: 0 + playedAmount: 0 +--- !u!82 &1058783918878763107 +AudioSource: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6139051692386484099} + m_Enabled: 1 + serializedVersion: 4 + OutputAudioMixerGroup: {fileID: 0} + m_audioClip: {fileID: 0} + m_PlayOnAwake: 1 + m_Volume: 1 + m_Pitch: 1 + Loop: 0 + Mute: 0 + Spatialize: 0 + SpatializePostEffects: 0 + Priority: 128 + DopplerLevel: 1 + MinDistance: 1 + MaxDistance: 100 + Pan2D: 0 + rolloffMode: 1 + BypassEffects: 0 + BypassListenerEffects: 0 + BypassReverbZones: 0 + rolloffCustomCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + panLevelCustomCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + spreadCustomCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + reverbZoneMixCustomCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 +--- !u!1 &7360746642267561319 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7386466832192907297} + - component: {fileID: 965219210261117935} + - component: {fileID: 794944376408528338} + - component: {fileID: 8136080099801646095} + m_Layer: 0 + m_Name: Cube (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7386466832192907297 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: -0.16800001, z: -0.5} + m_LocalScale: {x: 0.5, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3076416102083120807} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &965219210261117935 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &794944376408528338 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: d324d61aab426a3469d1f8f57de79236, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &8136080099801646095 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7360746642267561319} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Samples/VelVoiceExample/Prefabs/PlayerPrefab.prefab.meta b/Samples/VelVoiceExample/Prefabs/PlayerPrefab.prefab.meta new file mode 100644 index 0000000..a15931d --- /dev/null +++ b/Samples/VelVoiceExample/Prefabs/PlayerPrefab.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: de3f02f5f8febd54ca51ce265cf46b9f +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Scenes.meta b/Samples/VelVoiceExample/Scenes.meta new file mode 100644 index 0000000..95e1d72 --- /dev/null +++ b/Samples/VelVoiceExample/Scenes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a646eca2b9cdd8844aabbf217bf8f07e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Scenes/VelVoiceExample.unity b/Samples/VelVoiceExample/Scenes/VelVoiceExample.unity new file mode 100644 index 0000000..eb1d9ef --- /dev/null +++ b/Samples/VelVoiceExample/Scenes/VelVoiceExample.unity @@ -0,0 +1,1758 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.5137255, g: 0.53333336, b: 0.5647059, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 652307110} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 112000000, guid: d1b34f106c04378428823df374b0e07c, type: 2} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &24704603 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 24704604} + - component: {fileID: 24704606} + - component: {fileID: 24704605} + m_Layer: 5 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &24704604 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 24704603} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 844476904} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -7.5, y: -0.5} + m_SizeDelta: {x: -35, y: -13} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &24704605 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 24704603} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 14 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: +--- !u!222 &24704606 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 24704603} + m_CullTransparentMesh: 1 +--- !u!1 &164141078 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 164141082} + - component: {fileID: 164141081} + - component: {fileID: 164141080} + - component: {fileID: 164141079} + - component: {fileID: 164141083} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &164141079 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 164141078} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &164141080 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 164141078} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &164141081 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 164141078} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!224 &164141082 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 164141078} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 686695938} + - {fileID: 844476904} + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!114 &164141083 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 164141078} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 932ee10700971c9409be3a57da8535dc, type: 3} + m_Name: + m_EditorClassIdentifier: + microphones: {fileID: 844476905} + velVoice: {fileID: 1099803617} +--- !u!1 &228907369 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 228907370} + - component: {fileID: 228907372} + - component: {fileID: 228907371} + m_Layer: 5 + m_Name: Item Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &228907370 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 228907369} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1089859885} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &228907371 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 228907369} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &228907372 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 228907369} + m_CullTransparentMesh: 1 +--- !u!1 &399804746 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 399804747} + - component: {fileID: 399804750} + - component: {fileID: 399804749} + - component: {fileID: 399804748} + m_Layer: 5 + m_Name: Viewport + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &399804747 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 399804746} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1031666311} + m_Father: {fileID: 1016100169} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -18, y: 0} + m_Pivot: {x: 0, y: 1} +--- !u!114 &399804748 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 399804746} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ShowMaskGraphic: 0 +--- !u!114 &399804749 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 399804746} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &399804750 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 399804746} + m_CullTransparentMesh: 1 +--- !u!1 &440509381 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 440509384} + - component: {fileID: 440509383} + - component: {fileID: 440509382} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &440509382 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 440509381} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &440509383 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 440509381} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &440509384 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 440509381} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &513088493 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 513088494} + - component: {fileID: 513088496} + - component: {fileID: 513088495} + m_Layer: 5 + m_Name: Handle + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &513088494 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 513088493} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1752347161} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0.2} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &513088495 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 513088493} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &513088496 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 513088493} + m_CullTransparentMesh: 1 +--- !u!1 &652307109 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 652307111} + - component: {fileID: 652307110} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &652307110 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 652307109} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_UseViewFrustumForShadowCasterCull: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &652307111 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 652307109} + m_LocalRotation: {x: 0.20336074, y: -0.13662237, z: 0.1672859, w: 0.9549839} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 25.729, y: -12.365, z: 17.037} +--- !u!1 &686695937 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 686695938} + - component: {fileID: 686695940} + - component: {fileID: 686695939} + m_Layer: 5 + m_Name: README + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &686695938 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 686695937} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 164141082} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -60, y: -60} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &686695939 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 686695937} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 20 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 2 + m_MaxSize: 40 + m_Alignment: 0 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: 'This is a minimal sample for VelVoice. + + GameManager joins a static + room code and spawns a movable player character. + + Voice communication should + be on by default.' +--- !u!222 &686695940 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 686695937} + m_CullTransparentMesh: 1 +--- !u!1 &844476903 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 844476904} + - component: {fileID: 844476907} + - component: {fileID: 844476906} + - component: {fileID: 844476905} + m_Layer: 5 + m_Name: Dropdown + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &844476904 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 844476903} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 24704604} + - {fileID: 1401134952} + - {fileID: 1016100169} + m_Father: {fileID: 164141082} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 30, y: -113} + m_SizeDelta: {x: 300, y: 30} + m_Pivot: {x: 0, y: 1} +--- !u!114 &844476905 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 844476903} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0d0b652f32a2cc243917e4028fa0f046, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 844476906} + m_Template: {fileID: 1016100169} + m_CaptionText: {fileID: 24704605} + m_CaptionImage: {fileID: 0} + m_ItemText: {fileID: 1179088468} + m_ItemImage: {fileID: 0} + m_Value: 0 + m_Options: + m_Options: [] + m_OnValueChanged: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 164141083} + m_TargetAssemblyTypeName: VelNet.MicrophoneSelection, VelVoiceExample + m_MethodName: HandleMicrophoneSelection + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + m_AlphaFadeSpeed: 0.15 +--- !u!114 &844476906 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 844476903} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &844476907 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 844476903} + m_CullTransparentMesh: 1 +--- !u!1 &903768653 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 903768657} + - component: {fileID: 903768656} + - component: {fileID: 903768658} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!20 &903768656 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 903768653} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.2735849, g: 0.2735849, b: 0.2735849, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 40 + orthographic: 1 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &903768657 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 903768653} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -20} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!81 &903768658 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 903768653} + m_Enabled: 1 +--- !u!1 &1016100168 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1016100169} + - component: {fileID: 1016100172} + - component: {fileID: 1016100171} + - component: {fileID: 1016100170} + m_Layer: 5 + m_Name: Template + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!224 &1016100169 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1016100168} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 399804747} + - {fileID: 2033620293} + m_Father: {fileID: 844476904} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: 0, y: 2} + m_SizeDelta: {x: 0, y: 150} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &1016100170 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1016100168} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Content: {fileID: 1031666311} + m_Horizontal: 0 + m_Vertical: 1 + m_MovementType: 2 + m_Elasticity: 0.1 + m_Inertia: 1 + m_DecelerationRate: 0.135 + m_ScrollSensitivity: 1 + m_Viewport: {fileID: 399804747} + m_HorizontalScrollbar: {fileID: 0} + m_VerticalScrollbar: {fileID: 2033620294} + m_HorizontalScrollbarVisibility: 0 + m_VerticalScrollbarVisibility: 2 + m_HorizontalScrollbarSpacing: 0 + m_VerticalScrollbarSpacing: -3 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &1016100171 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1016100168} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1016100172 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1016100168} + m_CullTransparentMesh: 1 +--- !u!1 &1031666310 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1031666311} + m_Layer: 5 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1031666311 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1031666310} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1089859885} + m_Father: {fileID: 399804747} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 28} + m_Pivot: {x: 0.5, y: 1} +--- !u!1 &1089859884 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1089859885} + - component: {fileID: 1089859886} + m_Layer: 5 + m_Name: Item + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1089859885 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1089859884} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 228907370} + - {fileID: 1882932997} + - {fileID: 1179088467} + m_Father: {fileID: 1031666311} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1089859886 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1089859884} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 228907371} + toggleTransition: 1 + graphic: {fileID: 1882932998} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 1 +--- !u!1 &1099803612 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1099803615} + - component: {fileID: 1099803616} + - component: {fileID: 1099803618} + - component: {fileID: 1099803617} + m_Layer: 0 + m_Name: NetworkManager + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1099803615 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099803612} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1099803616 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099803612} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 233344de094f11341bdb834d564708dc, type: 3} + m_Name: + m_EditorClassIdentifier: + host: vn.ugavel.com + port: 5000 + udpConnected: 0 + userid: -1 + debugMessages: 1 + autoLogin: 1 + onlyConnectToSameVersion: 1 + connected: 0 + prefabs: + - {fileID: 9102273340480352682, guid: de3f02f5f8febd54ca51ce265cf46b9f, type: 3} + sceneObjects: [] + deletedSceneObjects: [] +--- !u!114 &1099803617 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099803612} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 798d4aea9be4cfc4297706b051a11b0e, type: 3} + m_Name: + m_EditorClassIdentifier: + silenceThreshold: 0.01 + minSilencePacketsToStop: 10 + autostartMicrophone: 1 +--- !u!114 &1099803618 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099803612} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0c310e68b35f0694e9396913ec069017, type: 3} + m_Name: + m_EditorClassIdentifier: + playerPrefab: {fileID: 6139051692386484099, guid: de3f02f5f8febd54ca51ce265cf46b9f, type: 3} + velVoice: {fileID: 1099803617} +--- !u!1 &1179088466 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1179088467} + - component: {fileID: 1179088469} + - component: {fileID: 1179088468} + m_Layer: 5 + m_Name: Item Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1179088467 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1179088466} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1089859885} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 5, y: -0.5} + m_SizeDelta: {x: -30, y: -3} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1179088468 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1179088466} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 14 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 3 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Option A +--- !u!222 &1179088469 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1179088466} + m_CullTransparentMesh: 1 +--- !u!1 &1401134951 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1401134952} + - component: {fileID: 1401134954} + - component: {fileID: 1401134953} + m_Layer: 5 + m_Name: Arrow + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1401134952 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1401134951} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 844476904} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: -15, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1401134953 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1401134951} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10915, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1401134954 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1401134951} + m_CullTransparentMesh: 1 +--- !u!1 &1752347160 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1752347161} + m_Layer: 5 + m_Name: Sliding Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1752347161 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1752347160} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 513088494} + m_Father: {fileID: 2033620293} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -20, y: -20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1882932996 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1882932997} + - component: {fileID: 1882932999} + - component: {fileID: 1882932998} + m_Layer: 5 + m_Name: Item Checkmark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1882932997 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1882932996} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1089859885} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 10, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1882932998 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1882932996} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1882932999 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1882932996} + m_CullTransparentMesh: 1 +--- !u!1 &2033620292 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2033620293} + - component: {fileID: 2033620296} + - component: {fileID: 2033620295} + - component: {fileID: 2033620294} + m_Layer: 5 + m_Name: Scrollbar + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2033620293 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2033620292} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1752347161} + m_Father: {fileID: 1016100169} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 0} + m_Pivot: {x: 1, y: 1} +--- !u!114 &2033620294 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2033620292} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 513088495} + m_HandleRect: {fileID: 513088494} + m_Direction: 2 + m_Value: 0 + m_Size: 0.2 + m_NumberOfSteps: 0 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &2033620295 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2033620292} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &2033620296 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2033620292} + m_CullTransparentMesh: 1 diff --git a/Samples/VelVoiceExample/Scenes/VelVoiceExample.unity.meta b/Samples/VelVoiceExample/Scenes/VelVoiceExample.unity.meta new file mode 100644 index 0000000..828aa7f --- /dev/null +++ b/Samples/VelVoiceExample/Scenes/VelVoiceExample.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3934a8ee2af6df546a1855486ed8c31d +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Scripts.meta b/Samples/VelVoiceExample/Scripts.meta new file mode 100644 index 0000000..c0e6005 --- /dev/null +++ b/Samples/VelVoiceExample/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b51548c34f222e446b31aedc62d756b0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Scripts/GameManager.cs b/Samples/VelVoiceExample/Scripts/GameManager.cs new file mode 100644 index 0000000..e1674f7 --- /dev/null +++ b/Samples/VelVoiceExample/Scripts/GameManager.cs @@ -0,0 +1,15 @@ +using UnityEngine; +using VelNet; +using VelNet.Voice; + +public class GameManager : MonoBehaviour +{ + public GameObject playerPrefab; + public VelVoice velVoice; + + private void Start() + { + VelNetManager.OnLoggedIn += () => VelNetManager.JoinRoom("BasicExample"); + VelNetManager.OnJoinedRoom += _ => { VelNetManager.NetworkInstantiate(playerPrefab.name); }; + } +} \ No newline at end of file diff --git a/Samples/VelVoiceExample/Scripts/GameManager.cs.meta b/Samples/VelVoiceExample/Scripts/GameManager.cs.meta new file mode 100644 index 0000000..de8cb68 --- /dev/null +++ b/Samples/VelVoiceExample/Scripts/GameManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0c310e68b35f0694e9396913ec069017 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Scripts/MicrophoneSelection.cs b/Samples/VelVoiceExample/Scripts/MicrophoneSelection.cs new file mode 100644 index 0000000..9842dc0 --- /dev/null +++ b/Samples/VelVoiceExample/Scripts/MicrophoneSelection.cs @@ -0,0 +1,23 @@ +using System.Linq; +using UnityEngine; +using UnityEngine.UI; +using VelNet.Voice; + +namespace VelNet +{ + public class MicrophoneSelection : MonoBehaviour + { + public Dropdown microphones; + public VelVoice velVoice; + + private void Start() + { + microphones.AddOptions(Microphone.devices.ToList()); + } + + public void HandleMicrophoneSelection() + { + velVoice.StartMicrophone(microphones.options[microphones.value].text); + } + } +} \ No newline at end of file diff --git a/Samples/VelVoiceExample/Scripts/MicrophoneSelection.cs.meta b/Samples/VelVoiceExample/Scripts/MicrophoneSelection.cs.meta new file mode 100644 index 0000000..2ba33ff --- /dev/null +++ b/Samples/VelVoiceExample/Scripts/MicrophoneSelection.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 932ee10700971c9409be3a57da8535dc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/Scripts/PlayerController.cs b/Samples/VelVoiceExample/Scripts/PlayerController.cs new file mode 100644 index 0000000..157027c --- /dev/null +++ b/Samples/VelVoiceExample/Scripts/PlayerController.cs @@ -0,0 +1,21 @@ +using UnityEngine; + +namespace VelNet +{ + public class PlayerController : MonoBehaviour + { + public NetworkObject networkObject; + + private void Update() + { + if (networkObject.IsMine) + { + Vector3 movement = new Vector3(); + movement.x += Input.GetAxis("Horizontal"); + movement.y += Input.GetAxis("Vertical"); + movement.z = 0; + transform.Translate(movement * Time.deltaTime); + } + } + } +} \ No newline at end of file diff --git a/Samples/VelVoiceExample/Scripts/PlayerController.cs.meta b/Samples/VelVoiceExample/Scripts/PlayerController.cs.meta new file mode 100644 index 0000000..930db52 --- /dev/null +++ b/Samples/VelVoiceExample/Scripts/PlayerController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1006f76dad9c183459e79084f8c67539 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/VelVoiceExample/VelVoiceExample.asmdef b/Samples/VelVoiceExample/VelVoiceExample.asmdef new file mode 100644 index 0000000..505302a --- /dev/null +++ b/Samples/VelVoiceExample/VelVoiceExample.asmdef @@ -0,0 +1,17 @@ +{ + "name": "VelVoiceExample", + "rootNamespace": "", + "references": [ + "GUID:1e55e2c4387020247a1ae212bbcbd381", + "GUID:79880af77beac474791f8a1f79b26946" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Samples/VelVoiceExample/VelVoiceExample.asmdef.meta b/Samples/VelVoiceExample/VelVoiceExample.asmdef.meta new file mode 100644 index 0000000..767b8a2 --- /dev/null +++ b/Samples/VelVoiceExample/VelVoiceExample.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 88f3bb1d6f3382744915e2acc77967f2 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples~/ExampleVelVoice/Scripts/VelNetMan.cs b/Samples~/ExampleVelVoice/Scripts/VelNetMan.cs deleted file mode 100644 index 2fa6149..0000000 --- a/Samples~/ExampleVelVoice/Scripts/VelNetMan.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine; -using VelNet; - -public class VelNetMan : MonoBehaviour -{ - public GameObject playerPrefab; - - // Start is called before the first frame update - private void Start() - { - VelNetManager.OnJoinedRoom += player => - { - VelNetManager.NetworkInstantiate(playerPrefab.name); - }; - } -} \ No newline at end of file diff --git a/Samples~/ExampleVelVoice/Scripts/VelNetMan.cs.meta b/Samples~/ExampleVelVoice/Scripts/VelNetMan.cs.meta deleted file mode 100644 index 225d370..0000000 --- a/Samples~/ExampleVelVoice/Scripts/VelNetMan.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2fcf036844b060b47b23ad9a1e49eec2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/package.json b/package.json index 33fd65c..7989fb5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "edu.uga.engr.vel.velnet", "displayName": "VelNet", - "version": "1.1.5", + "version": "1.1.6", "unity": "2019.1", "description": "A custom networking library for Unity.", "keywords": [