├── .gitattributes ├── .gitignore ├── Assets ├── Plugin.meta ├── Plugin │ ├── Linux.meta │ ├── Linux │ │ ├── libstlrust.so │ │ └── libstlrust.so.meta │ ├── Windows.meta │ ├── Windows │ │ ├── stlrust.dll │ │ └── stlrust.dll.meta │ ├── macOS.meta │ └── macOS │ │ ├── stlrust.bundle │ │ └── stlrust.bundle.meta ├── StlMeshData.cs ├── StlMeshData.cs.meta ├── StlMeshDataExtensions.cs ├── StlMeshDataExtensions.cs.meta ├── StlMeshLoader.cs ├── StlMeshLoader.cs.meta ├── StreamingAssets.meta ├── StreamingAssets │ ├── 3DBenchy.stl │ └── 3DBenchy.stl.meta ├── Surface.mat ├── Surface.mat.meta ├── Test.unity └── Test.unity.meta ├── Packages ├── manifest.json └── packages-lock.json ├── Plugin ├── Cargo.toml ├── build.sh └── src │ └── lib.rs ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Packages │ └── com.unity.testtools.codecoverage │ │ └── Settings.json ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset ├── XRSettings.asset └── boot.config └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | 3 | *.cs text eol=lf diff=csharp 4 | *.shader text eol=lf 5 | *.cginc text eol=lf 6 | *.hlsl text eol=lf 7 | *.compute text eol=lf 8 | 9 | *.meta text eol=lf 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Thumbs.db 2 | Desktop.ini 3 | .DS_Store 4 | *.swp 5 | 6 | /Library 7 | /Logs 8 | /Recordings 9 | /Temp 10 | /UserSettings 11 | 12 | /Plugin/*.bundle 13 | /Plugin/*.lock 14 | /Plugin/target 15 | -------------------------------------------------------------------------------- /Assets/Plugin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4ef2094d11a441a28ccdfec8ac47682 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugin/Linux.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2d271b6d830074668fb002d9054ad7d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugin/Linux/libstlrust.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustStl/9d305c7f013201d3965a253e582b24f1d17cc636/Assets/Plugin/Linux/libstlrust.so -------------------------------------------------------------------------------- /Assets/Plugin/Linux/libstlrust.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca4567504e35ef1e29e37d63c47c0233 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 0 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 0 24 | Exclude Win64: 0 25 | - first: 26 | Android: Android 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: ARMv7 31 | - first: 32 | Any: 33 | second: 34 | enabled: 0 35 | settings: {} 36 | - first: 37 | Editor: Editor 38 | second: 39 | enabled: 1 40 | settings: 41 | CPU: x86_64 42 | DefaultValueInitialized: true 43 | OS: Linux 44 | - first: 45 | Standalone: Linux64 46 | second: 47 | enabled: 1 48 | settings: 49 | CPU: x86_64 50 | - first: 51 | Standalone: OSXUniversal 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | - first: 57 | Standalone: Win 58 | second: 59 | enabled: 1 60 | settings: 61 | CPU: x86 62 | - first: 63 | Standalone: Win64 64 | second: 65 | enabled: 1 66 | settings: 67 | CPU: x86_64 68 | userData: 69 | assetBundleName: 70 | assetBundleVariant: 71 | -------------------------------------------------------------------------------- /Assets/Plugin/Windows.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69181f6675cd17e44aa13259a978a480 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugin/Windows/stlrust.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustStl/9d305c7f013201d3965a253e582b24f1d17cc636/Assets/Plugin/Windows/stlrust.dll -------------------------------------------------------------------------------- /Assets/Plugin/Windows/stlrust.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56783deba4dea1942bd013f78901b526 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 0 20 | Exclude Linux64: 0 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 1 23 | Exclude Win64: 0 24 | - first: 25 | Any: 26 | second: 27 | enabled: 0 28 | settings: {} 29 | - first: 30 | Editor: Editor 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: x86_64 35 | DefaultValueInitialized: true 36 | OS: Windows 37 | - first: 38 | Standalone: Linux64 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: AnyCPU 43 | - first: 44 | Standalone: OSXUniversal 45 | second: 46 | enabled: 1 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: Win 51 | second: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | - first: 56 | Standalone: Win64 57 | second: 58 | enabled: 1 59 | settings: 60 | CPU: x86_64 61 | userData: 62 | assetBundleName: 63 | assetBundleVariant: 64 | -------------------------------------------------------------------------------- /Assets/Plugin/macOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 128e8ad87164c4623a0f85ede40b6f5f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugin/macOS/stlrust.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustStl/9d305c7f013201d3965a253e582b24f1d17cc636/Assets/Plugin/macOS/stlrust.bundle -------------------------------------------------------------------------------- /Assets/Plugin/macOS/stlrust.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 89f84e605d8a543c3a1f935c1b7a43d8 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Standalone: OSXUniversal 27 | second: 28 | enabled: 1 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Assets/StlMeshData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using Microsoft.Win32.SafeHandles; 4 | 5 | namespace StlRust { 6 | 7 | public sealed class StlMeshData : SafeHandleZeroOrMinusOneIsInvalid 8 | { 9 | #region SafeHandle implementation 10 | 11 | StlMeshData() : base(true) {} 12 | 13 | protected override bool ReleaseHandle() 14 | { 15 | stlrust_close(handle); 16 | return true; 17 | } 18 | 19 | #endregion 20 | 21 | #region Public methods 22 | 23 | public static StlMeshData Open(string path) => stlrust_open(path); 24 | 25 | public int VertexCount => (int)stlrust_get_vertex_count(this); 26 | public int IndexCount => (int)stlrust_get_index_count(this); 27 | 28 | public IntPtr VertexDataPointer 29 | => stlrust_get_vertex_pointer(this); 30 | 31 | public void CopyIndexArray(IntPtr ptr, uint size) 32 | => stlrust_copy_index_array(this, ptr, size); 33 | 34 | #endregion 35 | 36 | #region Unmanaged interface 37 | 38 | #if !UNITY_EDITOR && (UNITY_IOS || UNITY_WEBGL) 39 | const string _dll = "__Internal"; 40 | #else 41 | const string _dll = "stlrust"; 42 | #endif 43 | 44 | [DllImport(_dll)] static extern 45 | StlMeshData stlrust_open(string path); 46 | 47 | [DllImport(_dll)] static extern 48 | void stlrust_close(IntPtr ptr); 49 | 50 | [DllImport(_dll)] static extern 51 | uint stlrust_get_vertex_count(StlMeshData self); 52 | 53 | [DllImport(_dll)] static extern 54 | uint stlrust_get_index_count(StlMeshData self); 55 | 56 | [DllImport(_dll)] static extern 57 | IntPtr stlrust_get_vertex_pointer(StlMeshData self); 58 | 59 | [DllImport(_dll)] static extern 60 | void stlrust_copy_index_array(StlMeshData self, IntPtr buffer, uint size); 61 | 62 | #endregion 63 | } 64 | 65 | } // namespace StlRust 66 | -------------------------------------------------------------------------------- /Assets/StlMeshData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64b82bfa308474667a19fe877fda620a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/StlMeshDataExtensions.cs: -------------------------------------------------------------------------------- 1 | using Unity.Collections; 2 | using Unity.Collections.LowLevel.Unsafe; 3 | using Vector3 = UnityEngine.Vector3; 4 | using IntPtr = System.IntPtr; 5 | 6 | namespace StlRust { 7 | 8 | public static class StlMeshDataNativeArrayExtension 9 | { 10 | #if ENABLE_UNITY_COLLECTIONS_CHECKS 11 | static AtomicSafetyHandle _guard; 12 | static bool _initialized; 13 | #endif 14 | 15 | public unsafe static NativeArray 16 | GetVerticesAsNativeArray(this StlMeshData self) 17 | { 18 | var array = 19 | NativeArrayUnsafeUtility.ConvertExistingDataToNativeArray 20 | ((void*)self.VertexDataPointer, self.VertexCount, Allocator.None); 21 | 22 | #if ENABLE_UNITY_COLLECTIONS_CHECKS 23 | if (!_initialized) 24 | { 25 | _guard = AtomicSafetyHandle.Create(); 26 | _initialized = true; 27 | } 28 | 29 | NativeArrayUnsafeUtility.SetAtomicSafetyHandle(ref array, _guard); 30 | #endif 31 | 32 | return array; 33 | } 34 | 35 | public unsafe static NativeArray 36 | GetIndicesAsNativeArray(this StlMeshData self) 37 | { 38 | var array = 39 | new NativeArray 40 | (self.IndexCount, Allocator.Persistent, 41 | NativeArrayOptions.UninitializedMemory); 42 | 43 | self.CopyIndexArray((IntPtr)array.GetUnsafePtr(), (uint)array.Length); 44 | 45 | return array; 46 | } 47 | } 48 | 49 | } // namespace StlRust 50 | -------------------------------------------------------------------------------- /Assets/StlMeshDataExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42c16bd8c69df4a32b7701050f317e63 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/StlMeshLoader.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using StlRust; 3 | 4 | public sealed class StlMeshLoader : MonoBehaviour 5 | { 6 | [SerializeField] string _filename = "3DBenchy.stl"; 7 | 8 | string FilePath => Application.streamingAssetsPath + "/" + _filename; 9 | 10 | void Start() 11 | { 12 | using var stl = StlMeshData.Open(FilePath); 13 | using var vertices = stl.GetVerticesAsNativeArray(); 14 | using var indices = stl.GetIndicesAsNativeArray(); 15 | 16 | var mesh = new Mesh(); 17 | mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32; 18 | mesh.SetVertices(vertices); 19 | mesh.SetIndices(indices, MeshTopology.Triangles, 0, true); 20 | mesh.RecalculateNormals(); 21 | mesh.UploadMeshData(true); 22 | 23 | GetComponent().sharedMesh = mesh; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Assets/StlMeshLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7561918dd2d11432880d8df3ec6398cf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/StreamingAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5bd2c0034461641cab6928820f0ab076 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/StreamingAssets/3DBenchy.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustStl/9d305c7f013201d3965a253e582b24f1d17cc636/Assets/StreamingAssets/3DBenchy.stl -------------------------------------------------------------------------------- /Assets/StreamingAssets/3DBenchy.stl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a489e8f8e48f6492c94870cebab3069f 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Surface.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_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: Surface 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 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_Ints: [] 59 | m_Floats: 60 | - _BumpScale: 1 61 | - _Cutoff: 0.5 62 | - _DetailNormalMapScale: 1 63 | - _DstBlend: 0 64 | - _GlossMapScale: 1 65 | - _Glossiness: 0 66 | - _GlossyReflections: 1 67 | - _Metallic: 0 68 | - _Mode: 0 69 | - _OcclusionStrength: 1 70 | - _Parallax: 0.02 71 | - _SmoothnessTextureChannel: 0 72 | - _SpecularHighlights: 1 73 | - _SrcBlend: 1 74 | - _UVSec: 0 75 | - _ZWrite: 1 76 | m_Colors: 77 | - _Color: {r: 1, g: 1, b: 1, a: 1} 78 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 79 | m_BuildTextureStacks: [] 80 | -------------------------------------------------------------------------------- /Assets/Surface.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7cac84aa03e44e12b7825d478679deb 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Test.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0, g: 0, b: 0, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 1 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &276272610 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 276272614} 135 | - component: {fileID: 276272615} 136 | - component: {fileID: 276272613} 137 | - component: {fileID: 276272612} 138 | m_Layer: 0 139 | m_Name: Mesh 140 | m_TagString: Untagged 141 | m_Icon: {fileID: 0} 142 | m_NavMeshLayer: 0 143 | m_StaticEditorFlags: 0 144 | m_IsActive: 1 145 | --- !u!23 &276272612 146 | MeshRenderer: 147 | m_ObjectHideFlags: 0 148 | m_CorrespondingSourceObject: {fileID: 0} 149 | m_PrefabInstance: {fileID: 0} 150 | m_PrefabAsset: {fileID: 0} 151 | m_GameObject: {fileID: 276272610} 152 | m_Enabled: 1 153 | m_CastShadows: 1 154 | m_ReceiveShadows: 1 155 | m_DynamicOccludee: 1 156 | m_StaticShadowCaster: 0 157 | m_MotionVectors: 1 158 | m_LightProbeUsage: 1 159 | m_ReflectionProbeUsage: 1 160 | m_RayTracingMode: 2 161 | m_RayTraceProcedural: 0 162 | m_RenderingLayerMask: 1 163 | m_RendererPriority: 0 164 | m_Materials: 165 | - {fileID: 2100000, guid: a7cac84aa03e44e12b7825d478679deb, type: 2} 166 | m_StaticBatchInfo: 167 | firstSubMesh: 0 168 | subMeshCount: 0 169 | m_StaticBatchRoot: {fileID: 0} 170 | m_ProbeAnchor: {fileID: 0} 171 | m_LightProbeVolumeOverride: {fileID: 0} 172 | m_ScaleInLightmap: 1 173 | m_ReceiveGI: 1 174 | m_PreserveUVs: 0 175 | m_IgnoreNormalsForChartDetection: 0 176 | m_ImportantGI: 0 177 | m_StitchLightmapSeams: 1 178 | m_SelectedEditorRenderState: 3 179 | m_MinimumChartSize: 4 180 | m_AutoUVMaxDistance: 0.5 181 | m_AutoUVMaxAngle: 89 182 | m_LightmapParameters: {fileID: 0} 183 | m_SortingLayerID: 0 184 | m_SortingLayer: 0 185 | m_SortingOrder: 0 186 | m_AdditionalVertexStreams: {fileID: 0} 187 | --- !u!33 &276272613 188 | MeshFilter: 189 | m_ObjectHideFlags: 0 190 | m_CorrespondingSourceObject: {fileID: 0} 191 | m_PrefabInstance: {fileID: 0} 192 | m_PrefabAsset: {fileID: 0} 193 | m_GameObject: {fileID: 276272610} 194 | m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} 195 | --- !u!4 &276272614 196 | Transform: 197 | m_ObjectHideFlags: 0 198 | m_CorrespondingSourceObject: {fileID: 0} 199 | m_PrefabInstance: {fileID: 0} 200 | m_PrefabAsset: {fileID: 0} 201 | m_GameObject: {fileID: 276272610} 202 | m_LocalRotation: {x: 0, y: 0.7071068, z: 0.7071068, w: 0} 203 | m_LocalPosition: {x: 0, y: 0, z: 0} 204 | m_LocalScale: {x: 0.01, y: 0.01, z: 0.01} 205 | m_ConstrainProportionsScale: 0 206 | m_Children: [] 207 | m_Father: {fileID: 0} 208 | m_RootOrder: 2 209 | m_LocalEulerAnglesHint: {x: -90, y: 180, z: 0} 210 | --- !u!114 &276272615 211 | MonoBehaviour: 212 | m_ObjectHideFlags: 0 213 | m_CorrespondingSourceObject: {fileID: 0} 214 | m_PrefabInstance: {fileID: 0} 215 | m_PrefabAsset: {fileID: 0} 216 | m_GameObject: {fileID: 276272610} 217 | m_Enabled: 1 218 | m_EditorHideFlags: 0 219 | m_Script: {fileID: 11500000, guid: 7561918dd2d11432880d8df3ec6398cf, type: 3} 220 | m_Name: 221 | m_EditorClassIdentifier: 222 | --- !u!1 &341897856 223 | GameObject: 224 | m_ObjectHideFlags: 0 225 | m_CorrespondingSourceObject: {fileID: 0} 226 | m_PrefabInstance: {fileID: 0} 227 | m_PrefabAsset: {fileID: 0} 228 | serializedVersion: 6 229 | m_Component: 230 | - component: {fileID: 341897858} 231 | - component: {fileID: 341897857} 232 | m_Layer: 0 233 | m_Name: Key Light 234 | m_TagString: Untagged 235 | m_Icon: {fileID: 0} 236 | m_NavMeshLayer: 0 237 | m_StaticEditorFlags: 0 238 | m_IsActive: 1 239 | --- !u!108 &341897857 240 | Light: 241 | m_ObjectHideFlags: 0 242 | m_CorrespondingSourceObject: {fileID: 0} 243 | m_PrefabInstance: {fileID: 0} 244 | m_PrefabAsset: {fileID: 0} 245 | m_GameObject: {fileID: 341897856} 246 | m_Enabled: 1 247 | serializedVersion: 10 248 | m_Type: 1 249 | m_Shape: 0 250 | m_Color: {r: 1, g: 1, b: 1, a: 1} 251 | m_Intensity: 0.7 252 | m_Range: 10 253 | m_SpotAngle: 30 254 | m_InnerSpotAngle: 21.80208 255 | m_CookieSize: 10 256 | m_Shadows: 257 | m_Type: 2 258 | m_Resolution: -1 259 | m_CustomResolution: -1 260 | m_Strength: 1 261 | m_Bias: 0.05 262 | m_NormalBias: 0.4 263 | m_NearPlane: 0.2 264 | m_CullingMatrixOverride: 265 | e00: 1 266 | e01: 0 267 | e02: 0 268 | e03: 0 269 | e10: 0 270 | e11: 1 271 | e12: 0 272 | e13: 0 273 | e20: 0 274 | e21: 0 275 | e22: 1 276 | e23: 0 277 | e30: 0 278 | e31: 0 279 | e32: 0 280 | e33: 1 281 | m_UseCullingMatrixOverride: 0 282 | m_Cookie: {fileID: 0} 283 | m_DrawHalo: 0 284 | m_Flare: {fileID: 0} 285 | m_RenderMode: 0 286 | m_CullingMask: 287 | serializedVersion: 2 288 | m_Bits: 4294967295 289 | m_RenderingLayerMask: 1 290 | m_Lightmapping: 4 291 | m_LightShadowCasterMode: 0 292 | m_AreaSize: {x: 1, y: 1} 293 | m_BounceIntensity: 1 294 | m_ColorTemperature: 6570 295 | m_UseColorTemperature: 0 296 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 297 | m_UseBoundingSphereOverride: 0 298 | m_UseViewFrustumForShadowCasterCull: 1 299 | m_ShadowRadius: 0 300 | m_ShadowAngle: 0 301 | --- !u!4 &341897858 302 | Transform: 303 | m_ObjectHideFlags: 0 304 | m_CorrespondingSourceObject: {fileID: 0} 305 | m_PrefabInstance: {fileID: 0} 306 | m_PrefabAsset: {fileID: 0} 307 | m_GameObject: {fileID: 341897856} 308 | m_LocalRotation: {x: 0.5735764, y: -0, z: -0, w: 0.8191521} 309 | m_LocalPosition: {x: 0, y: 0, z: 0} 310 | m_LocalScale: {x: 1, y: 1, z: 1} 311 | m_ConstrainProportionsScale: 0 312 | m_Children: [] 313 | m_Father: {fileID: 2115558446} 314 | m_RootOrder: 0 315 | m_LocalEulerAnglesHint: {x: 70, y: 0, z: 0} 316 | --- !u!1 &857472158 317 | GameObject: 318 | m_ObjectHideFlags: 0 319 | m_CorrespondingSourceObject: {fileID: 0} 320 | m_PrefabInstance: {fileID: 0} 321 | m_PrefabAsset: {fileID: 0} 322 | serializedVersion: 6 323 | m_Component: 324 | - component: {fileID: 857472160} 325 | - component: {fileID: 857472159} 326 | m_Layer: 0 327 | m_Name: Camera 328 | m_TagString: MainCamera 329 | m_Icon: {fileID: 0} 330 | m_NavMeshLayer: 0 331 | m_StaticEditorFlags: 0 332 | m_IsActive: 1 333 | --- !u!20 &857472159 334 | Camera: 335 | m_ObjectHideFlags: 0 336 | m_CorrespondingSourceObject: {fileID: 0} 337 | m_PrefabInstance: {fileID: 0} 338 | m_PrefabAsset: {fileID: 0} 339 | m_GameObject: {fileID: 857472158} 340 | m_Enabled: 1 341 | serializedVersion: 2 342 | m_ClearFlags: 2 343 | m_BackGroundColor: {r: 0.11271807, g: 0.13125224, b: 0.16037738, a: 0} 344 | m_projectionMatrixMode: 1 345 | m_GateFitMode: 2 346 | m_FOVAxisMode: 0 347 | m_SensorSize: {x: 36, y: 24} 348 | m_LensShift: {x: 0, y: 0} 349 | m_FocalLength: 50 350 | m_NormalizedViewPortRect: 351 | serializedVersion: 2 352 | x: 0 353 | y: 0 354 | width: 1 355 | height: 1 356 | near clip plane: 0.01 357 | far clip plane: 100 358 | field of view: 40 359 | orthographic: 0 360 | orthographic size: 5 361 | m_Depth: 0 362 | m_CullingMask: 363 | serializedVersion: 2 364 | m_Bits: 4294967295 365 | m_RenderingPath: 1 366 | m_TargetTexture: {fileID: 0} 367 | m_TargetDisplay: 0 368 | m_TargetEye: 3 369 | m_HDR: 0 370 | m_AllowMSAA: 0 371 | m_AllowDynamicResolution: 0 372 | m_ForceIntoRT: 0 373 | m_OcclusionCulling: 0 374 | m_StereoConvergence: 10 375 | m_StereoSeparation: 0.022 376 | --- !u!4 &857472160 377 | Transform: 378 | m_ObjectHideFlags: 0 379 | m_CorrespondingSourceObject: {fileID: 0} 380 | m_PrefabInstance: {fileID: 0} 381 | m_PrefabAsset: {fileID: 0} 382 | m_GameObject: {fileID: 857472158} 383 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 384 | m_LocalPosition: {x: 0, y: 0, z: -1} 385 | m_LocalScale: {x: 1, y: 1, z: 1} 386 | m_ConstrainProportionsScale: 0 387 | m_Children: [] 388 | m_Father: {fileID: 1014431299} 389 | m_RootOrder: 0 390 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 391 | --- !u!1 &1014431298 392 | GameObject: 393 | m_ObjectHideFlags: 0 394 | m_CorrespondingSourceObject: {fileID: 0} 395 | m_PrefabInstance: {fileID: 0} 396 | m_PrefabAsset: {fileID: 0} 397 | serializedVersion: 6 398 | m_Component: 399 | - component: {fileID: 1014431299} 400 | m_Layer: 0 401 | m_Name: Camera Pivot 402 | m_TagString: Untagged 403 | m_Icon: {fileID: 0} 404 | m_NavMeshLayer: 0 405 | m_StaticEditorFlags: 0 406 | m_IsActive: 1 407 | --- !u!4 &1014431299 408 | Transform: 409 | m_ObjectHideFlags: 0 410 | m_CorrespondingSourceObject: {fileID: 0} 411 | m_PrefabInstance: {fileID: 0} 412 | m_PrefabAsset: {fileID: 0} 413 | m_GameObject: {fileID: 1014431298} 414 | m_LocalRotation: {x: 0.215616, y: 0.08508985, z: -0.018863963, w: 0.97258097} 415 | m_LocalPosition: {x: 0, y: 0.2, z: 0} 416 | m_LocalScale: {x: 1, y: 1, z: 1} 417 | m_ConstrainProportionsScale: 0 418 | m_Children: 419 | - {fileID: 857472160} 420 | m_Father: {fileID: 0} 421 | m_RootOrder: 0 422 | m_LocalEulerAnglesHint: {x: 25, y: 10, z: 0} 423 | --- !u!1 &1271328092 424 | GameObject: 425 | m_ObjectHideFlags: 0 426 | m_CorrespondingSourceObject: {fileID: 0} 427 | m_PrefabInstance: {fileID: 0} 428 | m_PrefabAsset: {fileID: 0} 429 | serializedVersion: 6 430 | m_Component: 431 | - component: {fileID: 1271328094} 432 | - component: {fileID: 1271328093} 433 | m_Layer: 0 434 | m_Name: Fill Light 1 435 | m_TagString: Untagged 436 | m_Icon: {fileID: 0} 437 | m_NavMeshLayer: 0 438 | m_StaticEditorFlags: 0 439 | m_IsActive: 1 440 | --- !u!108 &1271328093 441 | Light: 442 | m_ObjectHideFlags: 0 443 | m_CorrespondingSourceObject: {fileID: 0} 444 | m_PrefabInstance: {fileID: 0} 445 | m_PrefabAsset: {fileID: 0} 446 | m_GameObject: {fileID: 1271328092} 447 | m_Enabled: 1 448 | serializedVersion: 10 449 | m_Type: 1 450 | m_Shape: 0 451 | m_Color: {r: 1, g: 0.4198113, b: 0.4198113, a: 1} 452 | m_Intensity: 0.15 453 | m_Range: 10 454 | m_SpotAngle: 30 455 | m_InnerSpotAngle: 21.80208 456 | m_CookieSize: 10 457 | m_Shadows: 458 | m_Type: 0 459 | m_Resolution: -1 460 | m_CustomResolution: -1 461 | m_Strength: 1 462 | m_Bias: 0.05 463 | m_NormalBias: 0.4 464 | m_NearPlane: 0.2 465 | m_CullingMatrixOverride: 466 | e00: 1 467 | e01: 0 468 | e02: 0 469 | e03: 0 470 | e10: 0 471 | e11: 1 472 | e12: 0 473 | e13: 0 474 | e20: 0 475 | e21: 0 476 | e22: 1 477 | e23: 0 478 | e30: 0 479 | e31: 0 480 | e32: 0 481 | e33: 1 482 | m_UseCullingMatrixOverride: 0 483 | m_Cookie: {fileID: 0} 484 | m_DrawHalo: 0 485 | m_Flare: {fileID: 0} 486 | m_RenderMode: 2 487 | m_CullingMask: 488 | serializedVersion: 2 489 | m_Bits: 4294967295 490 | m_RenderingLayerMask: 1 491 | m_Lightmapping: 4 492 | m_LightShadowCasterMode: 0 493 | m_AreaSize: {x: 1, y: 1} 494 | m_BounceIntensity: 1 495 | m_ColorTemperature: 6570 496 | m_UseColorTemperature: 0 497 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 498 | m_UseBoundingSphereOverride: 0 499 | m_UseViewFrustumForShadowCasterCull: 1 500 | m_ShadowRadius: 0 501 | m_ShadowAngle: 0 502 | --- !u!4 &1271328094 503 | Transform: 504 | m_ObjectHideFlags: 0 505 | m_CorrespondingSourceObject: {fileID: 0} 506 | m_PrefabInstance: {fileID: 0} 507 | m_PrefabAsset: {fileID: 0} 508 | m_GameObject: {fileID: 1271328092} 509 | m_LocalRotation: {x: -0.1294095, y: 0.8365164, z: 0.22414386, w: 0.48296288} 510 | m_LocalPosition: {x: 0, y: 0, z: 0} 511 | m_LocalScale: {x: 1, y: 1, z: 1} 512 | m_ConstrainProportionsScale: 0 513 | m_Children: [] 514 | m_Father: {fileID: 2115558446} 515 | m_RootOrder: 1 516 | m_LocalEulerAnglesHint: {x: -30, y: 120, z: 0} 517 | --- !u!1 &2019781662 518 | GameObject: 519 | m_ObjectHideFlags: 0 520 | m_CorrespondingSourceObject: {fileID: 0} 521 | m_PrefabInstance: {fileID: 0} 522 | m_PrefabAsset: {fileID: 0} 523 | serializedVersion: 6 524 | m_Component: 525 | - component: {fileID: 2019781664} 526 | - component: {fileID: 2019781663} 527 | m_Layer: 0 528 | m_Name: Fill Light 2 529 | m_TagString: Untagged 530 | m_Icon: {fileID: 0} 531 | m_NavMeshLayer: 0 532 | m_StaticEditorFlags: 0 533 | m_IsActive: 1 534 | --- !u!108 &2019781663 535 | Light: 536 | m_ObjectHideFlags: 0 537 | m_CorrespondingSourceObject: {fileID: 0} 538 | m_PrefabInstance: {fileID: 0} 539 | m_PrefabAsset: {fileID: 0} 540 | m_GameObject: {fileID: 2019781662} 541 | m_Enabled: 1 542 | serializedVersion: 10 543 | m_Type: 1 544 | m_Shape: 0 545 | m_Color: {r: 0.41960788, g: 0.4483943, b: 1, a: 1} 546 | m_Intensity: 0.15 547 | m_Range: 10 548 | m_SpotAngle: 30 549 | m_InnerSpotAngle: 21.80208 550 | m_CookieSize: 10 551 | m_Shadows: 552 | m_Type: 0 553 | m_Resolution: -1 554 | m_CustomResolution: -1 555 | m_Strength: 1 556 | m_Bias: 0.05 557 | m_NormalBias: 0.4 558 | m_NearPlane: 0.2 559 | m_CullingMatrixOverride: 560 | e00: 1 561 | e01: 0 562 | e02: 0 563 | e03: 0 564 | e10: 0 565 | e11: 1 566 | e12: 0 567 | e13: 0 568 | e20: 0 569 | e21: 0 570 | e22: 1 571 | e23: 0 572 | e30: 0 573 | e31: 0 574 | e32: 0 575 | e33: 1 576 | m_UseCullingMatrixOverride: 0 577 | m_Cookie: {fileID: 0} 578 | m_DrawHalo: 0 579 | m_Flare: {fileID: 0} 580 | m_RenderMode: 2 581 | m_CullingMask: 582 | serializedVersion: 2 583 | m_Bits: 4294967295 584 | m_RenderingLayerMask: 1 585 | m_Lightmapping: 4 586 | m_LightShadowCasterMode: 0 587 | m_AreaSize: {x: 1, y: 1} 588 | m_BounceIntensity: 1 589 | m_ColorTemperature: 6570 590 | m_UseColorTemperature: 0 591 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 592 | m_UseBoundingSphereOverride: 0 593 | m_UseViewFrustumForShadowCasterCull: 1 594 | m_ShadowRadius: 0 595 | m_ShadowAngle: 0 596 | --- !u!4 &2019781664 597 | Transform: 598 | m_ObjectHideFlags: 0 599 | m_CorrespondingSourceObject: {fileID: 0} 600 | m_PrefabInstance: {fileID: 0} 601 | m_PrefabAsset: {fileID: 0} 602 | m_GameObject: {fileID: 2019781662} 603 | m_LocalRotation: {x: -0.065549634, y: -0.34118694, z: -0.023858111, w: 0.9374036} 604 | m_LocalPosition: {x: 0, y: 0, z: 0} 605 | m_LocalScale: {x: 1, y: 1, z: 1} 606 | m_ConstrainProportionsScale: 0 607 | m_Children: [] 608 | m_Father: {fileID: 2115558446} 609 | m_RootOrder: 2 610 | m_LocalEulerAnglesHint: {x: -8, y: -40, z: 0} 611 | --- !u!1 &2115558445 612 | GameObject: 613 | m_ObjectHideFlags: 0 614 | m_CorrespondingSourceObject: {fileID: 0} 615 | m_PrefabInstance: {fileID: 0} 616 | m_PrefabAsset: {fileID: 0} 617 | serializedVersion: 6 618 | m_Component: 619 | - component: {fileID: 2115558446} 620 | m_Layer: 0 621 | m_Name: Light Rig 622 | m_TagString: Untagged 623 | m_Icon: {fileID: 0} 624 | m_NavMeshLayer: 0 625 | m_StaticEditorFlags: 0 626 | m_IsActive: 1 627 | --- !u!4 &2115558446 628 | Transform: 629 | m_ObjectHideFlags: 0 630 | m_CorrespondingSourceObject: {fileID: 0} 631 | m_PrefabInstance: {fileID: 0} 632 | m_PrefabAsset: {fileID: 0} 633 | m_GameObject: {fileID: 2115558445} 634 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 635 | m_LocalPosition: {x: 0, y: 0, z: 0} 636 | m_LocalScale: {x: 1, y: 1, z: 1} 637 | m_ConstrainProportionsScale: 0 638 | m_Children: 639 | - {fileID: 341897858} 640 | - {fileID: 1271328094} 641 | - {fileID: 2019781664} 642 | m_Father: {fileID: 0} 643 | m_RootOrder: 1 644 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 645 | -------------------------------------------------------------------------------- /Assets/Test.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c168a8c850b44a86af7d2fc5eadaddb 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | } 4 | } 5 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": {} 3 | } 4 | -------------------------------------------------------------------------------- /Plugin/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "unity-stl" 3 | version = "0.1.0" 4 | authors = ["Keijiro Takahashi "] 5 | edition = "2021" 6 | 7 | [lib] 8 | name = "stlrust" 9 | crate-type = ["cdylib"] 10 | 11 | [dependencies] 12 | stl_io = "0.6.0" 13 | -------------------------------------------------------------------------------- /Plugin/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | LIB="stlrust" 6 | OPT="--release" 7 | DST="../Assets/Plugin" 8 | 9 | UNAME=`uname` 10 | 11 | [ $UNAME = Linux ] && `grep -i -q "microsoft" /proc/version` && IS_WSL="WSL" 12 | 13 | [ -n "$1" ] && [ $1 = android ] && IS_ANDROID="Android" 14 | 15 | if [ -n "$1" ] && [ $1 = ios ]; then 16 | IS_IOS="iOS" 17 | if ! `grep -i -q "staticlib" Cargo.toml`; then 18 | echo '** iOS build error: create-type should be staticlib.' 19 | echo 'Please modify Cargo.toml to change crate-type to "staticlib".' 20 | exit 1 21 | fi 22 | fi 23 | 24 | if [ $IS_IOS ]; then 25 | 26 | TARGET="aarch64-apple-ios" 27 | 28 | set -x 29 | cargo build $OPT --target=$TARGET 30 | cp target/${TARGET}/release/lib${LIB}.a ${DST}/iOS 31 | 32 | elif [ $IS_ANDROID ]; then 33 | 34 | TARGET="aarch64-linux-android" 35 | 36 | if [ -z "$ANDROID_NDK" ]; then 37 | echo '** Android build error: $ANDROID_NDK is not defined.' 38 | exit 1 39 | fi 40 | 41 | export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang" 42 | 43 | set -x 44 | cargo build $OPT --target=$TARGET 45 | cp target/${TARGET}/release/lib${LIB}.so ${DST}/Android 46 | 47 | elif [ $IS_WSL ]; then 48 | 49 | TARGET="x86_64-pc-windows-gnu" 50 | 51 | set -x 52 | cargo build $OPT --target=$TARGET 53 | cp target/${TARGET}/release/${LIB}.dll ${DST}/Windows 54 | 55 | elif [ $UNAME = Linux ]; then 56 | 57 | set -x 58 | cargo build $OPT 59 | cp target/release/lib${LIB}.so ${DST}/Linux 60 | 61 | elif [ $UNAME = Darwin ]; then 62 | 63 | TARGET_ARM="aarch64-apple-darwin" 64 | TARGET_X86="x86_64-apple-darwin" 65 | 66 | set -x 67 | 68 | cargo build $OPT --target=$TARGET_ARM 69 | cargo build $OPT --target=$TARGET_X86 70 | 71 | lipo -create -output ${LIB}.bundle \ 72 | target/${TARGET_ARM}/release/lib${LIB}.dylib \ 73 | target/${TARGET_X86}/release/lib${LIB}.dylib 74 | 75 | DST_FILE="${DST}/macOS/${LIB}.bundle" 76 | [ -e $DST_FILE ] && rm $DST_FILE 77 | cp ${LIB}.bundle $DST_FILE 78 | 79 | fi 80 | -------------------------------------------------------------------------------- /Plugin/src/lib.rs: -------------------------------------------------------------------------------- 1 | use std::ffi::CStr; 2 | use std::os::raw::c_char; 3 | use std::fs::OpenOptions; 4 | use stl_io::{Vertex, IndexedMesh}; 5 | 6 | fn open_stl(path: &str) -> std::io::Result { 7 | let mut file = OpenOptions::new().read(true).open(path)?; 8 | let mut stl = stl_io::create_stl_reader(&mut file)?; 9 | stl.as_indexed_triangles() 10 | } 11 | 12 | #[no_mangle] 13 | pub unsafe extern "C" fn stlrust_open(cpath: *const c_char) -> *mut IndexedMesh { 14 | let path = CStr::from_ptr(cpath).to_str().unwrap(); 15 | let res = open_stl(path); 16 | if res.is_err() { return std::ptr::null_mut(); } 17 | Box::into_raw(Box::new(res.unwrap())) 18 | } 19 | 20 | #[no_mangle] 21 | pub unsafe extern "C" fn stlrust_close(mesh: *mut IndexedMesh) { 22 | Box::from_raw(mesh); 23 | } 24 | 25 | #[no_mangle] 26 | pub unsafe extern "C" fn stlrust_get_vertex_count(mesh: *const IndexedMesh) -> u32 { 27 | (*mesh).vertices.len() as u32 28 | } 29 | 30 | #[no_mangle] 31 | pub unsafe extern "C" fn stlrust_get_index_count(mesh: *const IndexedMesh) -> u32 { 32 | (*mesh).faces.len() as u32 * 3 33 | } 34 | 35 | #[no_mangle] 36 | pub unsafe extern "C" fn stlrust_get_vertex_pointer(mesh: *const IndexedMesh) -> *const Vertex { 37 | (*mesh).vertices.as_ptr() 38 | } 39 | 40 | #[no_mangle] 41 | pub unsafe extern "C" fn stlrust_copy_index_array(mesh: *const IndexedMesh, buffer: *mut u32, size: u32) { 42 | let src = &(*mesh).faces; 43 | let buffer = std::slice::from_raw_parts_mut(buffer, size as usize); 44 | let mut offs = 0; 45 | for f in src { 46 | buffer[offs + 0] = f.vertices[0] as u32; 47 | buffer[offs + 1] = f.vertices[1] as u32; 48 | buffer[offs + 2] = f.vertices[2] as u32; 49 | offs += 3; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /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 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /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: 11 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_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /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: 1 9 | path: Assets/Test.unity 10 | guid: 2c168a8c850b44a86af7d2fc5eadaddb 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /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: 11 7 | m_SerializationMode: 2 8 | m_LineEndingsForNewScripts: 1 9 | m_DefaultBehaviorMode: 0 10 | m_PrefabRegularEnvironment: {fileID: 0} 11 | m_PrefabUIEnvironment: {fileID: 0} 12 | m_SpritePackerMode: 0 13 | m_SpritePackerPaddingPower: 1 14 | m_Bc7TextureCompressor: 0 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_EnableTextureStreamingInEditMode: 1 22 | m_EnableTextureStreamingInPlayMode: 1 23 | m_AsyncShaderCompilation: 1 24 | m_CachingShaderPreprocessor: 1 25 | m_PrefabModeAllowAutoSave: 1 26 | m_EnterPlayModeOptionsEnabled: 1 27 | m_EnterPlayModeOptions: 3 28 | m_GameObjectNamingDigits: 1 29 | m_GameObjectNamingScheme: 0 30 | m_AssetNamingUsesSpace: 1 31 | m_UseLegacyProbeSampleCount: 0 32 | m_SerializeInlineMappingsOnOneLine: 1 33 | m_DisableCookiesInLightmapper: 0 34 | m_AssetPipelineMode: 1 35 | m_RefreshImportMode: 0 36 | m_CacheServerMode: 0 37 | m_CacheServerEndpoint: 38 | m_CacheServerNamespacePrefix: default 39 | m_CacheServerEnableDownload: 1 40 | m_CacheServerEnableUpload: 1 41 | m_CacheServerEnableAuth: 0 42 | m_CacheServerEnableTls: 0 43 | -------------------------------------------------------------------------------- /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: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | m_LogWhenShaderIsCompiled: 0 63 | m_AllowEnlightenSupportForUpgradedProject: 0 64 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreReleasePackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | m_SeeAllPackageVersions: 0 20 | oneTimeWarningShown: 0 21 | m_Registries: 22 | - m_Id: main 23 | m_Name: 24 | m_Url: https://packages.unity.com 25 | m_Scopes: [] 26 | m_IsDefault: 1 27 | m_Capabilities: 7 28 | m_UserSelectedRegistryName: 29 | m_UserAddingNewScopedRegistry: 0 30 | m_RegistryInfoDraft: 31 | m_Modified: 0 32 | m_ErrorMessage: 33 | m_UserModificationsInstanceId: -830 34 | m_OriginalInstanceId: -832 35 | m_LoadAssets: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "m_Name": "Settings", 3 | "m_Path": "ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json", 4 | "m_Dictionary": { 5 | "m_DictionaryValues": [] 6 | } 7 | } -------------------------------------------------------------------------------- /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: 4 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_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 23 7 | productGUID: dc86bf9ebdde9421b85a715c84b44f57 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: UnityRustStl 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 0 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1920 46 | defaultScreenHeight: 1080 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 1 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 1 70 | androidBlitType: 0 71 | androidResizableWindow: 0 72 | androidDefaultWindowWidth: 1920 73 | androidDefaultWindowHeight: 1080 74 | androidMinimumWindowWidth: 400 75 | androidMinimumWindowHeight: 300 76 | androidFullscreenMode: 1 77 | defaultIsNativeResolution: 1 78 | macRetinaSupport: 1 79 | runInBackground: 0 80 | captureSingleScreen: 0 81 | muteOtherAudioSources: 0 82 | Prepare IOS For Recording: 0 83 | Force IOS Speakers When Recording: 0 84 | deferSystemGesturesMode: 0 85 | hideHomeButton: 0 86 | submitAnalytics: 1 87 | usePlayerLog: 1 88 | bakeCollisionMeshes: 0 89 | forceSingleInstance: 0 90 | useFlipModelSwapchain: 1 91 | resizableWindow: 0 92 | useMacAppStoreValidation: 0 93 | macAppStoreCategory: public.app-category.games 94 | gpuSkinning: 1 95 | xboxPIXTextureCapture: 0 96 | xboxEnableAvatar: 0 97 | xboxEnableKinect: 0 98 | xboxEnableKinectAutoTracking: 0 99 | xboxEnableFitness: 0 100 | visibleInBackground: 1 101 | allowFullscreenSwitch: 1 102 | fullscreenMode: 3 103 | xboxSpeechDB: 0 104 | xboxEnableHeadOrientation: 0 105 | xboxEnableGuest: 0 106 | xboxEnablePIXSampling: 0 107 | metalFramebufferOnly: 0 108 | xboxOneResolution: 0 109 | xboxOneSResolution: 0 110 | xboxOneXResolution: 3 111 | xboxOneMonoLoggingLevel: 0 112 | xboxOneLoggingLevel: 1 113 | xboxOneDisableEsram: 0 114 | xboxOneEnableTypeOptimization: 0 115 | xboxOnePresentImmediateThreshold: 0 116 | switchQueueCommandMemory: 0 117 | switchQueueControlMemory: 16384 118 | switchQueueComputeMemory: 262144 119 | switchNVNShaderPoolsGranularity: 33554432 120 | switchNVNDefaultPoolsGranularity: 16777216 121 | switchNVNOtherPoolsGranularity: 16777216 122 | switchNVNMaxPublicTextureIDCount: 0 123 | switchNVNMaxPublicSamplerIDCount: 0 124 | stadiaPresentMode: 0 125 | stadiaTargetFramerate: 0 126 | vulkanNumSwapchainBuffers: 3 127 | vulkanEnableSetSRGBWrite: 0 128 | vulkanEnablePreTransform: 1 129 | vulkanEnableLateAcquireNextImage: 0 130 | vulkanEnableCommandBufferRecycling: 1 131 | m_SupportedAspectRatios: 132 | 4:3: 1 133 | 5:4: 1 134 | 16:10: 1 135 | 16:9: 1 136 | Others: 1 137 | bundleVersion: 0.1 138 | preloadedAssets: [] 139 | metroInputSource: 0 140 | wsaTransparentSwapchain: 0 141 | m_HolographicPauseOnTrackingLoss: 1 142 | xboxOneDisableKinectGpuReservation: 1 143 | xboxOneEnable7thCore: 1 144 | vrSettings: 145 | enable360StereoCapture: 0 146 | isWsaHolographicRemotingEnabled: 0 147 | enableFrameTimingStats: 0 148 | useHDRDisplay: 0 149 | D3DHDRBitDepth: 0 150 | m_ColorGamuts: 00000000 151 | targetPixelDensity: 30 152 | resolutionScalingMode: 0 153 | androidSupportedAspectRatio: 1 154 | androidMaxAspectRatio: 2.1 155 | applicationIdentifier: 156 | Standalone: com.DefaultCompany.UnityRustStl 157 | buildNumber: 158 | Standalone: 0 159 | iPhone: 0 160 | tvOS: 0 161 | overrideDefaultApplicationIdentifier: 0 162 | AndroidBundleVersionCode: 1 163 | AndroidMinSdkVersion: 22 164 | AndroidTargetSdkVersion: 0 165 | AndroidPreferredInstallLocation: 1 166 | aotOptions: 167 | stripEngineCode: 1 168 | iPhoneStrippingLevel: 0 169 | iPhoneScriptCallOptimization: 0 170 | ForceInternetPermission: 0 171 | ForceSDCardPermission: 0 172 | CreateWallpaper: 0 173 | APKExpansionFiles: 0 174 | keepLoadedShadersAlive: 0 175 | StripUnusedMeshComponents: 1 176 | VertexChannelCompressionMask: 4054 177 | iPhoneSdkVersion: 988 178 | iOSTargetOSVersionString: 11.0 179 | tvOSSdkVersion: 0 180 | tvOSRequireExtendedGameController: 0 181 | tvOSTargetOSVersionString: 11.0 182 | uIPrerenderedIcon: 0 183 | uIRequiresPersistentWiFi: 0 184 | uIRequiresFullScreen: 1 185 | uIStatusBarHidden: 1 186 | uIExitOnSuspend: 0 187 | uIStatusBarStyle: 0 188 | appleTVSplashScreen: {fileID: 0} 189 | appleTVSplashScreen2x: {fileID: 0} 190 | tvOSSmallIconLayers: [] 191 | tvOSSmallIconLayers2x: [] 192 | tvOSLargeIconLayers: [] 193 | tvOSLargeIconLayers2x: [] 194 | tvOSTopShelfImageLayers: [] 195 | tvOSTopShelfImageLayers2x: [] 196 | tvOSTopShelfImageWideLayers: [] 197 | tvOSTopShelfImageWideLayers2x: [] 198 | iOSLaunchScreenType: 0 199 | iOSLaunchScreenPortrait: {fileID: 0} 200 | iOSLaunchScreenLandscape: {fileID: 0} 201 | iOSLaunchScreenBackgroundColor: 202 | serializedVersion: 2 203 | rgba: 0 204 | iOSLaunchScreenFillPct: 100 205 | iOSLaunchScreenSize: 100 206 | iOSLaunchScreenCustomXibPath: 207 | iOSLaunchScreeniPadType: 0 208 | iOSLaunchScreeniPadImage: {fileID: 0} 209 | iOSLaunchScreeniPadBackgroundColor: 210 | serializedVersion: 2 211 | rgba: 0 212 | iOSLaunchScreeniPadFillPct: 100 213 | iOSLaunchScreeniPadSize: 100 214 | iOSLaunchScreeniPadCustomXibPath: 215 | iOSLaunchScreenCustomStoryboardPath: 216 | iOSLaunchScreeniPadCustomStoryboardPath: 217 | iOSDeviceRequirements: [] 218 | iOSURLSchemes: [] 219 | macOSURLSchemes: [] 220 | iOSBackgroundModes: 0 221 | iOSMetalForceHardShadows: 0 222 | metalEditorSupport: 1 223 | metalAPIValidation: 1 224 | iOSRenderExtraFrameOnPause: 0 225 | iosCopyPluginsCodeInsteadOfSymlink: 0 226 | appleDeveloperTeamID: 227 | iOSManualSigningProvisioningProfileID: 228 | tvOSManualSigningProvisioningProfileID: 229 | iOSManualSigningProvisioningProfileType: 0 230 | tvOSManualSigningProvisioningProfileType: 0 231 | appleEnableAutomaticSigning: 0 232 | iOSRequireARKit: 0 233 | iOSAutomaticallyDetectAndAddCapabilities: 1 234 | appleEnableProMotion: 0 235 | shaderPrecisionModel: 0 236 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 237 | templatePackageId: com.unity.template.3d@8.1.0 238 | templateDefaultScene: Assets/Scenes/SampleScene.unity 239 | useCustomMainManifest: 0 240 | useCustomLauncherManifest: 0 241 | useCustomMainGradleTemplate: 0 242 | useCustomLauncherGradleManifest: 0 243 | useCustomBaseGradleTemplate: 0 244 | useCustomGradlePropertiesTemplate: 0 245 | useCustomProguardFile: 0 246 | AndroidTargetArchitectures: 1 247 | AndroidTargetDevices: 0 248 | AndroidSplashScreenScale: 0 249 | androidSplashScreen: {fileID: 0} 250 | AndroidKeystoreName: 251 | AndroidKeyaliasName: 252 | AndroidBuildApkPerCpuArchitecture: 0 253 | AndroidTVCompatibility: 0 254 | AndroidIsGame: 1 255 | AndroidEnableTango: 0 256 | androidEnableBanner: 1 257 | androidUseLowAccuracyLocation: 0 258 | androidUseCustomKeystore: 0 259 | m_AndroidBanners: 260 | - width: 320 261 | height: 180 262 | banner: {fileID: 0} 263 | androidGamepadSupportLevel: 0 264 | chromeosInputEmulation: 1 265 | AndroidMinifyWithR8: 0 266 | AndroidMinifyRelease: 0 267 | AndroidMinifyDebug: 0 268 | AndroidValidateAppBundleSize: 1 269 | AndroidAppBundleSizeToValidate: 150 270 | m_BuildTargetIcons: [] 271 | m_BuildTargetPlatformIcons: 272 | - m_BuildTarget: iPhone 273 | m_Icons: 274 | - m_Textures: [] 275 | m_Width: 180 276 | m_Height: 180 277 | m_Kind: 0 278 | m_SubKind: iPhone 279 | - m_Textures: [] 280 | m_Width: 120 281 | m_Height: 120 282 | m_Kind: 0 283 | m_SubKind: iPhone 284 | - m_Textures: [] 285 | m_Width: 167 286 | m_Height: 167 287 | m_Kind: 0 288 | m_SubKind: iPad 289 | - m_Textures: [] 290 | m_Width: 152 291 | m_Height: 152 292 | m_Kind: 0 293 | m_SubKind: iPad 294 | - m_Textures: [] 295 | m_Width: 76 296 | m_Height: 76 297 | m_Kind: 0 298 | m_SubKind: iPad 299 | - m_Textures: [] 300 | m_Width: 120 301 | m_Height: 120 302 | m_Kind: 3 303 | m_SubKind: iPhone 304 | - m_Textures: [] 305 | m_Width: 80 306 | m_Height: 80 307 | m_Kind: 3 308 | m_SubKind: iPhone 309 | - m_Textures: [] 310 | m_Width: 80 311 | m_Height: 80 312 | m_Kind: 3 313 | m_SubKind: iPad 314 | - m_Textures: [] 315 | m_Width: 40 316 | m_Height: 40 317 | m_Kind: 3 318 | m_SubKind: iPad 319 | - m_Textures: [] 320 | m_Width: 87 321 | m_Height: 87 322 | m_Kind: 1 323 | m_SubKind: iPhone 324 | - m_Textures: [] 325 | m_Width: 58 326 | m_Height: 58 327 | m_Kind: 1 328 | m_SubKind: iPhone 329 | - m_Textures: [] 330 | m_Width: 29 331 | m_Height: 29 332 | m_Kind: 1 333 | m_SubKind: iPhone 334 | - m_Textures: [] 335 | m_Width: 58 336 | m_Height: 58 337 | m_Kind: 1 338 | m_SubKind: iPad 339 | - m_Textures: [] 340 | m_Width: 29 341 | m_Height: 29 342 | m_Kind: 1 343 | m_SubKind: iPad 344 | - m_Textures: [] 345 | m_Width: 60 346 | m_Height: 60 347 | m_Kind: 2 348 | m_SubKind: iPhone 349 | - m_Textures: [] 350 | m_Width: 40 351 | m_Height: 40 352 | m_Kind: 2 353 | m_SubKind: iPhone 354 | - m_Textures: [] 355 | m_Width: 40 356 | m_Height: 40 357 | m_Kind: 2 358 | m_SubKind: iPad 359 | - m_Textures: [] 360 | m_Width: 20 361 | m_Height: 20 362 | m_Kind: 2 363 | m_SubKind: iPad 364 | - m_Textures: [] 365 | m_Width: 1024 366 | m_Height: 1024 367 | m_Kind: 4 368 | m_SubKind: App Store 369 | m_BuildTargetBatching: 370 | - m_BuildTarget: Standalone 371 | m_StaticBatching: 1 372 | m_DynamicBatching: 0 373 | - m_BuildTarget: tvOS 374 | m_StaticBatching: 1 375 | m_DynamicBatching: 0 376 | - m_BuildTarget: Android 377 | m_StaticBatching: 1 378 | m_DynamicBatching: 0 379 | - m_BuildTarget: iPhone 380 | m_StaticBatching: 1 381 | m_DynamicBatching: 0 382 | - m_BuildTarget: WebGL 383 | m_StaticBatching: 0 384 | m_DynamicBatching: 0 385 | m_BuildTargetGraphicsJobs: 386 | - m_BuildTarget: MacStandaloneSupport 387 | m_GraphicsJobs: 0 388 | - m_BuildTarget: Switch 389 | m_GraphicsJobs: 1 390 | - m_BuildTarget: MetroSupport 391 | m_GraphicsJobs: 1 392 | - m_BuildTarget: AppleTVSupport 393 | m_GraphicsJobs: 0 394 | - m_BuildTarget: BJMSupport 395 | m_GraphicsJobs: 1 396 | - m_BuildTarget: LinuxStandaloneSupport 397 | m_GraphicsJobs: 1 398 | - m_BuildTarget: PS4Player 399 | m_GraphicsJobs: 1 400 | - m_BuildTarget: iOSSupport 401 | m_GraphicsJobs: 0 402 | - m_BuildTarget: WindowsStandaloneSupport 403 | m_GraphicsJobs: 1 404 | - m_BuildTarget: XboxOnePlayer 405 | m_GraphicsJobs: 1 406 | - m_BuildTarget: LuminSupport 407 | m_GraphicsJobs: 0 408 | - m_BuildTarget: AndroidPlayer 409 | m_GraphicsJobs: 0 410 | - m_BuildTarget: WebGLSupport 411 | m_GraphicsJobs: 0 412 | m_BuildTargetGraphicsJobMode: 413 | - m_BuildTarget: PS4Player 414 | m_GraphicsJobMode: 0 415 | - m_BuildTarget: XboxOnePlayer 416 | m_GraphicsJobMode: 0 417 | m_BuildTargetGraphicsAPIs: 418 | - m_BuildTarget: AndroidPlayer 419 | m_APIs: 150000000b000000 420 | m_Automatic: 1 421 | - m_BuildTarget: iOSSupport 422 | m_APIs: 10000000 423 | m_Automatic: 1 424 | - m_BuildTarget: AppleTVSupport 425 | m_APIs: 10000000 426 | m_Automatic: 1 427 | - m_BuildTarget: WebGLSupport 428 | m_APIs: 0b000000 429 | m_Automatic: 1 430 | m_BuildTargetVRSettings: 431 | - m_BuildTarget: Standalone 432 | m_Enabled: 0 433 | m_Devices: 434 | - Oculus 435 | - OpenVR 436 | openGLRequireES31: 0 437 | openGLRequireES31AEP: 0 438 | openGLRequireES32: 0 439 | m_TemplateCustomTags: {} 440 | mobileMTRendering: 441 | Android: 1 442 | iPhone: 1 443 | tvOS: 1 444 | m_BuildTargetGroupLightmapEncodingQuality: 445 | - m_BuildTarget: Android 446 | m_EncodingQuality: 1 447 | - m_BuildTarget: iPhone 448 | m_EncodingQuality: 1 449 | - m_BuildTarget: tvOS 450 | m_EncodingQuality: 1 451 | m_BuildTargetGroupLightmapSettings: [] 452 | m_BuildTargetNormalMapEncoding: 453 | - m_BuildTarget: Android 454 | m_Encoding: 1 455 | - m_BuildTarget: iPhone 456 | m_Encoding: 1 457 | - m_BuildTarget: tvOS 458 | m_Encoding: 1 459 | m_BuildTargetDefaultTextureCompressionFormat: 460 | - m_BuildTarget: Android 461 | m_Format: 3 462 | playModeTestRunnerEnabled: 0 463 | runPlayModeTestAsEditModeTest: 0 464 | actionOnDotNetUnhandledException: 1 465 | enableInternalProfiler: 0 466 | logObjCUncaughtExceptions: 1 467 | enableCrashReportAPI: 0 468 | cameraUsageDescription: 469 | locationUsageDescription: 470 | microphoneUsageDescription: 471 | bluetoothUsageDescription: 472 | switchNMETAOverride: 473 | switchNetLibKey: 474 | switchSocketMemoryPoolSize: 6144 475 | switchSocketAllocatorPoolSize: 128 476 | switchSocketConcurrencyLimit: 14 477 | switchScreenResolutionBehavior: 2 478 | switchUseCPUProfiler: 0 479 | switchUseGOLDLinker: 0 480 | switchLTOSetting: 0 481 | switchApplicationID: 0x01004b9000490000 482 | switchNSODependencies: 483 | switchTitleNames_0: 484 | switchTitleNames_1: 485 | switchTitleNames_2: 486 | switchTitleNames_3: 487 | switchTitleNames_4: 488 | switchTitleNames_5: 489 | switchTitleNames_6: 490 | switchTitleNames_7: 491 | switchTitleNames_8: 492 | switchTitleNames_9: 493 | switchTitleNames_10: 494 | switchTitleNames_11: 495 | switchTitleNames_12: 496 | switchTitleNames_13: 497 | switchTitleNames_14: 498 | switchTitleNames_15: 499 | switchPublisherNames_0: 500 | switchPublisherNames_1: 501 | switchPublisherNames_2: 502 | switchPublisherNames_3: 503 | switchPublisherNames_4: 504 | switchPublisherNames_5: 505 | switchPublisherNames_6: 506 | switchPublisherNames_7: 507 | switchPublisherNames_8: 508 | switchPublisherNames_9: 509 | switchPublisherNames_10: 510 | switchPublisherNames_11: 511 | switchPublisherNames_12: 512 | switchPublisherNames_13: 513 | switchPublisherNames_14: 514 | switchPublisherNames_15: 515 | switchIcons_0: {fileID: 0} 516 | switchIcons_1: {fileID: 0} 517 | switchIcons_2: {fileID: 0} 518 | switchIcons_3: {fileID: 0} 519 | switchIcons_4: {fileID: 0} 520 | switchIcons_5: {fileID: 0} 521 | switchIcons_6: {fileID: 0} 522 | switchIcons_7: {fileID: 0} 523 | switchIcons_8: {fileID: 0} 524 | switchIcons_9: {fileID: 0} 525 | switchIcons_10: {fileID: 0} 526 | switchIcons_11: {fileID: 0} 527 | switchIcons_12: {fileID: 0} 528 | switchIcons_13: {fileID: 0} 529 | switchIcons_14: {fileID: 0} 530 | switchIcons_15: {fileID: 0} 531 | switchSmallIcons_0: {fileID: 0} 532 | switchSmallIcons_1: {fileID: 0} 533 | switchSmallIcons_2: {fileID: 0} 534 | switchSmallIcons_3: {fileID: 0} 535 | switchSmallIcons_4: {fileID: 0} 536 | switchSmallIcons_5: {fileID: 0} 537 | switchSmallIcons_6: {fileID: 0} 538 | switchSmallIcons_7: {fileID: 0} 539 | switchSmallIcons_8: {fileID: 0} 540 | switchSmallIcons_9: {fileID: 0} 541 | switchSmallIcons_10: {fileID: 0} 542 | switchSmallIcons_11: {fileID: 0} 543 | switchSmallIcons_12: {fileID: 0} 544 | switchSmallIcons_13: {fileID: 0} 545 | switchSmallIcons_14: {fileID: 0} 546 | switchSmallIcons_15: {fileID: 0} 547 | switchManualHTML: 548 | switchAccessibleURLs: 549 | switchLegalInformation: 550 | switchMainThreadStackSize: 1048576 551 | switchPresenceGroupId: 552 | switchLogoHandling: 0 553 | switchReleaseVersion: 0 554 | switchDisplayVersion: 1.0.0 555 | switchStartupUserAccount: 0 556 | switchTouchScreenUsage: 0 557 | switchSupportedLanguagesMask: 0 558 | switchLogoType: 0 559 | switchApplicationErrorCodeCategory: 560 | switchUserAccountSaveDataSize: 0 561 | switchUserAccountSaveDataJournalSize: 0 562 | switchApplicationAttribute: 0 563 | switchCardSpecSize: -1 564 | switchCardSpecClock: -1 565 | switchRatingsMask: 0 566 | switchRatingsInt_0: 0 567 | switchRatingsInt_1: 0 568 | switchRatingsInt_2: 0 569 | switchRatingsInt_3: 0 570 | switchRatingsInt_4: 0 571 | switchRatingsInt_5: 0 572 | switchRatingsInt_6: 0 573 | switchRatingsInt_7: 0 574 | switchRatingsInt_8: 0 575 | switchRatingsInt_9: 0 576 | switchRatingsInt_10: 0 577 | switchRatingsInt_11: 0 578 | switchRatingsInt_12: 0 579 | switchLocalCommunicationIds_0: 580 | switchLocalCommunicationIds_1: 581 | switchLocalCommunicationIds_2: 582 | switchLocalCommunicationIds_3: 583 | switchLocalCommunicationIds_4: 584 | switchLocalCommunicationIds_5: 585 | switchLocalCommunicationIds_6: 586 | switchLocalCommunicationIds_7: 587 | switchParentalControl: 0 588 | switchAllowsScreenshot: 1 589 | switchAllowsVideoCapturing: 1 590 | switchAllowsRuntimeAddOnContentInstall: 0 591 | switchDataLossConfirmation: 0 592 | switchUserAccountLockEnabled: 0 593 | switchSystemResourceMemory: 16777216 594 | switchSupportedNpadStyles: 22 595 | switchNativeFsCacheSize: 32 596 | switchIsHoldTypeHorizontal: 0 597 | switchSupportedNpadCount: 8 598 | switchSocketConfigEnabled: 0 599 | switchTcpInitialSendBufferSize: 32 600 | switchTcpInitialReceiveBufferSize: 64 601 | switchTcpAutoSendBufferSizeMax: 256 602 | switchTcpAutoReceiveBufferSizeMax: 256 603 | switchUdpSendBufferSize: 9 604 | switchUdpReceiveBufferSize: 42 605 | switchSocketBufferEfficiency: 4 606 | switchSocketInitializeEnabled: 1 607 | switchNetworkInterfaceManagerInitializeEnabled: 1 608 | switchPlayerConnectionEnabled: 1 609 | switchUseNewStyleFilepaths: 0 610 | switchUseMicroSleepForYield: 1 611 | switchEnableRamDiskSupport: 0 612 | switchMicroSleepForYieldTime: 25 613 | switchRamDiskSpaceSize: 12 614 | ps4NPAgeRating: 12 615 | ps4NPTitleSecret: 616 | ps4NPTrophyPackPath: 617 | ps4ParentalLevel: 11 618 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 619 | ps4Category: 0 620 | ps4MasterVersion: 01.00 621 | ps4AppVersion: 01.00 622 | ps4AppType: 0 623 | ps4ParamSfxPath: 624 | ps4VideoOutPixelFormat: 0 625 | ps4VideoOutInitialWidth: 1920 626 | ps4VideoOutBaseModeInitialWidth: 1920 627 | ps4VideoOutReprojectionRate: 60 628 | ps4PronunciationXMLPath: 629 | ps4PronunciationSIGPath: 630 | ps4BackgroundImagePath: 631 | ps4StartupImagePath: 632 | ps4StartupImagesFolder: 633 | ps4IconImagesFolder: 634 | ps4SaveDataImagePath: 635 | ps4SdkOverride: 636 | ps4BGMPath: 637 | ps4ShareFilePath: 638 | ps4ShareOverlayImagePath: 639 | ps4PrivacyGuardImagePath: 640 | ps4ExtraSceSysFile: 641 | ps4NPtitleDatPath: 642 | ps4RemotePlayKeyAssignment: -1 643 | ps4RemotePlayKeyMappingDir: 644 | ps4PlayTogetherPlayerCount: 0 645 | ps4EnterButtonAssignment: 1 646 | ps4ApplicationParam1: 0 647 | ps4ApplicationParam2: 0 648 | ps4ApplicationParam3: 0 649 | ps4ApplicationParam4: 0 650 | ps4DownloadDataSize: 0 651 | ps4GarlicHeapSize: 2048 652 | ps4ProGarlicHeapSize: 2560 653 | playerPrefsMaxSize: 32768 654 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 655 | ps4pnSessions: 1 656 | ps4pnPresence: 1 657 | ps4pnFriends: 1 658 | ps4pnGameCustomData: 1 659 | playerPrefsSupport: 0 660 | enableApplicationExit: 0 661 | resetTempFolder: 1 662 | restrictedAudioUsageRights: 0 663 | ps4UseResolutionFallback: 0 664 | ps4ReprojectionSupport: 0 665 | ps4UseAudio3dBackend: 0 666 | ps4UseLowGarlicFragmentationMode: 1 667 | ps4SocialScreenEnabled: 0 668 | ps4ScriptOptimizationLevel: 0 669 | ps4Audio3dVirtualSpeakerCount: 14 670 | ps4attribCpuUsage: 0 671 | ps4PatchPkgPath: 672 | ps4PatchLatestPkgPath: 673 | ps4PatchChangeinfoPath: 674 | ps4PatchDayOne: 0 675 | ps4attribUserManagement: 0 676 | ps4attribMoveSupport: 0 677 | ps4attrib3DSupport: 0 678 | ps4attribShareSupport: 0 679 | ps4attribExclusiveVR: 0 680 | ps4disableAutoHideSplash: 0 681 | ps4videoRecordingFeaturesUsed: 0 682 | ps4contentSearchFeaturesUsed: 0 683 | ps4CompatibilityPS5: 0 684 | ps4GPU800MHz: 1 685 | ps4attribEyeToEyeDistanceSettingVR: 0 686 | ps4IncludedModules: [] 687 | ps4attribVROutputEnabled: 0 688 | monoEnv: 689 | splashScreenBackgroundSourceLandscape: {fileID: 0} 690 | splashScreenBackgroundSourcePortrait: {fileID: 0} 691 | blurSplashScreenBackground: 1 692 | spritePackerPolicy: 693 | webGLMemorySize: 16 694 | webGLExceptionSupport: 1 695 | webGLNameFilesAsHashes: 0 696 | webGLDataCaching: 1 697 | webGLDebugSymbols: 0 698 | webGLEmscriptenArgs: 699 | webGLModulesDirectory: 700 | webGLTemplate: APPLICATION:Default 701 | webGLAnalyzeBuildSize: 0 702 | webGLUseEmbeddedResources: 0 703 | webGLCompressionFormat: 1 704 | webGLWasmArithmeticExceptions: 0 705 | webGLLinkerTarget: 1 706 | webGLThreadsSupport: 0 707 | webGLDecompressionFallback: 0 708 | scriptingDefineSymbols: {} 709 | additionalCompilerArguments: {} 710 | platformArchitecture: {} 711 | scriptingBackend: {} 712 | il2cppCompilerConfiguration: {} 713 | managedStrippingLevel: {} 714 | incrementalIl2cppBuild: {} 715 | suppressCommonWarnings: 0 716 | allowUnsafeCode: 1 717 | useDeterministicCompilation: 1 718 | enableRoslynAnalyzers: 1 719 | additionalIl2CppArgs: 720 | scriptingRuntimeVersion: 1 721 | gcIncremental: 1 722 | assemblyVersionValidation: 1 723 | gcWBarrierValidation: 0 724 | apiCompatibilityLevelPerPlatform: {} 725 | m_RenderingPath: 1 726 | m_MobileRenderingPath: 1 727 | metroPackageName: Template_3D 728 | metroPackageVersion: 729 | metroCertificatePath: 730 | metroCertificatePassword: 731 | metroCertificateSubject: 732 | metroCertificateIssuer: 733 | metroCertificateNotAfter: 0000000000000000 734 | metroApplicationDescription: Template_3D 735 | wsaImages: {} 736 | metroTileShortName: 737 | metroTileShowName: 0 738 | metroMediumTileShowName: 0 739 | metroLargeTileShowName: 0 740 | metroWideTileShowName: 0 741 | metroSupportStreamingInstall: 0 742 | metroLastRequiredScene: 0 743 | metroDefaultTileSize: 1 744 | metroTileForegroundText: 2 745 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 746 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 747 | metroSplashScreenUseBackgroundColor: 0 748 | platformCapabilities: {} 749 | metroTargetDeviceFamilies: {} 750 | metroFTAName: 751 | metroFTAFileTypes: [] 752 | metroProtocolName: 753 | XboxOneProductId: 754 | XboxOneUpdateKey: 755 | XboxOneSandboxId: 756 | XboxOneContentId: 757 | XboxOneTitleId: 758 | XboxOneSCId: 759 | XboxOneGameOsOverridePath: 760 | XboxOnePackagingOverridePath: 761 | XboxOneAppManifestOverridePath: 762 | XboxOneVersion: 1.0.0.0 763 | XboxOnePackageEncryption: 0 764 | XboxOnePackageUpdateGranularity: 2 765 | XboxOneDescription: 766 | XboxOneLanguage: 767 | - enus 768 | XboxOneCapability: [] 769 | XboxOneGameRating: {} 770 | XboxOneIsContentPackage: 0 771 | XboxOneEnhancedXboxCompatibilityMode: 0 772 | XboxOneEnableGPUVariability: 1 773 | XboxOneSockets: {} 774 | XboxOneSplashScreen: {fileID: 0} 775 | XboxOneAllowedProductIds: [] 776 | XboxOnePersistentLocalStorageSize: 0 777 | XboxOneXTitleMemory: 8 778 | XboxOneOverrideIdentityName: 779 | XboxOneOverrideIdentityPublisher: 780 | vrEditorSettings: {} 781 | cloudServicesEnabled: 782 | UNet: 1 783 | luminIcon: 784 | m_Name: 785 | m_ModelFolderPath: 786 | m_PortalFolderPath: 787 | luminCert: 788 | m_CertPath: 789 | m_SignPackage: 1 790 | luminIsChannelApp: 0 791 | luminVersion: 792 | m_VersionCode: 1 793 | m_VersionName: 794 | apiCompatibilityLevel: 6 795 | activeInputHandler: 0 796 | cloudProjectId: 797 | framebufferDepthMemorylessMode: 0 798 | qualitySettingsNames: [] 799 | projectName: 800 | organizationId: 801 | cloudEnabled: 0 802 | legacyClampBlendShapeWeights: 0 803 | playerDataPath: 804 | forceSRGBBlit: 1 805 | virtualTexturingSupportEnabled: 0 806 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2021.2.8f1 2 | m_EditorVersionWithRevision: 2021.2.8f1 (d0e5f0a7b06a) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 0 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Medium 11 | pixelLightCount: 1 12 | shadows: 1 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 20 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | skinWeights: 2 22 | textureQuality: 0 23 | anisotropicTextures: 1 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 1 30 | lodBias: 0.7 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 64 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | customRenderPipeline: {fileID: 0} 44 | excludedTargetPlatforms: [] 45 | m_PerPlatformDefaultQuality: 46 | Android: 0 47 | Lumin: 0 48 | Nintendo 3DS: 0 49 | Nintendo Switch: 0 50 | PS4: 0 51 | PSP2: 0 52 | Server: 0 53 | Stadia: 0 54 | Standalone: 0 55 | WebGL: 0 56 | Windows Store Apps: 0 57 | XboxOne: 0 58 | iPhone: 0 59 | tvOS: 0 60 | -------------------------------------------------------------------------------- /ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "ignore": false, 8 | "defaultInstantiationMode": 0, 9 | "supportsModification": true 10 | }, 11 | { 12 | "userAdded": false, 13 | "type": "UnityEditor.Animations.AnimatorController", 14 | "ignore": false, 15 | "defaultInstantiationMode": 0, 16 | "supportsModification": true 17 | }, 18 | { 19 | "userAdded": false, 20 | "type": "UnityEngine.AnimatorOverrideController", 21 | "ignore": false, 22 | "defaultInstantiationMode": 0, 23 | "supportsModification": true 24 | }, 25 | { 26 | "userAdded": false, 27 | "type": "UnityEditor.Audio.AudioMixerController", 28 | "ignore": false, 29 | "defaultInstantiationMode": 0, 30 | "supportsModification": true 31 | }, 32 | { 33 | "userAdded": false, 34 | "type": "UnityEngine.ComputeShader", 35 | "ignore": true, 36 | "defaultInstantiationMode": 1, 37 | "supportsModification": true 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEngine.Cubemap", 42 | "ignore": false, 43 | "defaultInstantiationMode": 0, 44 | "supportsModification": true 45 | }, 46 | { 47 | "userAdded": false, 48 | "type": "UnityEngine.GameObject", 49 | "ignore": false, 50 | "defaultInstantiationMode": 0, 51 | "supportsModification": true 52 | }, 53 | { 54 | "userAdded": false, 55 | "type": "UnityEditor.LightingDataAsset", 56 | "ignore": false, 57 | "defaultInstantiationMode": 0, 58 | "supportsModification": false 59 | }, 60 | { 61 | "userAdded": false, 62 | "type": "UnityEngine.LightingSettings", 63 | "ignore": false, 64 | "defaultInstantiationMode": 0, 65 | "supportsModification": true 66 | }, 67 | { 68 | "userAdded": false, 69 | "type": "UnityEngine.Material", 70 | "ignore": false, 71 | "defaultInstantiationMode": 0, 72 | "supportsModification": true 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEditor.MonoScript", 77 | "ignore": true, 78 | "defaultInstantiationMode": 1, 79 | "supportsModification": true 80 | }, 81 | { 82 | "userAdded": false, 83 | "type": "UnityEngine.PhysicMaterial", 84 | "ignore": false, 85 | "defaultInstantiationMode": 0, 86 | "supportsModification": true 87 | }, 88 | { 89 | "userAdded": false, 90 | "type": "UnityEngine.PhysicsMaterial2D", 91 | "ignore": false, 92 | "defaultInstantiationMode": 0, 93 | "supportsModification": true 94 | }, 95 | { 96 | "userAdded": false, 97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 98 | "ignore": false, 99 | "defaultInstantiationMode": 0, 100 | "supportsModification": true 101 | }, 102 | { 103 | "userAdded": false, 104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 105 | "ignore": false, 106 | "defaultInstantiationMode": 0, 107 | "supportsModification": true 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Rendering.VolumeProfile", 112 | "ignore": false, 113 | "defaultInstantiationMode": 0, 114 | "supportsModification": true 115 | }, 116 | { 117 | "userAdded": false, 118 | "type": "UnityEditor.SceneAsset", 119 | "ignore": false, 120 | "defaultInstantiationMode": 0, 121 | "supportsModification": false 122 | }, 123 | { 124 | "userAdded": false, 125 | "type": "UnityEngine.Shader", 126 | "ignore": true, 127 | "defaultInstantiationMode": 1, 128 | "supportsModification": true 129 | }, 130 | { 131 | "userAdded": false, 132 | "type": "UnityEngine.ShaderVariantCollection", 133 | "ignore": true, 134 | "defaultInstantiationMode": 1, 135 | "supportsModification": true 136 | }, 137 | { 138 | "userAdded": false, 139 | "type": "UnityEngine.Texture", 140 | "ignore": false, 141 | "defaultInstantiationMode": 0, 142 | "supportsModification": true 143 | }, 144 | { 145 | "userAdded": false, 146 | "type": "UnityEngine.Texture2D", 147 | "ignore": false, 148 | "defaultInstantiationMode": 0, 149 | "supportsModification": true 150 | }, 151 | { 152 | "userAdded": false, 153 | "type": "UnityEngine.Timeline.TimelineAsset", 154 | "ignore": false, 155 | "defaultInstantiationMode": 0, 156 | "supportsModification": true 157 | } 158 | ], 159 | "defaultDependencyTypeInfo": { 160 | "userAdded": false, 161 | "type": "", 162 | "ignore": false, 163 | "defaultInstantiationMode": 1, 164 | "supportsModification": true 165 | }, 166 | "newSceneOverride": 0 167 | } -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | UnityAdsSettings: 27 | m_Enabled: 0 28 | m_InitializeOnStartup: 1 29 | m_TestMode: 0 30 | m_IosGameId: 31 | m_AndroidGameId: 32 | m_GameIds: {} 33 | m_GameId: 34 | PerformanceReportingSettings: 35 | m_Enabled: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /ProjectSettings/boot.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/UnityRustStl/9d305c7f013201d3965a253e582b24f1d17cc636/ProjectSettings/boot.config -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | UnityRustStl 2 | ------------ 3 | 4 | ![screenshot](https://user-images.githubusercontent.com/343936/150457068-2999ecd7-4039-4c93-b9a9-fc9935807974.png) 5 | 6 | **UnityRustStl** is a sample project for Unity/Rust interoperability. It loads 7 | [STL] files using the [stl_io] Rust crate (library). 8 | 9 | [STL]: https://en.wikipedia.org/wiki/STL_(file_format) 10 | [stl_io]: https://github.com/hmeyer/stl_io 11 | --------------------------------------------------------------------------------