├── .gitignore ├── Assets ├── Docs.meta ├── Docs │ ├── CHANGELOG.txt │ └── CHANGELOG.txt.meta ├── Libs.meta ├── Libs │ ├── Examples.meta │ ├── Examples │ │ ├── rotation_example.unity │ │ ├── rotation_example.unity.meta │ │ ├── scale_example.unity │ │ ├── scale_example.unity.meta │ │ ├── translate_example.unity │ │ ├── translate_example.unity.meta │ │ ├── view_example.unity │ │ └── view_example.unity.meta │ ├── Materials.meta │ ├── Materials │ │ ├── center_material.mat │ │ ├── center_material.mat.meta │ │ ├── cube_material.mat │ │ ├── cube_material.mat.meta │ │ ├── highlight.mat │ │ ├── highlight.mat.meta │ │ ├── sphere_material.mat │ │ ├── sphere_material.mat.meta │ │ ├── x_material.mat │ │ ├── x_material.mat.meta │ │ ├── x_material_trans.mat │ │ ├── x_material_trans.mat.meta │ │ ├── y_material.mat │ │ ├── y_material.mat.meta │ │ ├── y_material_trans.mat │ │ ├── y_material_trans.mat.meta │ │ ├── z_material.mat │ │ ├── z_material.mat.meta │ │ ├── z_material_trans.mat │ │ └── z_material_trans.mat.meta │ ├── Models.meta │ ├── Models │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── No Name.mat │ │ │ ├── No Name.mat.meta │ │ │ ├── x_material__trans.mat │ │ │ ├── x_material__trans.mat.meta │ │ │ ├── y_material__trans.mat │ │ │ ├── y_material__trans.mat.meta │ │ │ ├── z_material__trans.mat │ │ │ └── z_material__trans.mat.meta │ │ ├── rotation_gizmo.fbx │ │ ├── rotation_gizmo.fbx.meta │ │ ├── scale_gizmo.fbx │ │ ├── scale_gizmo.fbx.meta │ │ ├── translate_gizmo.fbx │ │ ├── translate_gizmo.fbx.meta │ │ ├── view_gizmo.fbx │ │ └── view_gizmo.fbx.meta │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── rotation_gizmo.prefab │ │ ├── rotation_gizmo.prefab.meta │ │ ├── scale_gizmo.prefab │ │ ├── scale_gizmo.prefab.meta │ │ ├── translate_gizmo.prefab │ │ ├── translate_gizmo.prefab.meta │ │ ├── view_gizmo.prefab │ │ └── view_gizmo.prefab.meta │ ├── RuntimeGizmo.meta │ ├── RuntimeGizmo │ │ ├── ExampleScene.unity │ │ ├── ExampleScene.unity.meta │ │ ├── Helpers.meta │ │ ├── Helpers │ │ │ ├── ExtVector3.cs │ │ │ ├── ExtVector3.cs.meta │ │ │ ├── Geometry.cs │ │ │ └── Geometry.cs.meta │ │ ├── Objects.meta │ │ ├── Objects │ │ │ ├── AxisInfo.cs │ │ │ ├── AxisInfo.cs.meta │ │ │ ├── AxisVectors.cs │ │ │ ├── AxisVectors.cs.meta │ │ │ ├── Enums.cs │ │ │ ├── Enums.cs.meta │ │ │ ├── ExtMathf.cs │ │ │ ├── ExtMathf.cs.meta │ │ │ ├── IntersectPoints.cs │ │ │ ├── IntersectPoints.cs.meta │ │ │ ├── Square.cs │ │ │ └── Square.cs.meta │ │ ├── Shader.meta │ │ ├── Shader │ │ │ ├── Resources.meta │ │ │ └── Resources │ │ │ │ ├── Lines.shader │ │ │ │ └── Lines.shader.meta │ │ ├── TransformGizmo.cs │ │ └── TransformGizmo.cs.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── GizmoClickDetection.cs │ │ ├── GizmoClickDetection.cs.meta │ │ ├── GizmoRotateScript.cs │ │ ├── GizmoRotateScript.cs.meta │ │ ├── GizmoScaleScript.cs │ │ ├── GizmoScaleScript.cs.meta │ │ ├── GizmoTranslateScript.cs │ │ ├── GizmoTranslateScript.cs.meta │ │ ├── GizmoViewScript.cs │ │ └── GizmoViewScript.cs.meta ├── Materials.meta ├── Materials │ ├── HeadMaterial.mat │ ├── HeadMaterial.mat.meta │ ├── PlayerMaterial.mat │ └── PlayerMaterial.mat.meta ├── Plugins.meta ├── Plugins │ ├── FlatBuffers.dll │ ├── FlatBuffers.dll.meta │ ├── Hazel.dll │ └── Hazel.dll.meta ├── Prefabs.meta ├── Prefabs │ ├── Player.prefab │ ├── Player.prefab.meta │ ├── UnityMainThreadDispatcher.prefab │ └── UnityMainThreadDispatcher.prefab.meta ├── Scenes.meta ├── Scenes │ ├── MainScene.unity │ ├── MainScene.unity.meta │ ├── MainSceneRotation.unity │ └── MainSceneRotation.unity.meta ├── ScreenLogger.meta ├── ScreenLogger │ ├── Editor.meta │ ├── Editor │ │ ├── ScreenLoggerEditor.cs │ │ └── ScreenLoggerEditor.cs.meta │ ├── Example.meta │ ├── Example │ │ ├── ExampleScene.unity │ │ ├── ExampleScene.unity.meta │ │ ├── LoadingScene.unity │ │ ├── LoadingScene.unity.meta │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── CheckerMaterial.mat │ │ │ ├── CheckerMaterial.mat.meta │ │ │ ├── Grid.mat │ │ │ ├── Grid.mat.meta │ │ │ ├── Red.mat │ │ │ └── Red.mat.meta │ │ ├── Models.meta │ │ ├── Models │ │ │ ├── Materials.meta │ │ │ ├── Materials │ │ │ │ ├── 02 - Default.mat │ │ │ │ ├── 02 - Default.mat.meta │ │ │ │ ├── No Name.mat │ │ │ │ └── No Name.mat.meta │ │ │ ├── Room.fbx │ │ │ ├── Room.fbx.meta │ │ │ ├── Sphere.fbx │ │ │ └── Sphere.fbx.meta │ │ ├── Scripts.meta │ │ ├── Scripts │ │ │ ├── BouncingBall.cs │ │ │ ├── BouncingBall.cs.meta │ │ │ ├── Rotator.cs │ │ │ ├── Rotator.cs.meta │ │ │ ├── Test.cs │ │ │ └── Test.cs.meta │ │ ├── Textures.meta │ │ └── Textures │ │ │ ├── Checkerboard.png │ │ │ ├── Checkerboard.png.meta │ │ │ ├── Grid.png │ │ │ └── Grid.png.meta │ ├── Readme.txt │ ├── Readme.txt.meta │ ├── Resources.meta │ ├── Resources │ │ ├── ScreenLoggerPrefab.prefab │ │ └── ScreenLoggerPrefab.prefab.meta │ ├── ScreenLogger.cs │ └── ScreenLogger.cs.meta ├── Scripts.meta └── Scripts │ ├── CustomLogger.cs │ ├── CustomLogger.cs.meta │ ├── DemoFreeFlyCamera.cs │ ├── DemoFreeFlyCamera.cs.meta │ ├── MessagePack.meta │ ├── MessagePack │ ├── Attributes.cs │ ├── Attributes.cs.meta │ ├── FloatBits.cs │ ├── FloatBits.cs.meta │ ├── Formatters.meta │ ├── Formatters │ │ ├── CollectionFormatter.cs │ │ ├── CollectionFormatter.cs.meta │ │ ├── DictionaryFormatter.cs │ │ ├── DictionaryFormatter.cs.meta │ │ ├── DynamicObjectTypeFallbackFormatter.cs │ │ ├── DynamicObjectTypeFallbackFormatter.cs.meta │ │ ├── EnumAsStringFormatter.cs │ │ ├── EnumAsStringFormatter.cs.meta │ │ ├── IMessagePackFormatter.cs │ │ ├── IMessagePackFormatter.cs.meta │ │ ├── MultiDimentionalArrayFormatter.cs │ │ ├── MultiDimentionalArrayFormatter.cs.meta │ │ ├── NullableFormatter.cs │ │ ├── NullableFormatter.cs.meta │ │ ├── OldSpecFormatter.cs │ │ ├── OldSpecFormatter.cs.meta │ │ ├── PrimitiveFormatter.cs │ │ ├── PrimitiveFormatter.cs.meta │ │ ├── PrimitiveObjectFormatter.cs │ │ ├── PrimitiveObjectFormatter.cs.meta │ │ ├── StandardClassLibraryFormatter.cs │ │ ├── StandardClassLibraryFormatter.cs.meta │ │ ├── TupleFormatter.cs │ │ ├── TupleFormatter.cs.meta │ │ ├── TypelessFormatter.cs │ │ ├── TypelessFormatter.cs.meta │ │ ├── ValueTupleFormatter.cs │ │ └── ValueTupleFormatter.cs.meta │ ├── IFormatterResolver.cs │ ├── IFormatterResolver.cs.meta │ ├── IMessagePackSerializationCallbackReceiver.cs │ ├── IMessagePackSerializationCallbackReceiver.cs.meta │ ├── Internal.meta │ ├── Internal │ │ ├── DynamicAssembly.cs │ │ ├── DynamicAssembly.cs.meta │ │ ├── ILGeneratorExtensions.cs │ │ ├── ILGeneratorExtensions.cs.meta │ │ ├── ReflectionExtensions.cs │ │ ├── ReflectionExtensions.cs.meta │ │ ├── ThreadSafeHashtable.cs │ │ ├── ThreadSafeHashtable.cs.meta │ │ ├── TinyJsonReader.cs │ │ └── TinyJsonReader.cs.meta │ ├── LZ4.meta │ ├── LZ4 │ │ ├── Codec.meta │ │ ├── Codec │ │ │ ├── LZ4Codec.Helper.cs │ │ │ ├── LZ4Codec.Helper.cs.meta │ │ │ ├── LZ4Codec.Safe.cs │ │ │ ├── LZ4Codec.Safe.cs.meta │ │ │ ├── LZ4Codec.Safe32.Dirty.cs │ │ │ ├── LZ4Codec.Safe32.Dirty.cs.meta │ │ │ ├── LZ4Codec.Safe64.Dirty.cs │ │ │ ├── LZ4Codec.Safe64.Dirty.cs.meta │ │ │ ├── LZ4Codec.Unsafe.cs │ │ │ ├── LZ4Codec.Unsafe.cs.meta │ │ │ ├── LZ4Codec.Unsafe32.Dirty.cs │ │ │ ├── LZ4Codec.Unsafe32.Dirty.cs.meta │ │ │ ├── LZ4Codec.Unsafe64.Dirty.cs │ │ │ ├── LZ4Codec.Unsafe64.Dirty.cs.meta │ │ │ ├── LZ4Codec.cs │ │ │ └── LZ4Codec.cs.meta │ │ ├── LZ4MessagePackSerializer.JSON.cs │ │ ├── LZ4MessagePackSerializer.JSON.cs.meta │ │ ├── LZ4MessagePackSerializer.NonGeneric.cs │ │ ├── LZ4MessagePackSerializer.NonGeneric.cs.meta │ │ ├── LZ4MessagePackSerializer.cs │ │ └── LZ4MessagePackSerializer.cs.meta │ ├── MessagePackBinary.cs │ ├── MessagePackBinary.cs.meta │ ├── MessagePackCode.cs │ ├── MessagePackCode.cs.meta │ ├── MessagePackSerializer.Json.cs │ ├── MessagePackSerializer.Json.cs.meta │ ├── MessagePackSerializer.NonGeneric.cs │ ├── MessagePackSerializer.NonGeneric.cs.meta │ ├── MessagePackSerializer.cs │ ├── MessagePackSerializer.cs.meta │ ├── Nil.cs │ ├── Nil.cs.meta │ ├── Resolvers.meta │ ├── Resolvers │ │ ├── AttributeFormatterResolver.cs │ │ ├── AttributeFormatterResolver.cs.meta │ │ ├── BuiltinResolver.cs │ │ ├── BuiltinResolver.cs.meta │ │ ├── CompositeResolver.cs │ │ ├── CompositeResolver.cs.meta │ │ ├── DynamicEnumAsStringResolver.cs │ │ ├── DynamicEnumAsStringResolver.cs.meta │ │ ├── DynamicEnumResolver.cs │ │ ├── DynamicEnumResolver.cs.meta │ │ ├── DynamicGenericResolver.cs │ │ ├── DynamicGenericResolver.cs.meta │ │ ├── DynamicObjectResolver.cs │ │ ├── DynamicObjectResolver.cs.meta │ │ ├── DynamicUnionResolver.cs │ │ ├── DynamicUnionResolver.cs.meta │ │ ├── NativeDateTimeResolver.cs │ │ ├── NativeDateTimeResolver.cs.meta │ │ ├── OldSpecResolver.cs │ │ ├── OldSpecResolver.cs.meta │ │ ├── PrimitiveObjectResolver.cs │ │ ├── PrimitiveObjectResolver.cs.meta │ │ ├── StandardResolver.cs │ │ ├── StandardResolver.cs.meta │ │ ├── TypelessContractlessStandardResolver.cs │ │ ├── TypelessContractlessStandardResolver.cs.meta │ │ ├── TypelessObjectResolver.cs │ │ └── TypelessObjectResolver.cs.meta │ ├── Shims.meta │ ├── Shims │ │ ├── Reflection.cs │ │ └── Reflection.cs.meta │ ├── StringEncoding.cs │ ├── StringEncoding.cs.meta │ ├── Unity.meta │ ├── Unity │ │ ├── Formatters.cs │ │ ├── Formatters.cs.meta │ │ ├── UnityResolver.cs │ │ └── UnityResolver.cs.meta │ ├── UnsafeExtensions.meta │ └── UnsafeExtensions │ │ ├── UnityBlitResolver.cs │ │ ├── UnityBlitResolver.cs.meta │ │ ├── UnsafeBlitFormatter.cs │ │ └── UnsafeBlitFormatter.cs.meta │ ├── NetworkCube.cs │ ├── NetworkCube.cs.meta │ ├── NetworkManager.cs │ ├── NetworkManager.cs.meta │ ├── NetworkPlayer.cs │ ├── NetworkPlayer.cs.meta │ ├── NewtorkPlayerME.cs │ ├── NewtorkPlayerME.cs.meta │ ├── SaveSchemaHazel.cs │ ├── SaveSchemaHazel.cs.meta │ ├── SaveSchemaHazelMessage.cs │ ├── SaveSchemaHazelMessage.cs.meta │ ├── UnityMainThreadDispatcher.cs │ └── UnityMainThreadDispatcher.cs.meta ├── Images └── 2017-08-04 10_29_34.gif ├── LICENSE ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | 6 | # Autogenerated VS/MD solution and project files 7 | /*.csproj 8 | /*.unityproj 9 | /*.sln 10 | /*.suo 11 | /*.user 12 | /*.userprefs 13 | /*.pidb 14 | /*.booproj 15 | 16 | #Unity3D Generated File On Crash Reports 17 | sysinfo.txt 18 | 19 | # ========================= 20 | # Operating System Files 21 | # ========================= 22 | 23 | # OSX 24 | # ========================= 25 | 26 | .DS_Store 27 | .AppleDouble 28 | .LSOverride 29 | 30 | # Thumbnails 31 | ._* 32 | 33 | # Files that might appear on external disk 34 | .Spotlight-V100 35 | .Trashes 36 | 37 | # Directories potentially created on remote AFP share 38 | .AppleDB 39 | .AppleDesktop 40 | Network Trash Folder 41 | Temporary Items 42 | .apdisk 43 | 44 | # Windows 45 | # ========================= 46 | 47 | # Windows image file caches 48 | Thumbs.db 49 | ehthumbs.db 50 | 51 | # Folder config file 52 | Desktop.ini 53 | 54 | # Recycle Bin used on file shares 55 | $RECYCLE.BIN/ 56 | .vs/HazelTestUDPClientUnity/v14/.suo 57 | -------------------------------------------------------------------------------- /Assets/Docs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1486ee9690c8408f85dd6eff2f04156 3 | folderAsset: yes 4 | timeCreated: 1504086025 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Docs/CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | mercoledì 30 agosto 2017 11:40:59 2 | 3 | Prima versione funzionante (0.1 Alfa? ;-) 4 | 5 | TODO: 6 | - Cabiare ObjectID da INT a ushort Da 0 a 65.535 Intero senza segno a 16 bit System.UInt16 (Questo dovrebbe creare un pacchetto più piccolo) 7 | - Ricreare quindi la relativa classe per flatbuffer 8 | - Mandare messaggi UDP not Reliable? Migliora velocità? 9 | - Prevedere il boolean isKinematic per VRTK ;-) 10 | - Usare ID univoco: https://stackoverflow.com/questions/9543715/generating-human-readable-usable-short-but-unique-ids -------------------------------------------------------------------------------- /Assets/Docs/CHANGELOG.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf89d5db91a17421d9ed8ca7ff2ff007 3 | timeCreated: 1504086380 4 | licenseType: Free 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4d0bac2b57a848b79e37dae1d89bd9a 3 | folderAsset: yes 4 | timeCreated: 1500882061 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Examples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f463a8695c7de448accaa87b8d2bc65 3 | folderAsset: yes 4 | timeCreated: 1453478370 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Examples/rotation_example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a657418f0edbca4b90ecce2bb9cef9b 3 | timeCreated: 1455105025 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Examples/scale_example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 614c4bbff7bc5a449980f5834b028ad3 3 | timeCreated: 1455115876 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Examples/translate_example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16f1278bb15a9524eb8704b77bae7b82 3 | timeCreated: 1453473567 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Examples/view_example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0f4fbcaefd188a4f932f2762dfeda79 3 | timeCreated: 1455120682 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 975c754f467711540a3b8f33544f1f35 3 | folderAsset: yes 4 | timeCreated: 1453478328 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/center_material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: center_material 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _Metallic: 0 64 | - _Mode: 0 65 | - _OcclusionStrength: 1 66 | - _Parallax: 0.02 67 | - _SrcBlend: 1 68 | - _UVSec: 0 69 | - _ZWrite: 1 70 | m_Colors: 71 | - _Color: {r: 1, g: 1, b: 1, a: 1} 72 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 73 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/center_material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23949c84d1d76074680cfb570dcd9a41 3 | timeCreated: 1455116223 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/cube_material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: cube_material 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _Metallic: 0.5 64 | - _Mode: 0 65 | - _OcclusionStrength: 1 66 | - _Parallax: 0.02 67 | - _SrcBlend: 1 68 | - _UVSec: 0 69 | - _ZWrite: 1 70 | m_Colors: 71 | - _Color: {r: 1, g: 0.78431374, b: 1, a: 1} 72 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 73 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/cube_material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 262981a1fcfb734488be5bb3511bee4c 3 | timeCreated: 1455100180 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/highlight.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: highlight 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _Metallic: 0 64 | - _Mode: 0 65 | - _OcclusionStrength: 1 66 | - _Parallax: 0.02 67 | - _SrcBlend: 1 68 | - _UVSec: 0 69 | - _ZWrite: 1 70 | m_Colors: 71 | - _Color: {r: 1, g: 1, b: 0, a: 0.7490196} 72 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 73 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/highlight.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27196022a3b3f1742b1efc1ca300baaf 3 | timeCreated: 1453479954 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/sphere_material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: sphere_material 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _ALPHAPREMULTIPLY_ON 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: 17 | RenderType: Transparent 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 10 63 | - _Glossiness: 0.1 64 | - _Metallic: 0 65 | - _Mode: 3 66 | - _OcclusionStrength: 1 67 | - _Parallax: 0.02 68 | - _SrcBlend: 1 69 | - _UVSec: 0 70 | - _ZWrite: 0 71 | m_Colors: 72 | - _Color: {r: 1, g: 1, b: 1, a: 0.09803922} 73 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 74 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/sphere_material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 939014686179a974ca4f63fd6ec2dd92 3 | timeCreated: 1455104846 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/x_material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: x_material 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _Metallic: 0 64 | - _Mode: 0 65 | - _OcclusionStrength: 1 66 | - _Parallax: 0.02 67 | - _SrcBlend: 1 68 | - _UVSec: 0 69 | - _ZWrite: 1 70 | m_Colors: 71 | - _Color: {r: 1, g: 0, b: 0, a: 1} 72 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 73 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/x_material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98551eaa8d494644f835ca18eed54ec9 3 | timeCreated: 1453478429 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/x_material_trans.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: x_material_trans 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _ALPHAPREMULTIPLY_ON 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: 17 | RenderType: Transparent 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 10 63 | - _Glossiness: 0.5 64 | - _Metallic: 0 65 | - _Mode: 3 66 | - _OcclusionStrength: 1 67 | - _Parallax: 0.02 68 | - _SrcBlend: 1 69 | - _UVSec: 0 70 | - _ZWrite: 0 71 | m_Colors: 72 | - _Color: {r: 1, g: 0, b: 0, a: 0.75} 73 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 74 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/x_material_trans.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6480867fed9652c4c9cfbeed5522d447 3 | timeCreated: 1453478429 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/y_material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: y_material 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _Metallic: 0 64 | - _Mode: 0 65 | - _OcclusionStrength: 1 66 | - _Parallax: 0.02 67 | - _SrcBlend: 1 68 | - _UVSec: 0 69 | - _ZWrite: 1 70 | m_Colors: 71 | - _Color: {r: 0, g: 1, b: 0, a: 1} 72 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 73 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/y_material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 046dd078a31e6c840ac1df40ad0195d2 3 | timeCreated: 1453478430 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/y_material_trans.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: y_material_trans 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _ALPHAPREMULTIPLY_ON 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: 17 | RenderType: Transparent 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 10 63 | - _Glossiness: 0.5 64 | - _Metallic: 0 65 | - _Mode: 3 66 | - _OcclusionStrength: 1 67 | - _Parallax: 0.02 68 | - _SrcBlend: 1 69 | - _UVSec: 0 70 | - _ZWrite: 0 71 | m_Colors: 72 | - _Color: {r: 0, g: 1, b: 0, a: 0.75} 73 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 74 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/y_material_trans.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b389b4a661dff484da84dfbd8459ed6e 3 | timeCreated: 1453478430 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/z_material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: z_material 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _Metallic: 0 64 | - _Mode: 0 65 | - _OcclusionStrength: 1 66 | - _Parallax: 0.02 67 | - _SrcBlend: 1 68 | - _UVSec: 0 69 | - _ZWrite: 1 70 | m_Colors: 71 | - _Color: {r: 0, g: 0, b: 1, a: 1} 72 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 73 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/z_material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9119c3fcecdf7c4ea5fe97493f4a513 3 | timeCreated: 1453478430 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/z_material_trans.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: z_material_trans 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _ALPHAPREMULTIPLY_ON 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: 17 | RenderType: Transparent 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 10 63 | - _Glossiness: 0.5 64 | - _Metallic: 0 65 | - _Mode: 3 66 | - _OcclusionStrength: 1 67 | - _Parallax: 0.02 68 | - _SrcBlend: 1 69 | - _UVSec: 0 70 | - _ZWrite: 0 71 | m_Colors: 72 | - _Color: {r: 0, g: 0, b: 1, a: 0.75} 73 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 74 | -------------------------------------------------------------------------------- /Assets/Libs/Materials/z_material_trans.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee049f279bdc8554c8e80e3de1d06b18 3 | timeCreated: 1453478430 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d53e9e56dcbd50c48b9903517c78f743 3 | folderAsset: yes 4 | timeCreated: 1453478323 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Models/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff52a3b46c894419b81e52a67ea93b79 3 | folderAsset: yes 4 | timeCreated: 1500882127 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Models/Materials/No Name.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: No Name 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Libs/Models/Materials/No Name.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55c8604f8cf6144c98a3abc9694c3ba5 3 | timeCreated: 1500882127 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Models/Materials/x_material__trans.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: x_material__trans 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _ALPHAPREMULTIPLY_ON 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: 17 | RenderType: Transparent 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 10 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0.5 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 3 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 0 75 | m_Colors: 76 | - _Color: {r: 1, g: 0, b: 0, a: 0.75} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | -------------------------------------------------------------------------------- /Assets/Libs/Models/Materials/x_material__trans.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb31cff9fd6ba49498bdabf23c4cca78 3 | timeCreated: 1500882127 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Models/Materials/y_material__trans.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: y_material__trans 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _ALPHAPREMULTIPLY_ON 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: 17 | RenderType: Transparent 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 10 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0.5 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 3 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 0 75 | m_Colors: 76 | - _Color: {r: 0, g: 1, b: 0, a: 0.75} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | -------------------------------------------------------------------------------- /Assets/Libs/Models/Materials/y_material__trans.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4ec6ca55b3c3424480b62db1051cd0b 3 | timeCreated: 1500882127 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Models/Materials/z_material__trans.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: z_material__trans 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _ALPHAPREMULTIPLY_ON 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 3000 16 | stringTagMap: 17 | RenderType: Transparent 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 10 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0.5 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 3 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 0 75 | m_Colors: 76 | - _Color: {r: 0, g: 0, b: 1, a: 0.75} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | -------------------------------------------------------------------------------- /Assets/Libs/Models/Materials/z_material__trans.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7c993c191b1f40e081568b017ad29e9 3 | timeCreated: 1500882128 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Models/rotation_gizmo.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/Libs/Models/rotation_gizmo.fbx -------------------------------------------------------------------------------- /Assets/Libs/Models/rotation_gizmo.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0db8af1f2885a0346a6134177dfd61ed 3 | timeCreated: 1455106124 4 | licenseType: Free 5 | ModelImporter: 6 | serializedVersion: 19 7 | fileIDToRecycleName: 8 | 100000: //RootNode 9 | 100002: sphere 10 | 100004: x_torus 11 | 100006: x_torus_collider 12 | 100008: y_torus 13 | 100010: y_torus_collider 14 | 100012: z_torus 15 | 100014: z_torus_collider 16 | 400000: //RootNode 17 | 400002: sphere 18 | 400004: x_torus 19 | 400006: x_torus_collider 20 | 400008: y_torus 21 | 400010: y_torus_collider 22 | 400012: z_torus 23 | 400014: z_torus_collider 24 | 2300000: sphere 25 | 2300002: x_torus 26 | 2300004: x_torus_collider 27 | 2300006: y_torus 28 | 2300008: y_torus_collider 29 | 2300010: z_torus 30 | 2300012: z_torus_collider 31 | 3300000: sphere 32 | 3300002: x_torus 33 | 3300004: x_torus_collider 34 | 3300006: y_torus 35 | 3300008: y_torus_collider 36 | 3300010: z_torus 37 | 3300012: z_torus_collider 38 | 4300000: z_torus 39 | 4300002: z_torus_collider 40 | 4300004: y_torus 41 | 4300006: y_torus_collider 42 | 4300008: x_torus 43 | 4300010: x_torus_collider 44 | 4300012: sphere 45 | materials: 46 | importMaterials: 1 47 | materialName: 0 48 | materialSearch: 1 49 | animations: 50 | legacyGenerateAnimations: 4 51 | bakeSimulation: 0 52 | resampleRotations: 1 53 | optimizeGameObjects: 0 54 | motionNodeName: 55 | animationImportErrors: 56 | animationImportWarnings: 57 | animationRetargetingWarnings: 58 | animationDoRetargetingWarnings: 0 59 | animationCompression: 1 60 | animationRotationError: 0.5 61 | animationPositionError: 0.5 62 | animationScaleError: 0.5 63 | animationWrapMode: 0 64 | extraExposedTransformPaths: [] 65 | clipAnimations: [] 66 | isReadable: 1 67 | meshes: 68 | lODScreenPercentages: [] 69 | globalScale: 1 70 | meshCompression: 0 71 | addColliders: 0 72 | importBlendShapes: 1 73 | swapUVChannels: 0 74 | generateSecondaryUV: 0 75 | useFileUnits: 1 76 | optimizeMeshForGPU: 1 77 | keepQuads: 0 78 | weldVertices: 1 79 | secondaryUVAngleDistortion: 8 80 | secondaryUVAreaDistortion: 15.000001 81 | secondaryUVHardAngle: 88 82 | secondaryUVPackMargin: 4 83 | useFileScale: 1 84 | tangentSpace: 85 | normalSmoothAngle: 60 86 | normalImportMode: 0 87 | tangentImportMode: 3 88 | importAnimation: 1 89 | copyAvatar: 0 90 | humanDescription: 91 | human: [] 92 | skeleton: [] 93 | armTwist: 0.5 94 | foreArmTwist: 0.5 95 | upperLegTwist: 0.5 96 | legTwist: 0.5 97 | armStretch: 0.05 98 | legStretch: 0.05 99 | feetSpacing: 0 100 | rootMotionBoneName: 101 | hasTranslationDoF: 0 102 | lastHumanDescriptionAvatarSource: {instanceID: 0} 103 | animationType: 0 104 | humanoidOversampling: 1 105 | additionalBone: 0 106 | userData: 107 | assetBundleName: 108 | assetBundleVariant: 109 | -------------------------------------------------------------------------------- /Assets/Libs/Models/scale_gizmo.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/Libs/Models/scale_gizmo.fbx -------------------------------------------------------------------------------- /Assets/Libs/Models/translate_gizmo.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/Libs/Models/translate_gizmo.fbx -------------------------------------------------------------------------------- /Assets/Libs/Models/view_gizmo.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/Libs/Models/view_gizmo.fbx -------------------------------------------------------------------------------- /Assets/Libs/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 069bdbe26e80a59478624057dd18ba35 3 | folderAsset: yes 4 | timeCreated: 1453478355 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Prefabs/rotation_gizmo.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6b753c99f1fd874eb4eaf0a90552ba7 3 | timeCreated: 1455115752 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Prefabs/scale_gizmo.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03cf525078a479e43b752196175042af 3 | timeCreated: 1455119999 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Prefabs/translate_gizmo.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87d1da74c99a8774ab76b829245fa60a 3 | timeCreated: 1455115807 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/Prefabs/view_gizmo.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e96b41f267f39f144a4e4a7e928850e7 3 | timeCreated: 1455187679 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec4399ce9a81e4f34925628ea60cd15a 3 | folderAsset: yes 4 | timeCreated: 1503997038 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/ExampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 678d4f03f0bd01b4faf0609706d37c25 3 | timeCreated: 1476929737 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Helpers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94034dcfd4314554e804ac2ab5c56e76 3 | folderAsset: yes 4 | timeCreated: 1476929645 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Helpers/ExtVector3.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace RuntimeGizmos 5 | { 6 | public static class ExtVector3 7 | { 8 | public static float MagnitudeInDirection(Vector3 vector, Vector3 direction, bool normalizeParameters = true) 9 | { 10 | if(normalizeParameters) direction.Normalize(); 11 | return Vector3.Dot(vector, direction); 12 | } 13 | 14 | public static Vector3 Abs(this Vector3 vector) 15 | { 16 | return new Vector3(Mathf.Abs(vector.x), Mathf.Abs(vector.y), Mathf.Abs(vector.z)); 17 | } 18 | 19 | public static bool IsParallel(Vector3 direction, Vector3 otherDirection, float precision = .0001f) 20 | { 21 | return Vector3.Cross(direction, otherDirection).sqrMagnitude < precision; 22 | } 23 | 24 | public static bool IsInDirection(Vector3 direction, Vector3 otherDirection) 25 | { 26 | return Vector3.Dot(direction, otherDirection) > 0f; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Helpers/ExtVector3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a35283e9c44b944409939253bcd2ad6d 3 | timeCreated: 1476929645 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Helpers/Geometry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f00f74461b60fe240a9bb58cd9ce7c96 3 | timeCreated: 1476929645 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c30edde445282946b8b878549ec7c91 3 | folderAsset: yes 4 | timeCreated: 1476929157 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/AxisInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace RuntimeGizmos 5 | { 6 | public struct AxisInfo 7 | { 8 | public Vector3 xAxisEnd; 9 | public Vector3 yAxisEnd; 10 | public Vector3 zAxisEnd; 11 | public Vector3 xDirection; 12 | public Vector3 yDirection; 13 | public Vector3 zDirection; 14 | 15 | public void Set(Transform target, float handleLength, TransformSpace space) 16 | { 17 | if(space == TransformSpace.Global) 18 | { 19 | xDirection = Vector3.right; 20 | yDirection = Vector3.up; 21 | zDirection = Vector3.forward; 22 | } 23 | else if(space == TransformSpace.Local) 24 | { 25 | xDirection = target.right; 26 | yDirection = target.up; 27 | zDirection = target.forward; 28 | } 29 | 30 | xAxisEnd = target.position + (xDirection * handleLength); 31 | yAxisEnd = target.position + (yDirection * handleLength); 32 | zAxisEnd = target.position + (zDirection * handleLength); 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/AxisInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fdba16e6d9debb4fbdf5f641bc33dff 3 | timeCreated: 1476929157 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/AxisVectors.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace RuntimeGizmos 6 | { 7 | public class AxisVectors 8 | { 9 | public List x = new List(); 10 | public List y = new List(); 11 | public List z = new List(); 12 | public List all = new List(); 13 | 14 | public void Add(AxisVectors axisVectors) 15 | { 16 | x.AddRange(axisVectors.x); 17 | y.AddRange(axisVectors.y); 18 | z.AddRange(axisVectors.z); 19 | all.AddRange(axisVectors.all); 20 | } 21 | 22 | public void Clear() 23 | { 24 | x.Clear(); 25 | y.Clear(); 26 | z.Clear(); 27 | all.Clear(); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/AxisVectors.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48c1248d4e6fc154db0855a605201199 3 | timeCreated: 1476929157 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/Enums.cs: -------------------------------------------------------------------------------- 1 | namespace RuntimeGizmos 2 | { 3 | public enum TransformSpace {Global, Local} 4 | public enum TransformType {Move, Rotate, Scale} 5 | public enum Axis {None, X, Y, Z, Any} 6 | } -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/Enums.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf8ed95684630fd438dae7687a21ffd2 3 | timeCreated: 1476929645 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/ExtMathf.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace RuntimeGizmos 4 | { 5 | public static class ExtMathf 6 | { 7 | public static float Squared(this float value) 8 | { 9 | return value * value; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/ExtMathf.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6448352c1e56eb9458c3e376f080ac7b 3 | timeCreated: 1476929645 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/IntersectPoints.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace RuntimeGizmos 5 | { 6 | public struct IntersectPoints 7 | { 8 | public Vector3 first; 9 | public Vector3 second; 10 | 11 | public IntersectPoints(Vector3 first, Vector3 second) 12 | { 13 | this.first = first; 14 | this.second = second; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/IntersectPoints.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb0b61c67fde16f4ca3043d366ba5250 3 | timeCreated: 1476929645 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/Square.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace RuntimeGizmos 5 | { 6 | public struct Square 7 | { 8 | public Vector3 bottomLeft; 9 | public Vector3 bottomRight; 10 | public Vector3 topLeft; 11 | public Vector3 topRight; 12 | 13 | public Vector3 this[int index] 14 | { 15 | get 16 | { 17 | switch (index) 18 | { 19 | case 0: 20 | return this.bottomLeft; 21 | case 1: 22 | return this.bottomRight; 23 | case 2: 24 | return this.topLeft; 25 | case 3: 26 | return this.topRight; 27 | case 4: 28 | return this.bottomLeft; //so we wrap around back to start 29 | default: 30 | return Vector3.zero; 31 | } 32 | } 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Objects/Square.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1d5347342ae4484a8b52b0295c9cca4 3 | timeCreated: 1476929157 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12b4a62162dbe9347a842d36d443438f 3 | folderAsset: yes 4 | timeCreated: 1476929170 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Shader/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a35823ce4272a14d8b3018f91abedfe 3 | folderAsset: yes 4 | timeCreated: 1476929176 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Shader/Resources/Lines.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/Lines" 2 | { 3 | SubShader 4 | { 5 | Pass 6 | { 7 | Blend SrcAlpha OneMinusSrcAlpha 8 | ZWrite Off 9 | ZTest Always 10 | Cull Off 11 | Fog { Mode Off } 12 | 13 | BindChannels 14 | { 15 | Bind "vertex", vertex 16 | Bind "color", color 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/Shader/Resources/Lines.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe433e2d7af9d9a488e8fd25c46af509 3 | timeCreated: 1476929187 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/RuntimeGizmo/TransformGizmo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c0ad0e8e55c95c4e931911c4b943a64 3 | timeCreated: 1476929157 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf3a2bb80d1ec4cbfa246c05729a2cd0 3 | folderAsset: yes 4 | timeCreated: 1500882162 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Libs/Scripts/GizmoClickDetection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8183ae197610a342a73fe5c6493a47b 3 | timeCreated: 1453479216 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/Scripts/GizmoRotateScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f750c4df342c1324ba9f04b94b19ffca 3 | timeCreated: 1455113700 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/Scripts/GizmoScaleScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 542e9256ee73cd446823df73367edfb1 3 | timeCreated: 1455116549 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/Scripts/GizmoTranslateScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cad78b6a2f1872f4c8565695650c840d 3 | timeCreated: 1453483281 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Libs/Scripts/GizmoViewScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1856f75d0bc6bfb49a8ca3160bf00de5 3 | timeCreated: 1455121250 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 88343805235dd4c1b8743c38499fb4ce 3 | folderAsset: yes 4 | timeCreated: 1504528113 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Materials/HeadMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: HeadMaterial 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0, g: 0, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Materials/HeadMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eeebc1bec46ad47f1853ae49fd105105 3 | timeCreated: 1504528187 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Materials/PlayerMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: PlayerMaterial 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.97794116, g: 0.97794116, b: 0.97794116, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Materials/PlayerMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac96a9be9cf804177950ed9baf456f0f 3 | timeCreated: 1504528127 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 673cbd42a9c2349c083304cb5b9a8381 3 | folderAsset: yes 4 | timeCreated: 1500622705 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/FlatBuffers.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/Plugins/FlatBuffers.dll -------------------------------------------------------------------------------- /Assets/Plugins/FlatBuffers.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13575bb54f6ae7c46adaed074a27297f 3 | timeCreated: 1500713338 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Plugins/Hazel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/Plugins/Hazel.dll -------------------------------------------------------------------------------- /Assets/Plugins/Hazel.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c10399cdc63df484380cbf085cd3ce12 3 | timeCreated: 1500622827 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 140e2e95855fdde4ca3963b9f557a6b1 3 | folderAsset: yes 4 | timeCreated: 1501521974 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Prefabs/Player.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a858e272d650045eba1da47c1218cfd4 3 | timeCreated: 1504532364 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Prefabs/UnityMainThreadDispatcher.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_ParentPrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1457448242858576} 13 | m_IsPrefabParent: 1 14 | --- !u!1 &1457448242858576 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_PrefabParentObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 5 20 | m_Component: 21 | - component: {fileID: 4579787957199868} 22 | - component: {fileID: 114084560191503406} 23 | m_Layer: 0 24 | m_Name: UnityMainThreadDispatcher 25 | m_TagString: Untagged 26 | m_Icon: {fileID: 0} 27 | m_NavMeshLayer: 0 28 | m_StaticEditorFlags: 0 29 | m_IsActive: 1 30 | --- !u!4 &4579787957199868 31 | Transform: 32 | m_ObjectHideFlags: 1 33 | m_PrefabParentObject: {fileID: 0} 34 | m_PrefabInternal: {fileID: 100100000} 35 | m_GameObject: {fileID: 1457448242858576} 36 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 37 | m_LocalPosition: {x: 0, y: 0, z: 0} 38 | m_LocalScale: {x: 1, y: 1, z: 1} 39 | m_Children: [] 40 | m_Father: {fileID: 0} 41 | m_RootOrder: 0 42 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 43 | --- !u!114 &114084560191503406 44 | MonoBehaviour: 45 | m_ObjectHideFlags: 1 46 | m_PrefabParentObject: {fileID: 0} 47 | m_PrefabInternal: {fileID: 100100000} 48 | m_GameObject: {fileID: 1457448242858576} 49 | m_Enabled: 1 50 | m_EditorHideFlags: 0 51 | m_Script: {fileID: 11500000, guid: 6de62bf2339434b4e9a12ea4ce3c064d, type: 3} 52 | m_Name: 53 | m_EditorClassIdentifier: 54 | -------------------------------------------------------------------------------- /Assets/Prefabs/UnityMainThreadDispatcher.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e637c59c0546db94eb3bdb4b035ed6bb 3 | timeCreated: 1501531092 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ef3a4e1238cf4fed8a5b7b4676d708d 3 | folderAsset: yes 4 | timeCreated: 1500625314 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/MainScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8d619a08602f422fb15f958b8565fab 3 | timeCreated: 1500625329 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MainSceneRotation.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cecd01d0c9c0b4c00863b68e3926eb0a 3 | timeCreated: 1503997112 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScreenLogger.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c89e4c450eaf641c7aa5f922fa899874 3 | folderAsset: yes 4 | timeCreated: 1501668600 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c3057553e44b4c039aeea39f502a030 3 | folderAsset: yes 4 | timeCreated: 1501668600 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Editor/ScreenLoggerEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityEditor; 4 | 5 | namespace AClockworkBerry 6 | { 7 | [CustomEditor(typeof(ScreenLogger))] 8 | public class ScreenLoggerEditor : Editor 9 | { 10 | [MenuItem("GameObject/Create Other/Screen Logger")] 11 | static void AddScreenLogger() 12 | { 13 | if (GameObject.FindObjectOfType() == null) 14 | { 15 | GameObject gameObject = new GameObject(); 16 | gameObject.name = "ScreenLogger"; 17 | gameObject.AddComponent(); 18 | } 19 | else 20 | { 21 | Debug.LogError("ScreenLogger already added to the scene."); 22 | } 23 | } 24 | 25 | public override void OnInspectorGUI() 26 | { 27 | base.DrawDefaultInspector(); 28 | 29 | ScreenLogger.Instance.InspectorGUIUpdated(); 30 | } 31 | } 32 | } 33 | 34 | /* 35 | The MIT License 36 | 37 | Copyright © 2016 Screen Logger - Giuseppe Portelli 38 | 39 | Permission is hereby granted, free of charge, to any person obtaining a copy 40 | of this software and associated documentation files (the "Software"), to deal 41 | in the Software without restriction, including without limitation the rights 42 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 43 | copies of the Software, and to permit persons to whom the Software is 44 | furnished to do so, subject to the following conditions: 45 | 46 | The above copyright notice and this permission notice shall be included in 47 | all copies or substantial portions of the Software. 48 | 49 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 50 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 51 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 52 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 53 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 54 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 55 | THE SOFTWARE. 56 | */ -------------------------------------------------------------------------------- /Assets/ScreenLogger/Editor/ScreenLoggerEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0180b985be6c854285448ae9f8a74f7 3 | timeCreated: 18446744011573954816 4 | MonoImporter: 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 882952968bcb54671abce774f40eb76d 3 | folderAsset: yes 4 | timeCreated: 1501668600 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/ExampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e0c31a9f19b4fd4696a1a66845e232b 3 | timeCreated: 18446744011573954816 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/LoadingScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b83d53789e09804ba3778eea2dbe451 3 | timeCreated: 18446744011573954816 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2428f9f939a0c407b9574b4ca0f5b07f 3 | folderAsset: yes 4 | timeCreated: 1501668600 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Materials/CheckerMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: CheckerMaterial 10 | m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _MainTex: 22 | m_Texture: {fileID: 2800000, guid: 8f170bc12f6c3004ea6357ce9e86d958, type: 3} 23 | m_Scale: {x: 2, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | m_Floats: [] 26 | m_Colors: 27 | - _Color: {r: 1, g: 1, b: 1, a: 1} 28 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Materials/CheckerMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 888f526cf4c0c9040bf022c4061c571b 3 | timeCreated: 18446744011573954816 4 | NativeFormatImporter: 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Materials/Grid.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Grid 10 | m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _MainTex: 22 | m_Texture: {fileID: 2800000, guid: c7d4983e5d5306d4da230fa287d9d0cd, type: 3} 23 | m_Scale: {x: 10, y: 10} 24 | m_Offset: {x: 0, y: 0} 25 | m_Floats: [] 26 | m_Colors: 27 | - _Color: {r: 1, g: 1, b: 1, a: 1} 28 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Materials/Grid.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05c91246f190d8042996f5ec820bfaf3 3 | timeCreated: 18446744011573954816 4 | NativeFormatImporter: 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Materials/Red.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Red 10 | m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _MainTex: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | m_Floats: [] 26 | m_Colors: 27 | - _Color: {r: 0.875, g: 0, b: 0, a: 1} 28 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Materials/Red.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd59189be81451f458764bf1cdd25a9e 3 | timeCreated: 18446744011573954816 4 | NativeFormatImporter: 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9d6fd683ad504a19961eef5eb68cd4a 3 | folderAsset: yes 4 | timeCreated: 1501668600 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79cc62da7b0da409a8d69f9fcf887910 3 | folderAsset: yes 4 | timeCreated: 1501668607 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models/Materials/02 - Default.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: 02 - Default 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.8117648, g: 0, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models/Materials/02 - Default.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7704e67d6107647b5b8423fe4951d339 3 | timeCreated: 1501668607 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models/Materials/No Name.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: No Name 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models/Materials/No Name.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d96947177425429b8e19fb4fa48f173 3 | timeCreated: 1501668607 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models/Room.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/ScreenLogger/Example/Models/Room.fbx -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models/Room.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c24b244d67b2564da433617359e63aa 3 | timeCreated: 18446744011573954816 4 | ModelImporter: 5 | serializedVersion: 21 6 | fileIDToRecycleName: 7 | 100000: //RootNode 8 | 400000: //RootNode 9 | 2300000: //RootNode 10 | 3300000: //RootNode 11 | 4300000: Box001 12 | 9500000: //RootNode 13 | materials: 14 | importMaterials: 1 15 | materialName: 0 16 | materialSearch: 1 17 | animations: 18 | legacyGenerateAnimations: 4 19 | bakeSimulation: 0 20 | resampleCurves: 1 21 | optimizeGameObjects: 0 22 | motionNodeName: 23 | rigImportErrors: 24 | rigImportWarnings: 25 | animationImportErrors: 26 | animationImportWarnings: 27 | animationRetargetingWarnings: 28 | animationDoRetargetingWarnings: 0 29 | animationCompression: 1 30 | animationRotationError: 0.5 31 | animationPositionError: 0.5 32 | animationScaleError: 0.5 33 | animationWrapMode: 0 34 | extraExposedTransformPaths: [] 35 | extraUserProperties: [] 36 | clipAnimations: [] 37 | isReadable: 1 38 | meshes: 39 | lODScreenPercentages: [] 40 | globalScale: 0.2 41 | meshCompression: 0 42 | addColliders: 0 43 | importVisibility: 0 44 | importBlendShapes: 1 45 | importCameras: 0 46 | importLights: 0 47 | swapUVChannels: 0 48 | generateSecondaryUV: 0 49 | useFileUnits: 1 50 | optimizeMeshForGPU: 1 51 | keepQuads: 0 52 | weldVertices: 1 53 | secondaryUVAngleDistortion: 8 54 | secondaryUVAreaDistortion: 15.000001 55 | secondaryUVHardAngle: 88 56 | secondaryUVPackMargin: 4 57 | useFileScale: 0 58 | tangentSpace: 59 | normalSmoothAngle: 60 60 | normalImportMode: 0 61 | tangentImportMode: 4 62 | normalCalculationMode: 0 63 | importAnimation: 1 64 | copyAvatar: 0 65 | humanDescription: 66 | serializedVersion: 2 67 | human: [] 68 | skeleton: [] 69 | armTwist: 0.5 70 | foreArmTwist: 0.5 71 | upperLegTwist: 0.5 72 | legTwist: 0.5 73 | armStretch: 0.05 74 | legStretch: 0.05 75 | feetSpacing: 0 76 | rootMotionBoneName: 77 | rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} 78 | hasTranslationDoF: 0 79 | hasExtraRoot: 0 80 | skeletonHasParents: 0 81 | lastHumanDescriptionAvatarSource: {instanceID: 0} 82 | animationType: 0 83 | humanoidOversampling: 1 84 | additionalBone: 0 85 | userData: 86 | assetBundleName: 87 | assetBundleVariant: 88 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models/Sphere.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/ScreenLogger/Example/Models/Sphere.fbx -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Models/Sphere.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c55467fe07970984a9bfdcde40bfe4e4 3 | timeCreated: 18446744011573954816 4 | ModelImporter: 5 | serializedVersion: 21 6 | fileIDToRecycleName: 7 | 100000: //RootNode 8 | 400000: //RootNode 9 | 2300000: //RootNode 10 | 3300000: //RootNode 11 | 4300000: Sphere001 12 | 9500000: //RootNode 13 | materials: 14 | importMaterials: 1 15 | materialName: 0 16 | materialSearch: 1 17 | animations: 18 | legacyGenerateAnimations: 4 19 | bakeSimulation: 0 20 | resampleCurves: 1 21 | optimizeGameObjects: 0 22 | motionNodeName: 23 | rigImportErrors: 24 | rigImportWarnings: 25 | animationImportErrors: 26 | animationImportWarnings: 27 | animationRetargetingWarnings: 28 | animationDoRetargetingWarnings: 0 29 | animationCompression: 1 30 | animationRotationError: 0.5 31 | animationPositionError: 0.5 32 | animationScaleError: 0.5 33 | animationWrapMode: 0 34 | extraExposedTransformPaths: [] 35 | extraUserProperties: [] 36 | clipAnimations: [] 37 | isReadable: 1 38 | meshes: 39 | lODScreenPercentages: [] 40 | globalScale: 0.1 41 | meshCompression: 0 42 | addColliders: 0 43 | importVisibility: 0 44 | importBlendShapes: 1 45 | importCameras: 0 46 | importLights: 0 47 | swapUVChannels: 0 48 | generateSecondaryUV: 0 49 | useFileUnits: 1 50 | optimizeMeshForGPU: 1 51 | keepQuads: 0 52 | weldVertices: 1 53 | secondaryUVAngleDistortion: 8 54 | secondaryUVAreaDistortion: 15.000001 55 | secondaryUVHardAngle: 88 56 | secondaryUVPackMargin: 4 57 | useFileScale: 0 58 | tangentSpace: 59 | normalSmoothAngle: 60 60 | normalImportMode: 0 61 | tangentImportMode: 4 62 | normalCalculationMode: 0 63 | importAnimation: 1 64 | copyAvatar: 0 65 | humanDescription: 66 | serializedVersion: 2 67 | human: [] 68 | skeleton: [] 69 | armTwist: 0.5 70 | foreArmTwist: 0.5 71 | upperLegTwist: 0.5 72 | legTwist: 0.5 73 | armStretch: 0.05 74 | legStretch: 0.05 75 | feetSpacing: 0 76 | rootMotionBoneName: 77 | rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} 78 | hasTranslationDoF: 0 79 | hasExtraRoot: 0 80 | skeletonHasParents: 0 81 | lastHumanDescriptionAvatarSource: {instanceID: 0} 82 | animationType: 0 83 | humanoidOversampling: 1 84 | additionalBone: 0 85 | userData: 86 | assetBundleName: 87 | assetBundleVariant: 88 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8b8010b8abca4f698821113797ec8d3 3 | folderAsset: yes 4 | timeCreated: 1501668600 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Scripts/BouncingBall.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using AClockworkBerry; 4 | 5 | public class BouncingBall : MonoBehaviour { 6 | public float Acceleration = -1; 7 | public float HorizVelocity = 1; 8 | public float Wall = 5; 9 | public float Radius = 1; 10 | public float RotationSpeed = 1; 11 | 12 | private Vector3 Velocity; 13 | private float MaxVelocity; 14 | 15 | void Start () { 16 | Velocity = new Vector3(HorizVelocity, 0, 0); 17 | 18 | MaxVelocity = Mathf.Sqrt(2 * -Acceleration * (transform.position.y - Radius)); 19 | transform.position = new Vector3(0, transform.position.y, 0); 20 | 21 | Debug.LogWarning("Start..."); 22 | } 23 | 24 | void Update () { 25 | if (Input.GetButtonDown("Fire1")) 26 | ScreenLogger.Instance.ShowLog = !ScreenLogger.Instance.ShowLog; 27 | 28 | Velocity.y += Acceleration * Time.deltaTime; 29 | transform.position += Velocity * Time.deltaTime; 30 | 31 | if (transform.position.y - Radius < 0) 32 | { 33 | transform.position = new Vector3(transform.position.x, Radius, 0); 34 | Velocity.y = MaxVelocity; 35 | 36 | Debug.Log("Boing at " + transform.position.x + "..."); 37 | } 38 | 39 | if (Mathf.Abs(transform.position.x) + Radius > Wall) 40 | { 41 | transform.position = new Vector3( 42 | transform.position.x > 0 ? Wall - Radius : -Wall + Radius, 43 | transform.position.y, 44 | 0); 45 | 46 | Velocity.x *= -1; 47 | } 48 | 49 | transform.Rotate(new Vector3(0, RotationSpeed * Time.deltaTime, 0)); 50 | } 51 | } 52 | 53 | /* 54 | The MIT License 55 | 56 | Copyright © 2016 Screen Logger - Giuseppe Portelli 57 | 58 | Permission is hereby granted, free of charge, to any person obtaining a copy 59 | of this software and associated documentation files (the "Software"), to deal 60 | in the Software without restriction, including without limitation the rights 61 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 62 | copies of the Software, and to permit persons to whom the Software is 63 | furnished to do so, subject to the following conditions: 64 | 65 | The above copyright notice and this permission notice shall be included in 66 | all copies or substantial portions of the Software. 67 | 68 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 69 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 70 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 71 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 72 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 73 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 74 | THE SOFTWARE. 75 | */ -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Scripts/BouncingBall.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07433b73324ea6048a600d42874207b4 3 | timeCreated: 18446744011573954816 4 | MonoImporter: 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Scripts/Rotator.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class Rotator : MonoBehaviour { 5 | public float RotationSpeed = 70; 6 | 7 | // Use this for initialization 8 | void Start () { 9 | 10 | } 11 | 12 | // Update is called once per frame 13 | void Update () { 14 | transform.Rotate(new Vector3(0, RotationSpeed * Time.deltaTime, 0)); 15 | } 16 | } 17 | 18 | /* 19 | The MIT License 20 | 21 | Copyright © 2016 Screen Logger - Giuseppe Portelli 22 | 23 | Permission is hereby granted, free of charge, to any person obtaining a copy 24 | of this software and associated documentation files (the "Software"), to deal 25 | in the Software without restriction, including without limitation the rights 26 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 27 | copies of the Software, and to permit persons to whom the Software is 28 | furnished to do so, subject to the following conditions: 29 | 30 | The above copyright notice and this permission notice shall be included in 31 | all copies or substantial portions of the Software. 32 | 33 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 34 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 35 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 36 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 37 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 38 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 39 | THE SOFTWARE. 40 | */ -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Scripts/Rotator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebd309e04018d3e4a93bbc26b1eaebad 3 | timeCreated: 18446744011573954816 4 | MonoImporter: 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Scripts/Test.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using AClockworkBerry; 4 | 5 | public class Test : MonoBehaviour 6 | { 7 | float timeout = 5, lasttime = -1; 8 | int i = 0; 9 | 10 | void Start() 11 | { 12 | ScreenLogger.Instance.ShowLog = true; 13 | 14 | TestMessageTypes(); 15 | } 16 | 17 | void Update() 18 | { 19 | if (timeout > 0) 20 | timeout -= Time.deltaTime; 21 | 22 | if ((int)lasttime != (int)timeout && timeout > 0) 23 | Debug.Log("-" + ((int)timeout + 1)); 24 | 25 | lasttime = timeout; 26 | 27 | if (timeout <= 0 && timeout != -1) 28 | { 29 | timeout = -1; 30 | Debug.Log("Loading new scene..."); 31 | Application.LoadLevel("ExampleScene"); 32 | } 33 | } 34 | 35 | void TestMessageTypes() 36 | { 37 | Debug.Log("Log message..."); 38 | Debug.LogWarning("Warning message..."); 39 | Debug.LogError("Error message..."); 40 | } 41 | } 42 | 43 | /* 44 | The MIT License 45 | 46 | Copyright © 2016 Screen Logger - Giuseppe Portelli 47 | 48 | Permission is hereby granted, free of charge, to any person obtaining a copy 49 | of this software and associated documentation files (the "Software"), to deal 50 | in the Software without restriction, including without limitation the rights 51 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 52 | copies of the Software, and to permit persons to whom the Software is 53 | furnished to do so, subject to the following conditions: 54 | 55 | The above copyright notice and this permission notice shall be included in 56 | all copies or substantial portions of the Software. 57 | 58 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 59 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 60 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 61 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 62 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 63 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 64 | THE SOFTWARE. 65 | */ -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Scripts/Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8274712347e6d9f488347bc3a4ec2c82 3 | timeCreated: 18446744011573954816 4 | MonoImporter: 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fa9677380a374ead818e9b35afd75ff 3 | folderAsset: yes 4 | timeCreated: 1501668600 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Textures/Checkerboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/ScreenLogger/Example/Textures/Checkerboard.png -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Textures/Checkerboard.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f170bc12f6c3004ea6357ce9e86d958 3 | timeCreated: 18446744011573954816 4 | TextureImporter: 5 | fileIDToRecycleName: {} 6 | serializedVersion: 4 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 1024 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapU: -1 36 | wrapV: -1 37 | wrapW: -1 38 | nPOTScale: 1 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaUsage: 1 49 | alphaIsTransparency: 0 50 | spriteTessellationDetail: -1 51 | textureType: 0 52 | textureShape: 1 53 | maxTextureSizeSet: 0 54 | compressionQualitySet: 0 55 | textureFormatSet: 0 56 | platformSettings: 57 | - buildTarget: DefaultTexturePlatform 58 | maxTextureSize: 1024 59 | textureFormat: -1 60 | textureCompression: 1 61 | compressionQuality: 50 62 | crunchedCompression: 0 63 | allowsAlphaSplitting: 0 64 | overridden: 0 65 | spriteSheet: 66 | serializedVersion: 2 67 | sprites: [] 68 | outline: [] 69 | physicsShape: [] 70 | spritePackingTag: 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Textures/Grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Assets/ScreenLogger/Example/Textures/Grid.png -------------------------------------------------------------------------------- /Assets/ScreenLogger/Example/Textures/Grid.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7d4983e5d5306d4da230fa287d9d0cd 3 | timeCreated: 18446744011573954816 4 | TextureImporter: 5 | fileIDToRecycleName: {} 6 | serializedVersion: 4 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 1024 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: -1 33 | aniso: 2 34 | mipBias: -1 35 | wrapU: -1 36 | wrapV: -1 37 | wrapW: -1 38 | nPOTScale: 1 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaUsage: 1 49 | alphaIsTransparency: 0 50 | spriteTessellationDetail: -1 51 | textureType: 0 52 | textureShape: 1 53 | maxTextureSizeSet: 0 54 | compressionQualitySet: 0 55 | textureFormatSet: 0 56 | platformSettings: 57 | - buildTarget: DefaultTexturePlatform 58 | maxTextureSize: 1024 59 | textureFormat: -1 60 | textureCompression: 1 61 | compressionQuality: 50 62 | crunchedCompression: 0 63 | allowsAlphaSplitting: 0 64 | overridden: 0 65 | spriteSheet: 66 | serializedVersion: 2 67 | sprites: [] 68 | outline: [] 69 | physicsShape: [] 70 | spritePackingTag: 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9437396a5b562834caaafbf470b9de6f 3 | timeCreated: 18446744011573954816 4 | TextScriptImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c636dd0eec6204e039b3a394bd26502b 3 | folderAsset: yes 4 | timeCreated: 1501668600 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Resources/ScreenLoggerPrefab.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &101706 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 5 9 | m_Component: 10 | - component: {fileID: 401706} 11 | - component: {fileID: 11401706} 12 | m_Layer: 0 13 | m_Name: ScreenLoggerPrefab 14 | m_TagString: Untagged 15 | m_Icon: {fileID: 0} 16 | m_NavMeshLayer: 0 17 | m_StaticEditorFlags: 0 18 | m_IsActive: 1 19 | --- !u!4 &401706 20 | Transform: 21 | m_ObjectHideFlags: 1 22 | m_PrefabParentObject: {fileID: 0} 23 | m_PrefabInternal: {fileID: 100100000} 24 | m_GameObject: {fileID: 101706} 25 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 26 | m_LocalPosition: {x: 0, y: 0, z: 0} 27 | m_LocalScale: {x: 1, y: 1, z: 1} 28 | m_Children: [] 29 | m_Father: {fileID: 0} 30 | m_RootOrder: 0 31 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 32 | --- !u!114 &11401706 33 | MonoBehaviour: 34 | m_ObjectHideFlags: 1 35 | m_PrefabParentObject: {fileID: 0} 36 | m_PrefabInternal: {fileID: 100100000} 37 | m_GameObject: {fileID: 101706} 38 | m_Enabled: 1 39 | m_EditorHideFlags: 0 40 | m_Script: {fileID: 11500000, guid: aa0afa61f775305429a6c5930482c488, type: 3} 41 | m_Name: 42 | m_EditorClassIdentifier: 43 | ShowLog: 1 44 | ShowInEditor: 1 45 | Height: 0.5 46 | Width: 0.5 47 | Margin: 20 48 | AnchorPosition: 2 49 | FontSize: 14 50 | BackgroundOpacity: 0.607 51 | BackgroundColor: {r: 0, g: 0, b: 0, a: 1} 52 | LogMessages: 1 53 | LogWarnings: 1 54 | LogErrors: 1 55 | MessageColor: {r: 1, g: 1, b: 1, a: 1} 56 | WarningColor: {r: 1, g: 0.92156863, b: 0.015686275, a: 1} 57 | ErrorColor: {r: 1, g: 0.5, b: 0.5, a: 1} 58 | StackTraceMessages: 0 59 | StackTraceWarnings: 0 60 | StackTraceErrors: 1 61 | --- !u!1001 &100100000 62 | Prefab: 63 | m_ObjectHideFlags: 1 64 | serializedVersion: 2 65 | m_Modification: 66 | m_TransformParent: {fileID: 0} 67 | m_Modifications: [] 68 | m_RemovedComponents: [] 69 | m_ParentPrefab: {fileID: 0} 70 | m_RootGameObject: {fileID: 101706} 71 | m_IsPrefabParent: 1 72 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/Resources/ScreenLoggerPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0aeafd6ca709b5449035c42f4e3879e 3 | timeCreated: 18446744011573954816 4 | NativeFormatImporter: 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScreenLogger/ScreenLogger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa0afa61f775305429a6c5930482c488 3 | timeCreated: 18446744011573954816 4 | MonoImporter: 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a88af0e8a85774f9fb6af3eda153fa8c 3 | folderAsset: yes 4 | timeCreated: 1500622693 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/CustomLogger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using UnityEngine; 4 | 5 | 6 | public class CustomLogger 7 | { 8 | 9 | public static bool Disabled; 10 | 11 | public static int SessionMark { get; private set; } 12 | 13 | public static string Version 14 | { 15 | get { return string.IsNullOrEmpty(_version) ? "Version not initiated" : _version; } 16 | private set { _version = value; } 17 | } 18 | private static string _version; 19 | 20 | 21 | private const int MaxMessageLength = 4000; 22 | 23 | static CustomLogger() 24 | { 25 | SessionMark = UnityEngine.Random.Range(1000000000, int.MaxValue); 26 | 27 | AppDomain.CurrentDomain.UnhandledException += (sender, args) => LogIt(args.ExceptionObject as Exception); 28 | 29 | Application.logMessageReceived += (condition, trace, type) => 30 | { 31 | LogIt(string.Format("Console Log ({0}): {1}{2}{3}", 32 | type, condition, Environment.NewLine, trace)); 33 | }; 34 | } 35 | 36 | public static void SetVersion(string version) 37 | { 38 | Version = version; 39 | LogIt("Initiated"); 40 | } 41 | 42 | public static void LogIt(string text) 43 | { 44 | if (Application.isEditor) return; 45 | if (Disabled) return; 46 | 47 | string path = Path.Combine(Application.dataPath, "customLog.txt"); 48 | 49 | if (text.Length > MaxMessageLength) 50 | text = text.Substring(0, MaxMessageLength) + "..."; 51 | 52 | try 53 | { 54 | if (!File.Exists(path)) 55 | { 56 | using (StreamWriter sw = File.CreateText(path)) 57 | { 58 | sw.WriteLine(DateTime.Now.ToUniversalTime() + " || created" + Environment.NewLine); 59 | sw.WriteLine(DateTime.Now.ToString("MM-dd_HH-mm-ss") + ": " + text); 60 | } 61 | } 62 | else 63 | { 64 | using (StreamWriter sw = File.AppendText(path)) 65 | { 66 | sw.WriteLine(DateTime.Now.ToString("MM-dd_HH-mm-ss") + ": " + text); 67 | } 68 | } 69 | } 70 | catch (Exception ex) 71 | { 72 | Debug.LogException(ex); 73 | } 74 | } 75 | 76 | public static void LogIt(Exception ex) 77 | { 78 | LogIt("Exception:" + Environment.NewLine + ex.Message + Environment.NewLine + ex.StackTrace); 79 | } 80 | 81 | } -------------------------------------------------------------------------------- /Assets/Scripts/CustomLogger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b1df5e33149f41a7984ce6cccd2b1b7 3 | timeCreated: 1501678208 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/DemoFreeFlyCamera.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace LowPolyWaterDemo { 4 | public class DemoFreeFlyCamera : MonoBehaviour { 5 | 6 | public bool lockCursor = false; 7 | public float cameraSensitivity = 4; 8 | public float normalMoveSpeed = 10; 9 | public float smoothTime = 10f; 10 | 11 | private float rotationX = 0.0f; 12 | private float rotationY = 0.0f; 13 | 14 | private int screenshotCount = 0; 15 | 16 | void Start() { 17 | if (lockCursor) { 18 | Cursor.lockState = CursorLockMode.Locked; 19 | Cursor.visible = false; 20 | } 21 | } 22 | 23 | void Update() { 24 | var dt = Mathf.Clamp(Time.deltaTime, 0f, 0.03f); 25 | 26 | //rotationX += Input.GetAxis("Mouse X") * cameraSensitivity; 27 | //rotationY += Input.GetAxis("Mouse Y") * cameraSensitivity; 28 | //rotationY = Mathf.Clamp(rotationY, -90, 90); 29 | //if (rotationX > 360) rotationX -= 360f; 30 | 31 | //var locRot = Quaternion.AngleAxis(rotationX, Vector3.up); 32 | //locRot *= Quaternion.AngleAxis(rotationY, Vector3.left); 33 | 34 | //transform.localRotation = Quaternion.Slerp(transform.localRotation, 35 | // locRot, smoothTime * dt); 36 | 37 | float speed = normalMoveSpeed * dt; 38 | 39 | if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) 40 | speed *= 4; 41 | 42 | var deltaVertical = transform.forward; 43 | var deltaHorizontal = transform.right; 44 | 45 | if (Input.GetKey(KeyCode.Space)) { transform.position += Vector3.up * speed; } 46 | if (Input.GetKey(KeyCode.E)) { transform.position -= Vector3.up * speed; } 47 | 48 | transform.position += deltaVertical * speed * Input.GetAxis("Vertical"); 49 | transform.position += deltaHorizontal * speed * Input.GetAxis("Horizontal"); 50 | 51 | if (Input.GetKey(KeyCode.Escape)) 52 | { 53 | Application.Quit(); 54 | } 55 | 56 | // take screenshot on up->down transition of F8 key 57 | if (Input.GetKeyDown("f8")) 58 | { 59 | string screenshotFilename; 60 | do 61 | { 62 | screenshotCount++; 63 | screenshotFilename = "screenshot" + screenshotCount + ".png"; 64 | 65 | } while (System.IO.File.Exists(screenshotFilename)); 66 | 67 | ScreenCapture.CaptureScreenshot(screenshotFilename); 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Assets/Scripts/DemoFreeFlyCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68f9ca85fcfbe6d44a1176b6e61c5ee9 3 | timeCreated: 1500916653 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d38f752c6f5c12408d9b2382535de58 3 | folderAsset: yes 4 | timeCreated: 1487501809 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Attributes.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MessagePack 4 | { 5 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = true)] 6 | public class MessagePackObjectAttribute : Attribute 7 | { 8 | public bool KeyAsPropertyName { get; private set; } 9 | 10 | public MessagePackObjectAttribute(bool keyAsPropertyName = false) 11 | { 12 | this.KeyAsPropertyName = keyAsPropertyName; 13 | } 14 | } 15 | 16 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] 17 | public class KeyAttribute : Attribute 18 | { 19 | public int? IntKey { get; private set; } 20 | public string StringKey { get; private set; } 21 | 22 | public KeyAttribute(int x) 23 | { 24 | this.IntKey = x; 25 | } 26 | 27 | public KeyAttribute(string x) 28 | { 29 | this.StringKey = x; 30 | } 31 | } 32 | 33 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] 34 | public class IgnoreMemberAttribute : Attribute 35 | { 36 | } 37 | 38 | [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class, AllowMultiple = true, Inherited = false)] 39 | public class UnionAttribute : Attribute 40 | { 41 | public int Key { get; private set; } 42 | public Type SubType { get; private set; } 43 | 44 | public UnionAttribute(int key, Type subType) 45 | { 46 | this.Key = key; 47 | this.SubType = subType; 48 | } 49 | } 50 | 51 | [AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false, Inherited = true)] 52 | public class SerializationConstructorAttribute : Attribute 53 | { 54 | 55 | } 56 | 57 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface | AttributeTargets.Enum, AllowMultiple = false, Inherited = true)] 58 | public class MessagePackFormatterAttribute : Attribute 59 | { 60 | public Type FormatterType { get; private set; } 61 | public object[] Arguments { get; private set; } 62 | 63 | public MessagePackFormatterAttribute(Type formatterType) 64 | { 65 | this.FormatterType = formatterType; 66 | } 67 | 68 | public MessagePackFormatterAttribute(Type formatterType, params object[] arguments) 69 | { 70 | this.FormatterType = formatterType; 71 | this.Arguments = arguments; 72 | } 73 | } 74 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Attributes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c523d28e0e7e4f44842116a01f36ae3 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/FloatBits.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 345a76b4016103543ab8445c750365c4 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 419e470fd6919bd468e25bcf581e081b 3 | folderAsset: yes 4 | timeCreated: 1487501809 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/CollectionFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 882ec8ca76f574f4d86e8e1fa98fbff2 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/DictionaryFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a4ff3e539e0f104fbacfc340c297fb6 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/DynamicObjectTypeFallbackFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5f7b1732c30ff94ab3db3e7a130f91a 3 | timeCreated: 1498137502 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/EnumAsStringFormatter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace MessagePack.Formatters 5 | { 6 | // Note:This implemenataion is 'not' fastest, should more improve. 7 | public sealed class EnumAsStringFormatter : IMessagePackFormatter 8 | { 9 | readonly Dictionary nameValueMapping; 10 | readonly Dictionary valueNameMapping; 11 | 12 | public EnumAsStringFormatter() 13 | { 14 | var names = Enum.GetNames(typeof(T)); 15 | var values = Enum.GetValues(typeof(T)); 16 | 17 | nameValueMapping = new Dictionary(names.Length); 18 | valueNameMapping = new Dictionary(names.Length); 19 | 20 | for (int i = 0; i < names.Length; i++) 21 | { 22 | nameValueMapping[names[i]] = (T)values.GetValue(i); 23 | valueNameMapping[(T)values.GetValue(i)] = names[i]; 24 | } 25 | } 26 | 27 | public int Serialize(ref byte[] bytes, int offset, T value, IFormatterResolver formatterResolver) 28 | { 29 | string name; 30 | if (!valueNameMapping.TryGetValue(value, out name)) 31 | { 32 | name = value.ToString(); // fallback for flags etc, But Enum.ToString is too slow. 33 | } 34 | 35 | return MessagePackBinary.WriteString(ref bytes, offset, name); 36 | } 37 | 38 | public T Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize) 39 | { 40 | var name = MessagePackBinary.ReadString(bytes, offset, out readSize); 41 | 42 | T value; 43 | if (!nameValueMapping.TryGetValue(name, out value)) 44 | { 45 | value = (T)Enum.Parse(typeof(T), name); // Enum.Parse is too slow 46 | } 47 | return value; 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/EnumAsStringFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78dc03e88b6b9c5479a3f2cd8aab369c 3 | timeCreated: 1489559017 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/IMessagePackFormatter.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace MessagePack.Formatters 3 | { 4 | public interface IMessagePackFormatter 5 | { 6 | int Serialize(ref byte[] bytes, int offset, T value, IFormatterResolver formatterResolver); 7 | T Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/IMessagePackFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2df5e729bd4efab45a275d958f71eedf 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/MultiDimentionalArrayFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3244dd5e70e5fda48afe09f2273b3ee1 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/NullableFormatter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace MessagePack.Formatters 6 | { 7 | public sealed class NullableFormatter : IMessagePackFormatter 8 | where T : struct 9 | { 10 | public int Serialize(ref byte[] bytes, int offset, T? value, IFormatterResolver formatterResolver) 11 | { 12 | if (value == null) 13 | { 14 | return MessagePackBinary.WriteNil(ref bytes, offset); 15 | } 16 | else 17 | { 18 | return formatterResolver.GetFormatterWithVerify().Serialize(ref bytes, offset, value.Value, formatterResolver); 19 | } 20 | } 21 | 22 | public T? Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize) 23 | { 24 | if (MessagePackBinary.IsNil(bytes, offset)) 25 | { 26 | readSize = 1; 27 | return null; 28 | } 29 | else 30 | { 31 | return formatterResolver.GetFormatterWithVerify().Deserialize(bytes, offset, formatterResolver, out readSize); 32 | } 33 | } 34 | } 35 | 36 | public sealed class StaticNullableFormatter : IMessagePackFormatter 37 | where T : struct 38 | { 39 | readonly IMessagePackFormatter underlyingFormatter; 40 | 41 | public StaticNullableFormatter(IMessagePackFormatter underlyingFormatter) 42 | { 43 | this.underlyingFormatter = underlyingFormatter; 44 | } 45 | 46 | public int Serialize(ref byte[] bytes, int offset, T? value, IFormatterResolver formatterResolver) 47 | { 48 | if (value == null) 49 | { 50 | return MessagePackBinary.WriteNil(ref bytes, offset); 51 | } 52 | else 53 | { 54 | return underlyingFormatter.Serialize(ref bytes, offset, value.Value, formatterResolver); 55 | } 56 | } 57 | 58 | public T? Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize) 59 | { 60 | if (MessagePackBinary.IsNil(bytes, offset)) 61 | { 62 | readSize = 1; 63 | return null; 64 | } 65 | else 66 | { 67 | return underlyingFormatter.Deserialize(bytes, offset, formatterResolver, out readSize); 68 | } 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/NullableFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b8e7644d20320549860b6c234b10857 3 | timeCreated: 1487501809 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/OldSpecFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29a8b3571b399b14abf1dbe0f90491f6 3 | timeCreated: 1490454679 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/PrimitiveFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d26f3ff9ba5a22498c0c6c7363f3437 3 | timeCreated: 1488287483 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/PrimitiveObjectFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af0c4aff90f7e2748a7a7e0e46a88a3a 3 | timeCreated: 1491398527 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/StandardClassLibraryFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27708bccdbaa27b4387eaa3b87bb9140 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/TupleFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c85da68b90b760498edb47140d09a99 3 | timeCreated: 1488287483 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/TypelessFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aeb799582923b154690b60d32744e838 3 | timeCreated: 1498546040 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Formatters/ValueTupleFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf9648ed9c9e36a4b878654893321198 3 | timeCreated: 1488287483 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/IFormatterResolver.cs: -------------------------------------------------------------------------------- 1 |  2 | using MessagePack.Formatters; 3 | using System; 4 | using System.Reflection; 5 | 6 | namespace MessagePack 7 | { 8 | public interface IFormatterResolver 9 | { 10 | IMessagePackFormatter GetFormatter(); 11 | } 12 | 13 | public static class FormatterResolverExtensions 14 | { 15 | public static IMessagePackFormatter GetFormatterWithVerify(this IFormatterResolver resolver) 16 | { 17 | IMessagePackFormatter formatter; 18 | try 19 | { 20 | formatter = resolver.GetFormatter(); 21 | } 22 | catch (TypeInitializationException ex) 23 | { 24 | Exception inner = ex; 25 | while (inner.InnerException != null) 26 | { 27 | inner = inner.InnerException; 28 | } 29 | 30 | throw inner; 31 | } 32 | 33 | if (formatter == null) 34 | { 35 | throw new FormatterNotRegisteredException(typeof(T).FullName + " is not registered in this resolver. resolver:" + resolver.GetType().Name); 36 | } 37 | 38 | return formatter; 39 | } 40 | 41 | #if !UNITY_METRO 42 | 43 | public static object GetFormatterDynamic(this IFormatterResolver resolver, Type type) 44 | { 45 | var methodInfo = typeof(IFormatterResolver).GetRuntimeMethod("GetFormatter", Type.EmptyTypes); 46 | 47 | var formatter = methodInfo.MakeGenericMethod(type).Invoke(resolver, null); 48 | return formatter; 49 | } 50 | 51 | #endif 52 | } 53 | 54 | public class FormatterNotRegisteredException : Exception 55 | { 56 | public FormatterNotRegisteredException(string message) : base(message) 57 | { 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/IFormatterResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f129219f75d54e4c9724475b2a222bb 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/IMessagePackSerializationCallbackReceiver.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace MessagePack 6 | { 7 | public interface IMessagePackSerializationCallbackReceiver 8 | { 9 | void OnBeforeSerialize(); 10 | void OnAfterDeserialize(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/IMessagePackSerializationCallbackReceiver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66c409f4f185d7242aa98c827521e880 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5d7c71f646ae9e4ea575ef78fc57bb8 3 | folderAsset: yes 4 | timeCreated: 1487501809 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Internal/DynamicAssembly.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_METRO 2 | 3 | using System.Reflection; 4 | using System.Reflection.Emit; 5 | 6 | namespace MessagePack.Internal 7 | { 8 | internal class DynamicAssembly 9 | { 10 | #if NET_35 11 | readonly string moduleName; 12 | #endif 13 | readonly AssemblyBuilder assemblyBuilder; 14 | readonly ModuleBuilder moduleBuilder; 15 | 16 | public ModuleBuilder ModuleBuilder { get { return moduleBuilder; } } 17 | 18 | public DynamicAssembly(string moduleName) 19 | { 20 | #if NET_35 21 | this.moduleName = moduleName; 22 | this.assemblyBuilder = System.AppDomain.CurrentDomain.DefineDynamicAssembly(new AssemblyName(moduleName), AssemblyBuilderAccess.RunAndSave); 23 | this.moduleBuilder = assemblyBuilder.DefineDynamicModule(moduleName, moduleName + ".dll"); 24 | #else 25 | #if NETSTANDARD1_4 26 | this.assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName(moduleName), AssemblyBuilderAccess.Run); 27 | #else 28 | this.assemblyBuilder = System.AppDomain.CurrentDomain.DefineDynamicAssembly(new AssemblyName(moduleName), AssemblyBuilderAccess.Run); 29 | #endif 30 | 31 | this.moduleBuilder = assemblyBuilder.DefineDynamicModule(moduleName); 32 | #endif 33 | } 34 | 35 | #if NET_35 36 | 37 | public AssemblyBuilder Save() 38 | { 39 | assemblyBuilder.Save(moduleName + ".dll"); 40 | return assemblyBuilder; 41 | } 42 | 43 | #endif 44 | } 45 | } 46 | 47 | #endif -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Internal/DynamicAssembly.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2fd360de733c1504bb9a002668a6a73c 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Internal/ILGeneratorExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4704d47f3414974f88f9f21e3dc281c 3 | timeCreated: 1488099024 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Internal/ReflectionExtensions.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_METRO 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Reflection; 6 | using System.Runtime.CompilerServices; 7 | using System.Text; 8 | 9 | namespace MessagePack.Internal 10 | { 11 | internal static class ReflectionExtensions 12 | { 13 | public static bool IsNullable(this System.Reflection.TypeInfo type) 14 | { 15 | return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(System.Nullable<>); 16 | } 17 | 18 | public static bool IsPublic(this System.Reflection.TypeInfo type) 19 | { 20 | return type.IsPublic; 21 | } 22 | 23 | #if NETSTANDARD1_4 24 | 25 | public static bool IsAnonymous(this System.Reflection.TypeInfo type) 26 | { 27 | return type.GetCustomAttribute() != null 28 | && type.IsGenericType && type.Name.Contains("AnonymousType") 29 | && (type.Name.StartsWith("<>") || type.Name.StartsWith("VB$")) 30 | && (type.Attributes & TypeAttributes.NotPublic) == TypeAttributes.NotPublic; 31 | } 32 | 33 | public static bool IsConstructedGenericType(this System.Reflection.TypeInfo type) 34 | { 35 | return type.AsType().IsConstructedGenericType; 36 | } 37 | 38 | public static MethodInfo GetGetMethod(this PropertyInfo propInfo) 39 | { 40 | return propInfo.GetMethod; 41 | } 42 | 43 | public static MethodInfo GetSetMethod(this PropertyInfo propInfo) 44 | { 45 | return propInfo.SetMethod; 46 | } 47 | 48 | #endif 49 | } 50 | } 51 | 52 | #endif -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Internal/ReflectionExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e61aa0b2e2300ee4a91c0c699b1533a3 3 | timeCreated: 1487501810 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Internal/ThreadSafeHashtable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b446eecc8f28fe4e9190d521350c976 3 | timeCreated: 1500365835 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Internal/TinyJsonReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 757d9ab32ae519a45b020eab3038332c 3 | timeCreated: 1498137502 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6879702e59bcf3d4db35a0eae88bb8e0 3 | folderAsset: yes 4 | timeCreated: 1489057987 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/Codec.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c783993d40a4bb944a2e2a2f8323886f 3 | folderAsset: yes 4 | timeCreated: 1489069054 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/Codec/LZ4Codec.Helper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b5dd6b75c45f4046936c088aa4276c3 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/Codec/LZ4Codec.Safe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 350a9b63158d43c45be12b6ed93fa227 3 | timeCreated: 1490454679 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/Codec/LZ4Codec.Safe32.Dirty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9bcd40e694d03534381975789978c1f1 3 | timeCreated: 1490454679 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/Codec/LZ4Codec.Safe64.Dirty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcaa47d405206684c9506db70c32210e 3 | timeCreated: 1490454679 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/Codec/LZ4Codec.Unsafe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa7e8688b34abd749bff81ec21bc614c 3 | timeCreated: 1489131597 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/Codec/LZ4Codec.Unsafe32.Dirty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12789d40b95f6b848921f2f2470b24de 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/Codec/LZ4Codec.Unsafe64.Dirty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de72c794ac869bf4f95a95cb75a2db79 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/Codec/LZ4Codec.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1493ebdaae2d2ec44808ae4cf6418b31 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/LZ4MessagePackSerializer.JSON.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ccfe7519f2315b94b9cd47ab4c7742c7 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/LZ4MessagePackSerializer.NonGeneric.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2e691a6783e1584c96d2705a6533e54 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/LZ4/LZ4MessagePackSerializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfb55b01b61fbfa4b9d769ae82715bcb 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/MessagePackBinary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0dd783c6adb355a49aa376da38578ec5 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/MessagePackCode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11570467e3a856b459a0411607b655d2 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/MessagePackSerializer.Json.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fe325dd495dbb94aacc9853cd38a884 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/MessagePackSerializer.NonGeneric.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ab1febf4c31154409c62b46c0770376 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/MessagePackSerializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ffd77953965c3bf4e8108b7d61c606ce 3 | timeCreated: 1489131597 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Nil.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MessagePack 4 | { 5 | public struct Nil : IEquatable 6 | { 7 | public static readonly Nil Default = new Nil(); 8 | 9 | public override bool Equals(object obj) 10 | { 11 | return obj is Nil; 12 | } 13 | 14 | public bool Equals(Nil other) 15 | { 16 | return true; 17 | } 18 | 19 | public override int GetHashCode() 20 | { 21 | return 0; 22 | } 23 | 24 | public override string ToString() 25 | { 26 | return "()"; 27 | } 28 | } 29 | } 30 | 31 | namespace MessagePack.Formatters 32 | { 33 | public class NilFormatter : IMessagePackFormatter 34 | { 35 | public static readonly IMessagePackFormatter Instance = new NilFormatter(); 36 | 37 | NilFormatter() 38 | { 39 | 40 | } 41 | 42 | public int Serialize(ref byte[] bytes, int offset, Nil value, IFormatterResolver typeResolver) 43 | { 44 | return MessagePackBinary.WriteNil(ref bytes, offset); 45 | } 46 | 47 | public Nil Deserialize(byte[] bytes, int offset, IFormatterResolver typeResolver, out int readSize) 48 | { 49 | return MessagePackBinary.ReadNil(bytes, offset, out readSize); 50 | } 51 | } 52 | 53 | // NullableNil is same as Nil. 54 | public class NullableNilFormatter : IMessagePackFormatter 55 | { 56 | public static readonly IMessagePackFormatter Instance = new NullableNilFormatter(); 57 | 58 | NullableNilFormatter() 59 | { 60 | 61 | } 62 | 63 | public int Serialize(ref byte[] bytes, int offset, Nil? value, IFormatterResolver typeResolver) 64 | { 65 | return MessagePackBinary.WriteNil(ref bytes, offset); 66 | } 67 | 68 | public Nil? Deserialize(byte[] bytes, int offset, IFormatterResolver typeResolver, out int readSize) 69 | { 70 | return MessagePackBinary.ReadNil(bytes, offset, out readSize); 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Nil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70007681904a6664e9de58965fe8f99d 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 432f67d3d1e83554686cf89a82aaa5f9 3 | folderAsset: yes 4 | timeCreated: 1487501809 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/AttributeFormatterResolver.cs: -------------------------------------------------------------------------------- 1 | using MessagePack.Formatters; 2 | using System; 3 | using System.Reflection; 4 | using System.Linq; // require UNITY_METRO 5 | 6 | namespace MessagePack.Resolvers 7 | { 8 | /// 9 | /// Get formatter from [MessaegPackFromatter] attribute. 10 | /// 11 | public sealed class AttributeFormatterResolver : IFormatterResolver 12 | { 13 | public static IFormatterResolver Instance = new AttributeFormatterResolver(); 14 | 15 | AttributeFormatterResolver() 16 | { 17 | 18 | } 19 | 20 | public IMessagePackFormatter GetFormatter() 21 | { 22 | return FormatterCache.formatter; 23 | } 24 | 25 | static class FormatterCache 26 | { 27 | public static readonly IMessagePackFormatter formatter; 28 | 29 | static FormatterCache() 30 | { 31 | #if UNITY_METRO && !NETFX_CORE 32 | var attr = (MessagePackFormatterAttribute)typeof(T).GetCustomAttributes(typeof(MessagePackFormatterAttribute), true).FirstOrDefault(); 33 | #else 34 | var attr = typeof(T).GetTypeInfo().GetCustomAttribute(); 35 | #endif 36 | if (attr == null) 37 | { 38 | return; 39 | } 40 | 41 | if (attr.Arguments == null) 42 | { 43 | formatter = (IMessagePackFormatter)Activator.CreateInstance(attr.FormatterType); 44 | } 45 | else 46 | { 47 | formatter = (IMessagePackFormatter)Activator.CreateInstance(attr.FormatterType, attr.Arguments); 48 | } 49 | } 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/AttributeFormatterResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42fec6bcb9efe7e4b9926ff05781af4d 3 | timeCreated: 1496903961 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/BuiltinResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f285d85e6dcdb1441951a58eae0e79a8 3 | timeCreated: 1488099024 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/CompositeResolver.cs: -------------------------------------------------------------------------------- 1 | using MessagePack.Formatters; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace MessagePack.Resolvers 7 | { 8 | public sealed class CompositeResolver : IFormatterResolver 9 | { 10 | public static readonly CompositeResolver Instance = new CompositeResolver(); 11 | 12 | static bool isFreezed = false; 13 | static IFormatterResolver[] resolvers = new IFormatterResolver[0]; 14 | 15 | CompositeResolver() 16 | { 17 | } 18 | 19 | public static void Register(params IFormatterResolver[] resolvers) 20 | { 21 | if (isFreezed) 22 | { 23 | throw new InvalidOperationException("Register must call on startup(before use GetFormatter)."); 24 | } 25 | 26 | CompositeResolver.resolvers = resolvers; 27 | } 28 | 29 | public static void RegisterAndSetAsDefault(params IFormatterResolver[] resolvers) 30 | { 31 | Register(resolvers); 32 | MessagePack.MessagePackSerializer.SetDefaultResolver(CompositeResolver.Instance); 33 | } 34 | 35 | public IMessagePackFormatter GetFormatter() 36 | { 37 | return FormatterCache.formatter; 38 | } 39 | 40 | static class FormatterCache 41 | { 42 | public static readonly IMessagePackFormatter formatter; 43 | 44 | static FormatterCache() 45 | { 46 | isFreezed = true; 47 | 48 | foreach (var item in resolvers) 49 | { 50 | var f = item.GetFormatter(); 51 | if (f != null) 52 | { 53 | formatter = f; 54 | return; 55 | } 56 | } 57 | } 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/CompositeResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3705453cd664a4c469843dadb56756d7 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/DynamicEnumAsStringResolver.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_METRO 2 | 3 | using MessagePack.Formatters; 4 | using MessagePack.Internal; 5 | using System; 6 | using System.Reflection; 7 | 8 | namespace MessagePack.Resolvers 9 | { 10 | public sealed class DynamicEnumAsStringResolver : IFormatterResolver 11 | { 12 | public static readonly IFormatterResolver Instance = new DynamicEnumAsStringResolver(); 13 | 14 | DynamicEnumAsStringResolver() 15 | { 16 | 17 | } 18 | 19 | public IMessagePackFormatter GetFormatter() 20 | { 21 | return FormatterCache.formatter; 22 | } 23 | 24 | static class FormatterCache 25 | { 26 | public static readonly IMessagePackFormatter formatter; 27 | 28 | static FormatterCache() 29 | { 30 | var ti = typeof(T).GetTypeInfo(); 31 | 32 | if (ti.IsNullable()) 33 | { 34 | // build underlying type and use wrapped formatter. 35 | ti = ti.GenericTypeArguments[0].GetTypeInfo(); 36 | if (!ti.IsEnum) 37 | { 38 | return; 39 | } 40 | 41 | var innerFormatter = DynamicEnumAsStringResolver.Instance.GetFormatterDynamic(ti.AsType()); 42 | if (innerFormatter == null) 43 | { 44 | return; 45 | } 46 | formatter = (IMessagePackFormatter)Activator.CreateInstance(typeof(StaticNullableFormatter<>).MakeGenericType(ti.AsType()), new object[] { innerFormatter }); 47 | return; 48 | } 49 | else if (!ti.IsEnum) 50 | { 51 | return; 52 | } 53 | 54 | formatter = (IMessagePackFormatter)(object)new EnumAsStringFormatter(); 55 | } 56 | } 57 | } 58 | } 59 | 60 | #endif -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/DynamicEnumAsStringResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b1d4a5c92a16e2448c14d72a43cfa8b 3 | timeCreated: 1489559016 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/DynamicEnumResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57dbadbfd7c42564fb5db2b81393ab63 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/DynamicGenericResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66612a644fe399b4ab334c4e0b88ad6b 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/DynamicObjectResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7eab6f6294644784f8d124742fe95896 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/DynamicUnionResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83f2ef3faec448e48b6bd9c11020b315 3 | timeCreated: 1488099023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/NativeDateTimeResolver.cs: -------------------------------------------------------------------------------- 1 | using MessagePack.Formatters; 2 | using MessagePack.Internal; 3 | using System; 4 | 5 | namespace MessagePack.Resolvers 6 | { 7 | public sealed class NativeDateTimeResolver : IFormatterResolver 8 | { 9 | public static readonly IFormatterResolver Instance = new NativeDateTimeResolver(); 10 | 11 | NativeDateTimeResolver() 12 | { 13 | 14 | } 15 | 16 | public IMessagePackFormatter GetFormatter() 17 | { 18 | return FormatterCache.formatter; 19 | } 20 | 21 | static class FormatterCache 22 | { 23 | public static readonly IMessagePackFormatter formatter; 24 | 25 | static FormatterCache() 26 | { 27 | formatter = (IMessagePackFormatter)NativeDateTimeResolverGetFormatterHelper.GetFormatter(typeof(T)); 28 | } 29 | } 30 | } 31 | } 32 | 33 | namespace MessagePack.Internal 34 | { 35 | internal static class NativeDateTimeResolverGetFormatterHelper 36 | { 37 | internal static object GetFormatter(Type t) 38 | { 39 | if (t == typeof(DateTime)) 40 | { 41 | return NativeDateTimeFormatter.Instance; 42 | } 43 | else if (t == typeof(DateTime?)) 44 | { 45 | return new StaticNullableFormatter(NativeDateTimeFormatter.Instance); 46 | } 47 | else if (t == typeof(DateTime[])) 48 | { 49 | return NativeDateTimeArrayFormatter.Instance; 50 | } 51 | 52 | return null; 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/NativeDateTimeResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43c9611286d38a0479539bd6a5f8be1b 3 | timeCreated: 1490454679 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/OldSpecResolver.cs: -------------------------------------------------------------------------------- 1 | using MessagePack.Formatters; 2 | using MessagePack.Internal; 3 | using System; 4 | 5 | namespace MessagePack.Resolvers 6 | { 7 | public sealed class OldSpecResolver : IFormatterResolver 8 | { 9 | public static readonly IFormatterResolver Instance = new OldSpecResolver(); 10 | 11 | OldSpecResolver() 12 | { 13 | 14 | } 15 | 16 | public IMessagePackFormatter GetFormatter() 17 | { 18 | return FormatterCache.formatter; 19 | } 20 | 21 | static class FormatterCache 22 | { 23 | public static readonly IMessagePackFormatter formatter; 24 | 25 | static FormatterCache() 26 | { 27 | formatter = (IMessagePackFormatter)OldSpecResolverGetFormatterHelper.GetFormatter(typeof(T)); 28 | } 29 | } 30 | } 31 | } 32 | 33 | namespace MessagePack.Internal 34 | { 35 | internal static class OldSpecResolverGetFormatterHelper 36 | { 37 | internal static object GetFormatter(Type t) 38 | { 39 | if (t == typeof(string)) 40 | { 41 | return OldSpecStringFormatter.Instance; 42 | } 43 | else if (t == typeof(string[])) 44 | { 45 | return new ArrayFormatter(); 46 | } 47 | else if (t == typeof(byte[])) 48 | { 49 | return OldSpecBinaryFormatter.Instance; 50 | } 51 | 52 | return null; 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/OldSpecResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46363e307c987604ca814cf4032137c7 3 | timeCreated: 1490454679 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/PrimitiveObjectResolver.cs: -------------------------------------------------------------------------------- 1 | using MessagePack.Formatters; 2 | 3 | namespace MessagePack.Resolvers 4 | { 5 | public sealed class PrimitiveObjectResolver : IFormatterResolver 6 | { 7 | public static IFormatterResolver Instance = new PrimitiveObjectResolver(); 8 | 9 | PrimitiveObjectResolver() 10 | { 11 | 12 | } 13 | 14 | public IMessagePackFormatter GetFormatter() 15 | { 16 | return FormatterCache.formatter; 17 | } 18 | 19 | static class FormatterCache 20 | { 21 | public static readonly IMessagePackFormatter formatter; 22 | 23 | static FormatterCache() 24 | { 25 | formatter = (typeof(T) == typeof(object)) 26 | ? (IMessagePackFormatter)(object)PrimitiveObjectFormatter.Instance 27 | : null; 28 | } 29 | } 30 | } 31 | 32 | #if NETSTANDARD1_4 33 | 34 | /// 35 | /// In `object`, when serializing resolve by concrete type and when deserializing use primitive. 36 | /// 37 | public sealed class DynamicObjectTypeFallbackResolver : IFormatterResolver 38 | { 39 | public static IFormatterResolver Instance = new DynamicObjectTypeFallbackResolver(); 40 | 41 | DynamicObjectTypeFallbackResolver() 42 | { 43 | 44 | } 45 | 46 | public IMessagePackFormatter GetFormatter() 47 | { 48 | return FormatterCache.formatter; 49 | } 50 | 51 | static class FormatterCache 52 | { 53 | public static readonly IMessagePackFormatter formatter; 54 | 55 | static FormatterCache() 56 | { 57 | formatter = (typeof(T) == typeof(object)) 58 | ? (IMessagePackFormatter)(object)DynamicObjectTypeFallbackFormatter.Instance 59 | : null; 60 | } 61 | } 62 | } 63 | 64 | #endif 65 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/PrimitiveObjectResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44530b4fdf8e2c141910bb12cd991df4 3 | timeCreated: 1491398526 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/StandardResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f381af8868880548a0f19513111513c 3 | timeCreated: 1489030684 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/TypelessContractlessStandardResolver.cs: -------------------------------------------------------------------------------- 1 | #if NETSTANDARD1_4 2 | using MessagePack.Formatters; 3 | 4 | namespace MessagePack.Resolvers 5 | { 6 | /// 7 | /// Embed c# type names for `object` typed fields/collection items 8 | /// Preserve c# DateTime timezone 9 | /// 10 | public sealed class TypelessContractlessStandardResolver : IFormatterResolver 11 | { 12 | public static readonly IFormatterResolver Instance = new TypelessContractlessStandardResolver(); 13 | 14 | static readonly IFormatterResolver[] resolvers = new[] 15 | { 16 | NativeDateTimeResolver.Instance, // Native c# DateTime format, preserving timezone 17 | BuiltinResolver.Instance, // Try Builtin 18 | AttributeFormatterResolver.Instance, // Try use [MessagePackFormatter] 19 | #if !ENABLE_IL2CPP 20 | DynamicEnumResolver.Instance, // Try Enum 21 | DynamicGenericResolver.Instance, // Try Array, Tuple, Collection 22 | DynamicUnionResolver.Instance, // Try Union(Interface) 23 | DynamicObjectResolver.Instance, // Try Object 24 | #endif 25 | DynamicContractlessObjectResolver.Instance, // Serializes keys as strings 26 | TypelessObjectResolver.Instance 27 | }; 28 | 29 | TypelessContractlessStandardResolver() 30 | { 31 | } 32 | 33 | public IMessagePackFormatter GetFormatter() 34 | { 35 | return FormatterCache.formatter; 36 | } 37 | 38 | static class FormatterCache 39 | { 40 | public static readonly IMessagePackFormatter formatter; 41 | 42 | static FormatterCache() 43 | { 44 | foreach (var item in resolvers) 45 | { 46 | var f = item.GetFormatter(); 47 | if (f != null) 48 | { 49 | formatter = f; 50 | return; 51 | } 52 | } 53 | } 54 | } 55 | } 56 | } 57 | #endif -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/TypelessContractlessStandardResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef8d67bd12638c74f8a8afd901614e29 3 | timeCreated: 1498546040 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/TypelessObjectResolver.cs: -------------------------------------------------------------------------------- 1 | using MessagePack.Formatters; 2 | 3 | namespace MessagePack.Resolvers 4 | { 5 | #if NETSTANDARD1_4 6 | 7 | /// 8 | /// Used for `object` fields/collections, ex: var arr = new object[] { 1, "a", new Model() }; 9 | /// The runtime type of value in object field, should be covered by one of resolvers in complex/standard resolver. 10 | /// TypelessObjectResolver should be placed before DynamicObjectTypeFallbackResolver and PrimitiveObjectFormatter in resolvers list. 11 | /// Deserializer uses Namescape.TypeName, AssemblyName to get runtime type in destination app, so that combination must be present in destination app. 12 | /// Serialized binary is valid MessagePack binary used ext-format and custom typecode(100). 13 | /// Inside ext - assembly qualified type name, and serialized object 14 | /// 15 | public sealed class TypelessObjectResolver : IFormatterResolver 16 | { 17 | public static IFormatterResolver Instance = new TypelessObjectResolver(); 18 | 19 | TypelessObjectResolver() 20 | { 21 | 22 | } 23 | 24 | public IMessagePackFormatter GetFormatter() 25 | { 26 | return FormatterCache.formatter; 27 | } 28 | 29 | static class FormatterCache 30 | { 31 | public static readonly IMessagePackFormatter formatter; 32 | 33 | static FormatterCache() 34 | { 35 | formatter = (typeof(T) == typeof(object)) 36 | ? (IMessagePackFormatter)(object)TypelessFormatter.Instance 37 | : null; 38 | } 39 | } 40 | } 41 | 42 | #endif 43 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Resolvers/TypelessObjectResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1dc6f8cfe0805a348bc4f08b0b7feafe 3 | timeCreated: 1498546040 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Shims.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a53d934a6be781744bcbaf057286b081 3 | folderAsset: yes 4 | timeCreated: 1488102056 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Shims/Reflection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e876c4a49b0ee346ac8498687822e8c 3 | timeCreated: 1488102056 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/StringEncoding.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | 3 | namespace MessagePack 4 | { 5 | internal static class StringEncoding 6 | { 7 | public static readonly Encoding UTF8 = new UTF8Encoding(false); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/StringEncoding.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 657919f623d0dd24db9342f8c8695a65 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92b69c557585807449e9b4a38f5c1d27 3 | folderAsset: yes 4 | timeCreated: 1489030969 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Unity/Formatters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e94cd28b86c0b1d4eb04512289053ca1 3 | timeCreated: 1489131597 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Unity/UnityResolver.cs: -------------------------------------------------------------------------------- 1 | using MessagePack.Formatters; 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace MessagePack.Unity 7 | { 8 | public class UnityResolver : IFormatterResolver 9 | { 10 | public static IFormatterResolver Instance = new UnityResolver(); 11 | 12 | UnityResolver() 13 | { 14 | 15 | } 16 | 17 | public IMessagePackFormatter GetFormatter() 18 | { 19 | return FormatterCache.formatter; 20 | } 21 | 22 | static class FormatterCache 23 | { 24 | public static readonly IMessagePackFormatter formatter; 25 | 26 | static FormatterCache() 27 | { 28 | formatter = (IMessagePackFormatter)UnityResolveryResolverGetFormatterHelper.GetFormatter(typeof(T)); 29 | } 30 | } 31 | } 32 | 33 | internal static class UnityResolveryResolverGetFormatterHelper 34 | { 35 | static readonly Dictionary formatterMap = new Dictionary() 36 | { 37 | {typeof(Vector2), new Vector2Formatter()}, 38 | {typeof(Vector3), new Vector3Formatter()}, 39 | {typeof(Vector4), new Vector4Formatter()}, 40 | {typeof(Quaternion), new QuaternionFormatter()}, 41 | {typeof(Color), new ColorFormatter()}, 42 | {typeof(Bounds), new BoundsFormatter()}, 43 | {typeof(Rect), new RectFormatter()}, 44 | {typeof(Vector2?), new StaticNullableFormatter(new Vector2Formatter())}, 45 | {typeof(Vector3?), new StaticNullableFormatter(new Vector3Formatter())}, 46 | {typeof(Vector4?), new StaticNullableFormatter(new Vector4Formatter())}, 47 | {typeof(Quaternion?),new StaticNullableFormatter(new QuaternionFormatter())}, 48 | {typeof(Color?),new StaticNullableFormatter(new ColorFormatter())}, 49 | {typeof(Bounds?),new StaticNullableFormatter(new BoundsFormatter())}, 50 | {typeof(Rect?),new StaticNullableFormatter(new RectFormatter())}, 51 | }; 52 | 53 | internal static object GetFormatter(Type t) 54 | { 55 | object formatter; 56 | if (formatterMap.TryGetValue(t, out formatter)) 57 | { 58 | return formatter; 59 | } 60 | 61 | return null; 62 | } 63 | } 64 | } -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/Unity/UnityResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 733d31a001eda4046970bfb584dc6528 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/UnsafeExtensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc32d262ac7380d43ad03ad991e328d2 3 | folderAsset: yes 4 | timeCreated: 1488106309 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/UnsafeExtensions/UnityBlitResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ea339ccd31f0bb44bd4065fe4f98c6f 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/MessagePack/UnsafeExtensions/UnsafeBlitFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bff6051a0c51384488f2bc3d5dbd1757 3 | timeCreated: 1489131596 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/NetworkCube.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System; 4 | using UnityEngine; 5 | 6 | public class NetworkCube : MonoBehaviour { 7 | 8 | //The ID of the client that owns this player (so we can check if it's us updating) 9 | public ushort objectID; 10 | public bool DEBUG = true; 11 | 12 | Vector3 lastPosition = Vector3.zero; 13 | Vector3 nextPosition = Vector3.zero; 14 | Quaternion lastRotation = Quaternion.identity; 15 | Quaternion nextRotation = Quaternion.identity; 16 | Vector3 lastScale; 17 | 18 | // Use this for initialization 19 | void Start () { 20 | NetworkManager.OnReceiveMessageFromGameObjectUpdate += NetworkManager_OnReceiveMessageFromGameObjectUpdate; 21 | //Initialize 22 | lastPosition = transform.position; 23 | lastRotation = transform.rotation; 24 | } 25 | 26 | public IEnumerator ThisWillBeExecutedOnTheMainThread() 27 | { 28 | Debug.Log("This is executed from the main thread"); 29 | //transform.position = new Vector3(newMessage.GameObjectPos.x, newMessage.GameObjectPos.y, newMessage.GameObjectPos.z); 30 | lastPosition = nextPosition; 31 | transform.position = nextPosition; 32 | lastRotation = nextRotation; 33 | transform.rotation = nextRotation; 34 | //Add rotation 35 | yield return null; 36 | } 37 | 38 | void NetworkManager_OnReceiveMessageFromGameObjectUpdate (NetworkManager.ReceiveMessageFromGameObject newMessage) 39 | { 40 | Debug.Log ("Raise event in GameObject"); 41 | Debug.Log (newMessage.MessageType); 42 | Debug.Log (newMessage.GameObjectID); 43 | Debug.Log (newMessage.GameObjectPos); 44 | Debug.Log (newMessage.GameObjectRot); 45 | 46 | //Update pos and rot 47 | if (newMessage.GameObjectID == objectID) 48 | { 49 | nextPosition = new Vector3(newMessage.GameObjectPos.x, newMessage.GameObjectPos.y, newMessage.GameObjectPos.z); 50 | nextRotation = new Quaternion(newMessage.GameObjectRot.x, newMessage.GameObjectRot.y, newMessage.GameObjectRot.z, newMessage.GameObjectRot.w); 51 | UnityMainThreadDispatcher.Instance().Enqueue(ThisWillBeExecutedOnTheMainThread()); 52 | } 53 | } 54 | 55 | // Update is called once per frame 56 | void Update () { 57 | if ((Vector3.Distance(transform.position, lastPosition) > 0.05) || (Quaternion.Angle(transform.rotation, lastRotation) > 0.3)) 58 | { 59 | NetworkManager.instance.SendMessage(NetworkManager.SendType.SENDTOOTHER, NetworkManager.PacketId.OBJECT_MOVE, this.objectID, String.Empty, true ,transform.position, transform.rotation); 60 | //Update stuff 61 | lastPosition = transform.position; 62 | lastRotation = transform.rotation; 63 | } 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /Assets/Scripts/NetworkCube.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c6527b745af94a9a894e3982ca33a99 3 | timeCreated: 1500626999 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/NetworkManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9dd9223f521124a6b875db15f1ae2cc4 3 | timeCreated: 1500622894 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/NetworkPlayer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class NetworkPlayer : MonoBehaviour { 6 | 7 | //The UID of Player 8 | public string UID; 9 | public bool DEBUG = true; 10 | public bool LOCAL = false; 11 | 12 | Vector3 lastPosition = Vector3.zero; 13 | Vector3 nextPosition = Vector3.zero; 14 | Quaternion lastRotation = Quaternion.identity; 15 | Quaternion nextRotation = Quaternion.identity; 16 | Vector3 lastScale; 17 | 18 | // Use this for initialization 19 | void Start () { 20 | NetworkManager.OnReceiveMessageFromGameObjectUpdate += NetworkManager_OnReceiveMessageFromGameObjectUpdate; 21 | NetworkManager.OnDisconnectedClientUpdate += NetworkManager_OnDisconnectedClientUpdate; 22 | //Initialize 23 | if (LOCAL) 24 | { 25 | lastPosition = transform.localPosition; 26 | lastRotation = transform.localRotation; 27 | } 28 | else 29 | { 30 | lastPosition = transform.position; 31 | lastRotation = transform.rotation; 32 | } 33 | } 34 | 35 | void NetworkManager_OnDisconnectedClientUpdate (NetworkManager.DisconnectedClientToDestroyPlayerGameObject newMessage) 36 | { 37 | if (newMessage.PlayerGameObjectUID == this.UID) 38 | { 39 | UnityMainThreadDispatcher.Instance().Enqueue(DestroyGameObjectOnTheMainThread()); 40 | Debug.Log ("Raise event in Player GameObject"); 41 | } 42 | } 43 | 44 | public IEnumerator ThisWillBeExecutedOnTheMainThread() 45 | { 46 | //Debug.Log("This is executed from the main thread"); //DEBUG 47 | //transform.position = new Vector3(newMessage.GameObjectPos.x, newMessage.GameObjectPos.y, newMessage.GameObjectPos.z); 48 | lastPosition = nextPosition; 49 | lastRotation = nextRotation; 50 | if (LOCAL) 51 | { 52 | transform.localPosition = nextPosition; 53 | transform.localRotation = nextRotation; 54 | } 55 | else 56 | { 57 | transform.position = nextPosition; 58 | transform.rotation = nextRotation; 59 | } 60 | yield return null; 61 | } 62 | 63 | public IEnumerator DestroyGameObjectOnTheMainThread() 64 | { 65 | Destroy (gameObject); 66 | Debug.Log ("Destroy Player GameObject"); 67 | yield return null; 68 | } 69 | 70 | void NetworkManager_OnReceiveMessageFromGameObjectUpdate (NetworkManager.ReceiveMessageFromGameObject newMessage) 71 | { 72 | if (DEBUG) 73 | { 74 | Debug.Log ("Raise event in Player GameObject"); 75 | Debug.Log (newMessage.MessageType); 76 | Debug.Log (newMessage.GamePlayerObjectOwner); 77 | Debug.Log (newMessage.GameObjectPos); 78 | Debug.Log (newMessage.GameObjectRot); 79 | } 80 | //Update pos and rot 81 | if (newMessage.GamePlayerObjectOwner == UID) 82 | { 83 | nextPosition = new Vector3(newMessage.GameObjectPos.x, newMessage.GameObjectPos.y, newMessage.GameObjectPos.z); 84 | nextRotation = new Quaternion(newMessage.GameObjectRot.x, newMessage.GameObjectRot.y, newMessage.GameObjectRot.z, newMessage.GameObjectRot.w); 85 | UnityMainThreadDispatcher.Instance().Enqueue(ThisWillBeExecutedOnTheMainThread()); 86 | } 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /Assets/Scripts/NetworkPlayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9dc57726b21f417a90ac56ce831ade7 3 | timeCreated: 1504532102 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/NewtorkPlayerME.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System; 4 | using UnityEngine; 5 | 6 | public class NewtorkPlayerME : MonoBehaviour { 7 | 8 | //The UID of Player 9 | public string UID = String.Empty; //NOT WORKING? 10 | public bool DEBUG = true; 11 | public bool LOCAL = false; 12 | 13 | Vector3 lastPosition = Vector3.zero; 14 | Vector3 nextPosition = Vector3.zero; 15 | Quaternion lastRotation = Quaternion.identity; 16 | Quaternion nextRotation = Quaternion.identity; 17 | Vector3 lastScale; 18 | 19 | // Use this for initialization 20 | void Start () 21 | { 22 | //Initialize 23 | if (LOCAL) 24 | { 25 | lastPosition = transform.localPosition; 26 | lastRotation = transform.localRotation; 27 | } 28 | else 29 | { 30 | lastPosition = transform.position; 31 | lastRotation = transform.rotation; 32 | } 33 | //SendMessage NOT HERE! 34 | //NetworkManager.instance.SendMessage(NetworkManager.SendType.SENDTOOTHER, NetworkManager.PacketId.PLAYER_JOIN, 0, this.UID, true, lastPosition, lastRotation); 35 | } 36 | 37 | // Update is called once per frame 38 | void Update () 39 | { 40 | if (LOCAL) 41 | { 42 | if ((Vector3.Distance(transform.localPosition, lastPosition) > 0.05) || (Quaternion.Angle(transform.localRotation, lastRotation) > 0.3)) 43 | { 44 | NetworkManager.instance.SendMessage(NetworkManager.SendType.SENDTOOTHER, NetworkManager.PacketId.PLAYER_MOVE, 0, this.UID, true, transform.localPosition, transform.localRotation); 45 | //Update stuff 46 | lastPosition = transform.localPosition; 47 | lastRotation = transform.localRotation; 48 | } 49 | } 50 | else 51 | { 52 | if ((Vector3.Distance(transform.position, lastPosition) > 0.05) || (Quaternion.Angle(transform.rotation, lastRotation) > 0.3)) 53 | { 54 | NetworkManager.instance.SendMessage(NetworkManager.SendType.SENDTOOTHER, NetworkManager.PacketId.PLAYER_MOVE, 0, this.UID, true, transform.position, transform.rotation); 55 | //Update stuff 56 | lastPosition = transform.position; 57 | lastRotation = transform.rotation; 58 | } 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /Assets/Scripts/NewtorkPlayerME.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 678e9185ff21d4dd9b5abeb65c251577 3 | timeCreated: 1504531959 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/SaveSchemaHazel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77d221018b36e6145a16264322fc8c8c 3 | timeCreated: 1504254144 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/SaveSchemaHazelMessage.cs: -------------------------------------------------------------------------------- 1 | // automatically generated, do not modify 2 | 3 | namespace HazelMessage 4 | { 5 | 6 | using FlatBuffers; 7 | 8 | public sealed class HMessage : Table { 9 | public static HMessage GetRootAsHMessage(ByteBuffer _bb) { return GetRootAsHMessage(_bb, new HMessage()); } 10 | public static HMessage GetRootAsHMessage(ByteBuffer _bb, HMessage obj) { return (obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } 11 | public HMessage __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; } 12 | 13 | public sbyte Command { get { int o = __offset(4); return o != 0 ? bb.GetSbyte(o + bb_pos) : (sbyte)0; } } 14 | public string Answer { get { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; } } 15 | 16 | public static Offset CreateHMessage(FlatBufferBuilder builder, 17 | sbyte Command = 0, 18 | StringOffset Answer = default(StringOffset)) { 19 | builder.StartObject(2); 20 | HMessage.AddAnswer(builder, Answer); 21 | HMessage.AddCommand(builder, Command); 22 | return HMessage.EndHMessage(builder); 23 | } 24 | 25 | public static void StartHMessage(FlatBufferBuilder builder) { builder.StartObject(2); } 26 | public static void AddCommand(FlatBufferBuilder builder, sbyte Command) { builder.AddSbyte(0, Command, 0); } 27 | public static void AddAnswer(FlatBufferBuilder builder, StringOffset AnswerOffset) { builder.AddOffset(1, AnswerOffset.Value, 0); } 28 | public static Offset EndHMessage(FlatBufferBuilder builder) { 29 | int o = builder.EndObject(); 30 | return new Offset(o); 31 | } 32 | public static void FinishHMessageBuffer(FlatBufferBuilder builder, Offset offset) { builder.Finish(offset.Value); } 33 | }; 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Assets/Scripts/SaveSchemaHazelMessage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fd04d7410e0b4dad91d5177083333e2 3 | timeCreated: 1504254157 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/UnityMainThreadDispatcher.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 Pim de Witte All Rights Reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | using UnityEngine; 18 | using System.Collections; 19 | using System.Collections.Generic; 20 | using System; 21 | 22 | /// Author: Pim de Witte (pimdewitte.com) and contributors 23 | /// 24 | /// A thread-safe class which holds a queue with actions to execute on the next Update() method. It can be used to make calls to the main thread for 25 | /// things such as UI Manipulation in Unity. It was developed for use in combination with the Firebase Unity plugin, which uses separate threads for event handling 26 | /// 27 | public class UnityMainThreadDispatcher : MonoBehaviour { 28 | 29 | private static readonly Queue _executionQueue = new Queue(); 30 | 31 | public void Update() { 32 | lock(_executionQueue) { 33 | while (_executionQueue.Count > 0) { 34 | _executionQueue.Dequeue().Invoke(); 35 | } 36 | } 37 | } 38 | 39 | /// 40 | /// Locks the queue and adds the IEnumerator to the queue 41 | /// 42 | /// IEnumerator function that will be executed from the main thread. 43 | public void Enqueue(IEnumerator action) { 44 | lock (_executionQueue) { 45 | _executionQueue.Enqueue (() => { 46 | StartCoroutine (action); 47 | }); 48 | } 49 | } 50 | 51 | /// 52 | /// Locks the queue and adds the Action to the queue 53 | /// 54 | /// function that will be executed from the main thread. 55 | public void Enqueue(Action action) 56 | { 57 | Enqueue(ActionWrapper(action)); 58 | } 59 | IEnumerator ActionWrapper(Action a) 60 | { 61 | a(); 62 | yield return null; 63 | } 64 | 65 | 66 | private static UnityMainThreadDispatcher _instance = null; 67 | 68 | public static bool Exists() { 69 | return _instance != null; 70 | } 71 | 72 | public static UnityMainThreadDispatcher Instance() { 73 | if (!Exists ()) { 74 | throw new Exception ("UnityMainThreadDispatcher could not find the UnityMainThreadDispatcher object. Please ensure you have added the MainThreadExecutor Prefab to your scene."); 75 | } 76 | return _instance; 77 | } 78 | 79 | 80 | void Awake() { 81 | if (_instance == null) { 82 | _instance = this; 83 | DontDestroyOnLoad(this.gameObject); 84 | } 85 | } 86 | 87 | void OnDestroy() { 88 | _instance = null; 89 | } 90 | 91 | 92 | } 93 | -------------------------------------------------------------------------------- /Assets/Scripts/UnityMainThreadDispatcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6de62bf2339434b4e9a12ea4ce3c064d 3 | timeCreated: 1501522013 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Images/2017-08-04 10_29_34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vytek/HazelTestUDPClientUnity/f9d23434d7afd500eb7142f17e075bf7780a6617/Images/2017-08-04 10_29_34.gif -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Enrico Speranza 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | m_AutoSimulation: 1 20 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 0 9 | path: Assets/Scenes/MainScene.unity 10 | guid: e8d619a08602f422fb15f958b8565fab 11 | - enabled: 1 12 | path: Assets/Scenes/MainSceneRotation.unity 13 | guid: cecd01d0c9c0b4c00863b68e3926eb0a 14 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_DefaultBehaviorMode: 0 10 | m_SpritePackerMode: 0 11 | m_SpritePackerPaddingPower: 1 12 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 13 | m_ProjectGenerationRootNamespace: 14 | m_UserGeneratedProjectSuffix: 15 | m_CollabEditorSettings: 16 | inProgressEnabled: 1 17 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 40 | m_PreloadedShaders: [] 41 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 42 | type: 0} 43 | m_CustomRenderPipeline: {fileID: 0} 44 | m_TransparencySortMode: 0 45 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 46 | m_DefaultRenderingPath: 1 47 | m_DefaultMobileRenderingPath: 1 48 | m_TierSettings: [] 49 | m_LightmapStripping: 0 50 | m_FogStripping: 0 51 | m_InstancingStripping: 0 52 | m_LightmapKeepPlain: 1 53 | m_LightmapKeepDirCombined: 1 54 | m_LightmapKeepDynamicPlain: 1 55 | m_LightmapKeepDynamicDirCombined: 1 56 | m_LightmapKeepShadowMask: 1 57 | m_LightmapKeepSubtractive: 1 58 | m_FogKeepLinear: 1 59 | m_FogKeepExp: 1 60 | m_FogKeepExp2: 1 61 | m_AlbedoSwatchInfos: [] 62 | m_LightsUseLinearIntensity: 0 63 | m_LightsUseColorTemperature: 0 64 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | m_SettingNames: 89 | - Humanoid 90 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AlwaysShowColliders: 0 28 | m_ShowColliderSleep: 1 29 | m_ShowColliderContacts: 0 30 | m_ShowColliderAABB: 0 31 | m_ContactArrowScale: 0.2 32 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 33 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 34 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 35 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 36 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 37 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.1.0f3 2 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - GizmoLayer 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_Enabled: 0 14 | m_CaptureEditorExceptions: 1 15 | UnityPurchasingSettings: 16 | m_Enabled: 0 17 | m_TestMode: 0 18 | UnityAnalyticsSettings: 19 | m_Enabled: 0 20 | m_InitializeOnStartup: 1 21 | m_TestMode: 0 22 | m_TestEventUrl: 23 | m_TestConfigUrl: 24 | UnityAdsSettings: 25 | m_Enabled: 0 26 | m_InitializeOnStartup: 1 27 | m_TestMode: 0 28 | m_EnabledPlatforms: 4294967295 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HazelTestUDPClientUnity 2 | Unity Test Client Hazel UDP 3 | 4 | This is a Networking Demo based on: 5 | 6 | - https://github.com/DarkRiftNetworking/Hazel-Networking (MIT License) 7 | - https://github.com/Vytek/HazelTest 8 | - Stub from: https://forum.unity3d.com/threads/hazel-networking-open-source-rudp-tcp-library.409863/page-2#post-3006994 (Thanks JoeStrout) 9 | 10 | Projects used: 11 | 12 | - https://google.github.io/flatbuffers/ (Apache License, Version 2.0) 13 | - http://exiin.com/blog/flatbuffers-for-unity-sample-code/ 14 | - https://github.com/neuecc/MessagePack-CSharp (MIT License) 15 | - https://github.com/CaptainHillman/UnityTools (MIT Licence) 16 | - https://github.com/HiddenMonk/Unity3DRuntimeTransformGizmo (MIT Licence) 17 | - https://github.com/PimDeWitte/UnityMainThreadDispatcher (Apache License, Version 2.0) 18 | - https://github.com/Deadcows/CustomLogger 19 | - ScreenLogger Unity Assets: https://www.assetstore.unity3d.com/en/#!/content/49114 20 | 21 | ![Test Example](https://github.com/Vytek/HazelTestUDPClientUnity/blob/master/Images/2017-08-04%2010_29_34.gif) 22 | 23 | ## How to test 24 | 25 | 1. Clone this repo: [https://github.com/Vytek/HazelTest](https://github.com/Vytek/HazelTest) 26 | 2. Compile project using Monodevelop or Visual Studio 2015. 27 | 3. Start "https://github.com/Vytek/HazelTest/tree/master/HazelUDPTestSuperServer". For example: "mono HazelUDPtestSuperServer.exe". 28 | 4. Build and run Client One. WARNING: Its a default in Unity to pause the game when it's not in focus, you can change this in Edit -> Project Settings -> Player -> Resolution and Presentation -> Run In Background (see: https://forum.unity3d.com/threads/darkrift-fast-and-flexible-cross-platform-networking.320185/) 29 | 5. Run Unity Editor Project for Client Two. 30 | 6. Move cube on screen using runtime gizmo. 31 | 32 | ## Pull requests 33 | 34 | 1. [Fork] the project, clone your fork, and configure the remotes. 35 | 2. Create a new topic branch (from `master`) to contain your feature, 36 | chore, or fix. 37 | 3. Commit your changes in logical units. 38 | 4. Push your topic branch up to your fork. 39 | 5. [Open a Pull Request] with a clear title and description. 40 | 41 | ## Licenses 42 | 43 | - **Only the code in `Assets/Scripts` is released under the MIT license** 44 | - Other code libraries in `Assets/Libraries` all come with their own licenses 45 | - Any binary resources are more or less there on a "fair use" basis, **don't assume that you can just copy and use them** 46 | --------------------------------------------------------------------------------