├── .gitignore ├── Assets ├── Models.meta ├── Models │ ├── Suzanne.fbx │ └── Suzanne.fbx.meta ├── Scenes.meta ├── Scenes │ ├── SampleScene.unity │ └── SampleScene.unity.meta ├── Scripts.meta └── Scripts │ ├── Editor.meta │ ├── Editor │ ├── VoxelizeUtils.cs │ ├── VoxelizeUtils.cs.meta │ ├── VoxelizedMeshEditor.cs │ └── VoxelizedMeshEditor.cs.meta │ ├── VoxelizedMesh.cs │ └── VoxelizedMesh.cs.meta ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset ├── README.md └── Screenshots └── VoxelizedMeshInUnity.png /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /[Ll]ogs/ 7 | /UserSettings/ 8 | /Assets/AssetStoreTools* 9 | 10 | # Visual Studio 2015 cache directory 11 | /.vs/ 12 | /.idea/ 13 | 14 | # Autogenerated VS/MD/Consulo solution and project files 15 | ExportedObj/ 16 | .consulo/ 17 | *.csproj 18 | *.unityproj 19 | *.sln 20 | *.suo 21 | *.tmp 22 | *.user 23 | *.userprefs 24 | *.pidb 25 | *.booproj 26 | *.svd 27 | *.pdb 28 | 29 | # Unity3D generated meta files 30 | *.pidb.meta 31 | 32 | # Unity3D Generated File On Crash Reports 33 | sysinfo.txt 34 | 35 | # Builds 36 | *.apk 37 | *.unitypackage 38 | .DS_Store -------------------------------------------------------------------------------- /Assets/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b18001015dab040a988e260ca59d1a36 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Models/Suzanne.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bzgeb/UnityMeshVoxelizer/47f71c8a7fb4856671c1130599cb1b5e88bc154f/Assets/Models/Suzanne.fbx -------------------------------------------------------------------------------- /Assets/Models/Suzanne.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 628a8291ffaa04008bab5f664101e478 3 | ModelImporter: 4 | serializedVersion: 21100 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | materials: 8 | materialImportMode: 2 9 | materialName: 0 10 | materialSearch: 1 11 | materialLocation: 1 12 | animations: 13 | legacyGenerateAnimations: 4 14 | bakeSimulation: 0 15 | resampleCurves: 1 16 | optimizeGameObjects: 0 17 | motionNodeName: 18 | rigImportErrors: 19 | rigImportWarnings: 20 | animationImportErrors: 21 | animationImportWarnings: 22 | animationRetargetingWarnings: 23 | animationDoRetargetingWarnings: 0 24 | importAnimatedCustomProperties: 0 25 | importConstraints: 0 26 | animationCompression: 1 27 | animationRotationError: 0.5 28 | animationPositionError: 0.5 29 | animationScaleError: 0.5 30 | animationWrapMode: 0 31 | extraExposedTransformPaths: [] 32 | extraUserProperties: [] 33 | clipAnimations: [] 34 | isReadable: 0 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 1 38 | meshCompression: 0 39 | addColliders: 0 40 | useSRGBMaterialColor: 1 41 | sortHierarchyByName: 1 42 | importVisibility: 1 43 | importBlendShapes: 1 44 | importCameras: 1 45 | importLights: 1 46 | fileIdsGeneration: 2 47 | swapUVChannels: 0 48 | generateSecondaryUV: 0 49 | useFileUnits: 1 50 | keepQuads: 0 51 | weldVertices: 1 52 | bakeAxisConversion: 1 53 | preserveHierarchy: 0 54 | skinWeightsMode: 0 55 | maxBonesPerVertex: 4 56 | minBoneWeight: 0.001 57 | meshOptimizationFlags: -1 58 | indexFormat: 0 59 | secondaryUVAngleDistortion: 8 60 | secondaryUVAreaDistortion: 15.000001 61 | secondaryUVHardAngle: 88 62 | secondaryUVMarginMethod: 1 63 | secondaryUVMinLightmapResolution: 40 64 | secondaryUVMinObjectScale: 1 65 | secondaryUVPackMargin: 4 66 | useFileScale: 1 67 | tangentSpace: 68 | normalSmoothAngle: 60 69 | normalImportMode: 0 70 | tangentImportMode: 3 71 | normalCalculationMode: 4 72 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 73 | blendShapeNormalImportMode: 1 74 | normalSmoothingSource: 0 75 | referencedClips: [] 76 | importAnimation: 1 77 | humanDescription: 78 | serializedVersion: 3 79 | human: [] 80 | skeleton: [] 81 | armTwist: 0.5 82 | foreArmTwist: 0.5 83 | upperLegTwist: 0.5 84 | legTwist: 0.5 85 | armStretch: 0.05 86 | legStretch: 0.05 87 | feetSpacing: 0 88 | globalScale: 1 89 | rootMotionBoneName: 90 | hasTranslationDoF: 0 91 | hasExtraRoot: 0 92 | skeletonHasParents: 1 93 | lastHumanDescriptionAvatarSource: {instanceID: 0} 94 | autoGenerateAvatarMappingIfUnspecified: 1 95 | animationType: 2 96 | humanoidOversampling: 1 97 | avatarSetup: 0 98 | addHumanoidExtraRootOnlyWhenUsingAvatar: 1 99 | additionalBone: 0 100 | userData: 101 | assetBundleName: 102 | assetBundleVariant: 103 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46205ebfe52fa4f01b36f2aa38b8edcb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.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.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 705507994} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, 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: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 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 &705507993 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: 705507995} 135 | - component: {fileID: 705507994} 136 | m_Layer: 0 137 | m_Name: Directional Light 138 | m_TagString: Untagged 139 | m_Icon: {fileID: 0} 140 | m_NavMeshLayer: 0 141 | m_StaticEditorFlags: 0 142 | m_IsActive: 1 143 | --- !u!108 &705507994 144 | Light: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInstance: {fileID: 0} 148 | m_PrefabAsset: {fileID: 0} 149 | m_GameObject: {fileID: 705507993} 150 | m_Enabled: 1 151 | serializedVersion: 10 152 | m_Type: 1 153 | m_Shape: 0 154 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 155 | m_Intensity: 1 156 | m_Range: 10 157 | m_SpotAngle: 30 158 | m_InnerSpotAngle: 21.802082 159 | m_CookieSize: 10 160 | m_Shadows: 161 | m_Type: 2 162 | m_Resolution: -1 163 | m_CustomResolution: -1 164 | m_Strength: 1 165 | m_Bias: 0.05 166 | m_NormalBias: 0.4 167 | m_NearPlane: 0.2 168 | m_CullingMatrixOverride: 169 | e00: 1 170 | e01: 0 171 | e02: 0 172 | e03: 0 173 | e10: 0 174 | e11: 1 175 | e12: 0 176 | e13: 0 177 | e20: 0 178 | e21: 0 179 | e22: 1 180 | e23: 0 181 | e30: 0 182 | e31: 0 183 | e32: 0 184 | e33: 1 185 | m_UseCullingMatrixOverride: 0 186 | m_Cookie: {fileID: 0} 187 | m_DrawHalo: 0 188 | m_Flare: {fileID: 0} 189 | m_RenderMode: 0 190 | m_CullingMask: 191 | serializedVersion: 2 192 | m_Bits: 4294967295 193 | m_RenderingLayerMask: 1 194 | m_Lightmapping: 1 195 | m_LightShadowCasterMode: 0 196 | m_AreaSize: {x: 1, y: 1} 197 | m_BounceIntensity: 1 198 | m_ColorTemperature: 6570 199 | m_UseColorTemperature: 0 200 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 201 | m_UseBoundingSphereOverride: 0 202 | m_UseViewFrustumForShadowCasterCull: 1 203 | m_ShadowRadius: 0 204 | m_ShadowAngle: 0 205 | --- !u!4 &705507995 206 | Transform: 207 | m_ObjectHideFlags: 0 208 | m_CorrespondingSourceObject: {fileID: 0} 209 | m_PrefabInstance: {fileID: 0} 210 | m_PrefabAsset: {fileID: 0} 211 | m_GameObject: {fileID: 705507993} 212 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 213 | m_LocalPosition: {x: -0.4, y: 3.67, z: 0.69} 214 | m_LocalScale: {x: 1, y: 1, z: 1} 215 | m_Children: [] 216 | m_Father: {fileID: 0} 217 | m_RootOrder: 1 218 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 219 | --- !u!1 &963194225 220 | GameObject: 221 | m_ObjectHideFlags: 0 222 | m_CorrespondingSourceObject: {fileID: 0} 223 | m_PrefabInstance: {fileID: 0} 224 | m_PrefabAsset: {fileID: 0} 225 | serializedVersion: 6 226 | m_Component: 227 | - component: {fileID: 963194228} 228 | - component: {fileID: 963194227} 229 | - component: {fileID: 963194226} 230 | m_Layer: 0 231 | m_Name: Main Camera 232 | m_TagString: MainCamera 233 | m_Icon: {fileID: 0} 234 | m_NavMeshLayer: 0 235 | m_StaticEditorFlags: 0 236 | m_IsActive: 1 237 | --- !u!81 &963194226 238 | AudioListener: 239 | m_ObjectHideFlags: 0 240 | m_CorrespondingSourceObject: {fileID: 0} 241 | m_PrefabInstance: {fileID: 0} 242 | m_PrefabAsset: {fileID: 0} 243 | m_GameObject: {fileID: 963194225} 244 | m_Enabled: 1 245 | --- !u!20 &963194227 246 | Camera: 247 | m_ObjectHideFlags: 0 248 | m_CorrespondingSourceObject: {fileID: 0} 249 | m_PrefabInstance: {fileID: 0} 250 | m_PrefabAsset: {fileID: 0} 251 | m_GameObject: {fileID: 963194225} 252 | m_Enabled: 1 253 | serializedVersion: 2 254 | m_ClearFlags: 1 255 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 256 | m_projectionMatrixMode: 1 257 | m_GateFitMode: 2 258 | m_FOVAxisMode: 0 259 | m_SensorSize: {x: 36, y: 24} 260 | m_LensShift: {x: 0, y: 0} 261 | m_FocalLength: 50 262 | m_NormalizedViewPortRect: 263 | serializedVersion: 2 264 | x: 0 265 | y: 0 266 | width: 1 267 | height: 1 268 | near clip plane: 0.3 269 | far clip plane: 1000 270 | field of view: 60 271 | orthographic: 0 272 | orthographic size: 5 273 | m_Depth: -1 274 | m_CullingMask: 275 | serializedVersion: 2 276 | m_Bits: 4294967295 277 | m_RenderingPath: -1 278 | m_TargetTexture: {fileID: 0} 279 | m_TargetDisplay: 0 280 | m_TargetEye: 3 281 | m_HDR: 1 282 | m_AllowMSAA: 1 283 | m_AllowDynamicResolution: 0 284 | m_ForceIntoRT: 0 285 | m_OcclusionCulling: 1 286 | m_StereoConvergence: 10 287 | m_StereoSeparation: 0.022 288 | --- !u!4 &963194228 289 | Transform: 290 | m_ObjectHideFlags: 0 291 | m_CorrespondingSourceObject: {fileID: 0} 292 | m_PrefabInstance: {fileID: 0} 293 | m_PrefabAsset: {fileID: 0} 294 | m_GameObject: {fileID: 963194225} 295 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 296 | m_LocalPosition: {x: 0, y: 1, z: -10} 297 | m_LocalScale: {x: 1, y: 1, z: 1} 298 | m_Children: [] 299 | m_Father: {fileID: 0} 300 | m_RootOrder: 0 301 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 302 | --- !u!1001 &1408160377 303 | PrefabInstance: 304 | m_ObjectHideFlags: 0 305 | serializedVersion: 2 306 | m_Modification: 307 | m_TransformParent: {fileID: 0} 308 | m_Modifications: 309 | - target: {fileID: -8679921383154817045, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 310 | propertyPath: m_RootOrder 311 | value: 2 312 | objectReference: {fileID: 0} 313 | - target: {fileID: -8679921383154817045, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 314 | propertyPath: m_LocalPosition.x 315 | value: 2.29 316 | objectReference: {fileID: 0} 317 | - target: {fileID: -8679921383154817045, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 318 | propertyPath: m_LocalPosition.y 319 | value: 1.147 320 | objectReference: {fileID: 0} 321 | - target: {fileID: -8679921383154817045, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 322 | propertyPath: m_LocalPosition.z 323 | value: 22.96 324 | objectReference: {fileID: 0} 325 | - target: {fileID: -8679921383154817045, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 326 | propertyPath: m_LocalEulerAnglesHint.x 327 | value: 0 328 | objectReference: {fileID: 0} 329 | - target: {fileID: -8679921383154817045, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 330 | propertyPath: m_LocalEulerAnglesHint.y 331 | value: 0 332 | objectReference: {fileID: 0} 333 | - target: {fileID: -8679921383154817045, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 334 | propertyPath: m_LocalEulerAnglesHint.z 335 | value: 0 336 | objectReference: {fileID: 0} 337 | - target: {fileID: -7511558181221131132, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 338 | propertyPath: m_Enabled 339 | value: 1 340 | objectReference: {fileID: 0} 341 | - target: {fileID: 919132149155446097, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 342 | propertyPath: m_Name 343 | value: Suzanne 344 | objectReference: {fileID: 0} 345 | m_RemovedComponents: [] 346 | m_SourcePrefab: {fileID: 100100000, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 347 | --- !u!1 &1408160378 stripped 348 | GameObject: 349 | m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 350 | m_PrefabInstance: {fileID: 1408160377} 351 | m_PrefabAsset: {fileID: 0} 352 | --- !u!114 &1408160379 353 | MonoBehaviour: 354 | m_ObjectHideFlags: 0 355 | m_CorrespondingSourceObject: {fileID: 0} 356 | m_PrefabInstance: {fileID: 0} 357 | m_PrefabAsset: {fileID: 0} 358 | m_GameObject: {fileID: 1408160378} 359 | m_Enabled: 1 360 | m_EditorHideFlags: 0 361 | m_Script: {fileID: 11500000, guid: eba98044b88f402fb4733a8cd1a5089f, type: 3} 362 | m_Name: 363 | m_EditorClassIdentifier: 364 | GridPoints: 365 | - {x: 0, y: 4, z: 6} 366 | - {x: 0, y: 5, z: 6} 367 | - {x: 0, y: 6, z: 6} 368 | - {x: 0, y: 7, z: 6} 369 | - {x: 1, y: 4, z: 5} 370 | - {x: 1, y: 6, z: 5} 371 | - {x: 1, y: 7, z: 5} 372 | - {x: 1, y: 4, z: 6} 373 | - {x: 1, y: 5, z: 6} 374 | - {x: 1, y: 6, z: 6} 375 | - {x: 1, y: 7, z: 6} 376 | - {x: 2, y: 6, z: 0} 377 | - {x: 2, y: 7, z: 0} 378 | - {x: 2, y: 5, z: 1} 379 | - {x: 2, y: 6, z: 1} 380 | - {x: 2, y: 7, z: 1} 381 | - {x: 2, y: 5, z: 2} 382 | - {x: 2, y: 6, z: 2} 383 | - {x: 2, y: 5, z: 3} 384 | - {x: 2, y: 6, z: 3} 385 | - {x: 2, y: 7, z: 3} 386 | - {x: 2, y: 4, z: 4} 387 | - {x: 2, y: 5, z: 4} 388 | - {x: 2, y: 6, z: 4} 389 | - {x: 2, y: 7, z: 4} 390 | - {x: 2, y: 8, z: 4} 391 | - {x: 2, y: 4, z: 5} 392 | - {x: 2, y: 5, z: 5} 393 | - {x: 2, y: 6, z: 5} 394 | - {x: 2, y: 7, z: 5} 395 | - {x: 2, y: 8, z: 5} 396 | - {x: 2, y: 4, z: 6} 397 | - {x: 2, y: 5, z: 6} 398 | - {x: 2, y: 6, z: 6} 399 | - {x: 2, y: 7, z: 6} 400 | - {x: 3, y: 5, z: 0} 401 | - {x: 3, y: 6, z: 0} 402 | - {x: 3, y: 7, z: 0} 403 | - {x: 3, y: 4, z: 1} 404 | - {x: 3, y: 5, z: 1} 405 | - {x: 3, y: 6, z: 1} 406 | - {x: 3, y: 7, z: 1} 407 | - {x: 3, y: 4, z: 2} 408 | - {x: 3, y: 5, z: 2} 409 | - {x: 3, y: 6, z: 2} 410 | - {x: 3, y: 7, z: 2} 411 | - {x: 3, y: 4, z: 3} 412 | - {x: 3, y: 5, z: 3} 413 | - {x: 3, y: 6, z: 3} 414 | - {x: 3, y: 7, z: 3} 415 | - {x: 3, y: 8, z: 3} 416 | - {x: 3, y: 4, z: 4} 417 | - {x: 3, y: 5, z: 4} 418 | - {x: 3, y: 7, z: 4} 419 | - {x: 3, y: 8, z: 4} 420 | - {x: 3, y: 9, z: 4} 421 | - {x: 3, y: 4, z: 5} 422 | - {x: 3, y: 5, z: 5} 423 | - {x: 3, y: 7, z: 5} 424 | - {x: 3, y: 8, z: 5} 425 | - {x: 3, y: 9, z: 5} 426 | - {x: 3, y: 4, z: 6} 427 | - {x: 3, y: 5, z: 6} 428 | - {x: 3, y: 6, z: 6} 429 | - {x: 3, y: 7, z: 6} 430 | - {x: 3, y: 8, z: 6} 431 | - {x: 3, y: 5, z: 7} 432 | - {x: 3, y: 6, z: 7} 433 | - {x: 3, y: 7, z: 7} 434 | - {x: 4, y: 4, z: 0} 435 | - {x: 4, y: 5, z: 0} 436 | - {x: 4, y: 6, z: 0} 437 | - {x: 4, y: 7, z: 0} 438 | - {x: 4, y: 8, z: 0} 439 | - {x: 4, y: 0, z: 1} 440 | - {x: 4, y: 4, z: 1} 441 | - {x: 4, y: 5, z: 1} 442 | - {x: 4, y: 6, z: 1} 443 | - {x: 4, y: 7, z: 1} 444 | - {x: 4, y: 8, z: 1} 445 | - {x: 4, y: 3, z: 2} 446 | - {x: 4, y: 4, z: 2} 447 | - {x: 4, y: 7, z: 2} 448 | - {x: 4, y: 8, z: 2} 449 | - {x: 4, y: 9, z: 2} 450 | - {x: 4, y: 3, z: 3} 451 | - {x: 4, y: 4, z: 3} 452 | - {x: 4, y: 7, z: 3} 453 | - {x: 4, y: 8, z: 3} 454 | - {x: 4, y: 9, z: 3} 455 | - {x: 4, y: 3, z: 4} 456 | - {x: 4, y: 4, z: 4} 457 | - {x: 4, y: 8, z: 4} 458 | - {x: 4, y: 9, z: 4} 459 | - {x: 4, y: 3, z: 5} 460 | - {x: 4, y: 4, z: 5} 461 | - {x: 4, y: 8, z: 5} 462 | - {x: 4, y: 9, z: 5} 463 | - {x: 4, y: 3, z: 6} 464 | - {x: 4, y: 4, z: 6} 465 | - {x: 4, y: 5, z: 6} 466 | - {x: 4, y: 7, z: 6} 467 | - {x: 4, y: 8, z: 6} 468 | - {x: 4, y: 9, z: 6} 469 | - {x: 4, y: 4, z: 7} 470 | - {x: 4, y: 5, z: 7} 471 | - {x: 4, y: 6, z: 7} 472 | - {x: 4, y: 7, z: 7} 473 | - {x: 4, y: 8, z: 7} 474 | - {x: 5, y: 0, z: 0} 475 | - {x: 5, y: 1, z: 0} 476 | - {x: 5, y: 2, z: 0} 477 | - {x: 5, y: 3, z: 0} 478 | - {x: 5, y: 4, z: 0} 479 | - {x: 5, y: 5, z: 0} 480 | - {x: 5, y: 6, z: 0} 481 | - {x: 5, y: 7, z: 0} 482 | - {x: 5, y: 8, z: 0} 483 | - {x: 5, y: 0, z: 1} 484 | - {x: 5, y: 1, z: 1} 485 | - {x: 5, y: 2, z: 1} 486 | - {x: 5, y: 3, z: 1} 487 | - {x: 5, y: 4, z: 1} 488 | - {x: 5, y: 5, z: 1} 489 | - {x: 5, y: 7, z: 1} 490 | - {x: 5, y: 8, z: 1} 491 | - {x: 5, y: 0, z: 2} 492 | - {x: 5, y: 1, z: 2} 493 | - {x: 5, y: 2, z: 2} 494 | - {x: 5, y: 3, z: 2} 495 | - {x: 5, y: 4, z: 2} 496 | - {x: 5, y: 7, z: 2} 497 | - {x: 5, y: 8, z: 2} 498 | - {x: 5, y: 9, z: 2} 499 | - {x: 5, y: 2, z: 3} 500 | - {x: 5, y: 3, z: 3} 501 | - {x: 5, y: 9, z: 3} 502 | - {x: 5, y: 2, z: 4} 503 | - {x: 5, y: 3, z: 4} 504 | - {x: 5, y: 9, z: 4} 505 | - {x: 5, y: 3, z: 5} 506 | - {x: 5, y: 9, z: 5} 507 | - {x: 5, y: 3, z: 6} 508 | - {x: 5, y: 4, z: 6} 509 | - {x: 5, y: 8, z: 6} 510 | - {x: 5, y: 9, z: 6} 511 | - {x: 5, y: 3, z: 7} 512 | - {x: 5, y: 4, z: 7} 513 | - {x: 5, y: 5, z: 7} 514 | - {x: 5, y: 6, z: 7} 515 | - {x: 5, y: 7, z: 7} 516 | - {x: 5, y: 8, z: 7} 517 | - {x: 5, y: 5, z: 8} 518 | - {x: 5, y: 6, z: 8} 519 | - {x: 5, y: 7, z: 8} 520 | - {x: 6, y: 0, z: 0} 521 | - {x: 6, y: 1, z: 0} 522 | - {x: 6, y: 2, z: 0} 523 | - {x: 6, y: 3, z: 0} 524 | - {x: 6, y: 4, z: 0} 525 | - {x: 6, y: 5, z: 0} 526 | - {x: 6, y: 6, z: 0} 527 | - {x: 6, y: 7, z: 0} 528 | - {x: 6, y: 8, z: 0} 529 | - {x: 6, y: 0, z: 1} 530 | - {x: 6, y: 1, z: 1} 531 | - {x: 6, y: 5, z: 1} 532 | - {x: 6, y: 6, z: 1} 533 | - {x: 6, y: 7, z: 1} 534 | - {x: 6, y: 8, z: 1} 535 | - {x: 6, y: 0, z: 2} 536 | - {x: 6, y: 1, z: 2} 537 | - {x: 6, y: 2, z: 2} 538 | - {x: 6, y: 8, z: 2} 539 | - {x: 6, y: 9, z: 2} 540 | - {x: 6, y: 2, z: 3} 541 | - {x: 6, y: 9, z: 3} 542 | - {x: 6, y: 2, z: 4} 543 | - {x: 6, y: 3, z: 4} 544 | - {x: 6, y: 9, z: 4} 545 | - {x: 6, y: 2, z: 5} 546 | - {x: 6, y: 3, z: 5} 547 | - {x: 6, y: 9, z: 5} 548 | - {x: 6, y: 3, z: 6} 549 | - {x: 6, y: 8, z: 6} 550 | - {x: 6, y: 9, z: 6} 551 | - {x: 6, y: 3, z: 7} 552 | - {x: 6, y: 4, z: 7} 553 | - {x: 6, y: 5, z: 7} 554 | - {x: 6, y: 7, z: 7} 555 | - {x: 6, y: 8, z: 7} 556 | - {x: 6, y: 9, z: 7} 557 | - {x: 6, y: 4, z: 8} 558 | - {x: 6, y: 5, z: 8} 559 | - {x: 6, y: 6, z: 8} 560 | - {x: 6, y: 7, z: 8} 561 | - {x: 6, y: 8, z: 8} 562 | - {x: 7, y: 0, z: 0} 563 | - {x: 7, y: 1, z: 0} 564 | - {x: 7, y: 2, z: 0} 565 | - {x: 7, y: 3, z: 0} 566 | - {x: 7, y: 4, z: 0} 567 | - {x: 7, y: 5, z: 0} 568 | - {x: 7, y: 6, z: 0} 569 | - {x: 7, y: 7, z: 0} 570 | - {x: 7, y: 8, z: 0} 571 | - {x: 7, y: 0, z: 1} 572 | - {x: 7, y: 1, z: 1} 573 | - {x: 7, y: 3, z: 1} 574 | - {x: 7, y: 4, z: 1} 575 | - {x: 7, y: 5, z: 1} 576 | - {x: 7, y: 6, z: 1} 577 | - {x: 7, y: 7, z: 1} 578 | - {x: 7, y: 8, z: 1} 579 | - {x: 7, y: 0, z: 2} 580 | - {x: 7, y: 1, z: 2} 581 | - {x: 7, y: 2, z: 2} 582 | - {x: 7, y: 3, z: 2} 583 | - {x: 7, y: 8, z: 2} 584 | - {x: 7, y: 9, z: 2} 585 | - {x: 7, y: 2, z: 3} 586 | - {x: 7, y: 3, z: 3} 587 | - {x: 7, y: 9, z: 3} 588 | - {x: 7, y: 2, z: 4} 589 | - {x: 7, y: 3, z: 4} 590 | - {x: 7, y: 9, z: 4} 591 | - {x: 7, y: 2, z: 5} 592 | - {x: 7, y: 3, z: 5} 593 | - {x: 7, y: 9, z: 5} 594 | - {x: 7, y: 3, z: 6} 595 | - {x: 7, y: 4, z: 6} 596 | - {x: 7, y: 8, z: 6} 597 | - {x: 7, y: 9, z: 6} 598 | - {x: 7, y: 3, z: 7} 599 | - {x: 7, y: 4, z: 7} 600 | - {x: 7, y: 5, z: 7} 601 | - {x: 7, y: 6, z: 7} 602 | - {x: 7, y: 7, z: 7} 603 | - {x: 7, y: 8, z: 7} 604 | - {x: 7, y: 9, z: 7} 605 | - {x: 7, y: 4, z: 8} 606 | - {x: 7, y: 5, z: 8} 607 | - {x: 7, y: 6, z: 8} 608 | - {x: 7, y: 7, z: 8} 609 | - {x: 7, y: 8, z: 8} 610 | - {x: 8, y: 0, z: 0} 611 | - {x: 8, y: 1, z: 0} 612 | - {x: 8, y: 2, z: 0} 613 | - {x: 8, y: 3, z: 0} 614 | - {x: 8, y: 4, z: 0} 615 | - {x: 8, y: 5, z: 0} 616 | - {x: 8, y: 6, z: 0} 617 | - {x: 8, y: 7, z: 0} 618 | - {x: 8, y: 8, z: 0} 619 | - {x: 8, y: 0, z: 1} 620 | - {x: 8, y: 1, z: 1} 621 | - {x: 8, y: 2, z: 1} 622 | - {x: 8, y: 3, z: 1} 623 | - {x: 8, y: 4, z: 1} 624 | - {x: 8, y: 5, z: 1} 625 | - {x: 8, y: 7, z: 1} 626 | - {x: 8, y: 8, z: 1} 627 | - {x: 8, y: 0, z: 2} 628 | - {x: 8, y: 1, z: 2} 629 | - {x: 8, y: 2, z: 2} 630 | - {x: 8, y: 3, z: 2} 631 | - {x: 8, y: 4, z: 2} 632 | - {x: 8, y: 7, z: 2} 633 | - {x: 8, y: 8, z: 2} 634 | - {x: 8, y: 9, z: 2} 635 | - {x: 8, y: 3, z: 3} 636 | - {x: 8, y: 4, z: 3} 637 | - {x: 8, y: 9, z: 3} 638 | - {x: 8, y: 3, z: 4} 639 | - {x: 8, y: 4, z: 4} 640 | - {x: 8, y: 9, z: 4} 641 | - {x: 8, y: 3, z: 5} 642 | - {x: 8, y: 4, z: 5} 643 | - {x: 8, y: 9, z: 5} 644 | - {x: 8, y: 3, z: 6} 645 | - {x: 8, y: 4, z: 6} 646 | - {x: 8, y: 8, z: 6} 647 | - {x: 8, y: 9, z: 6} 648 | - {x: 8, y: 4, z: 7} 649 | - {x: 8, y: 5, z: 7} 650 | - {x: 8, y: 6, z: 7} 651 | - {x: 8, y: 7, z: 7} 652 | - {x: 8, y: 8, z: 7} 653 | - {x: 8, y: 6, z: 8} 654 | - {x: 8, y: 7, z: 8} 655 | - {x: 9, y: 4, z: 0} 656 | - {x: 9, y: 5, z: 0} 657 | - {x: 9, y: 6, z: 0} 658 | - {x: 9, y: 7, z: 0} 659 | - {x: 9, y: 8, z: 0} 660 | - {x: 9, y: 4, z: 1} 661 | - {x: 9, y: 5, z: 1} 662 | - {x: 9, y: 6, z: 1} 663 | - {x: 9, y: 7, z: 1} 664 | - {x: 9, y: 8, z: 1} 665 | - {x: 9, y: 4, z: 2} 666 | - {x: 9, y: 5, z: 2} 667 | - {x: 9, y: 7, z: 2} 668 | - {x: 9, y: 8, z: 2} 669 | - {x: 9, y: 9, z: 2} 670 | - {x: 9, y: 4, z: 3} 671 | - {x: 9, y: 7, z: 3} 672 | - {x: 9, y: 8, z: 3} 673 | - {x: 9, y: 9, z: 3} 674 | - {x: 9, y: 3, z: 4} 675 | - {x: 9, y: 4, z: 4} 676 | - {x: 9, y: 8, z: 4} 677 | - {x: 9, y: 9, z: 4} 678 | - {x: 9, y: 3, z: 5} 679 | - {x: 9, y: 4, z: 5} 680 | - {x: 9, y: 8, z: 5} 681 | - {x: 9, y: 9, z: 5} 682 | - {x: 9, y: 4, z: 6} 683 | - {x: 9, y: 5, z: 6} 684 | - {x: 9, y: 6, z: 6} 685 | - {x: 9, y: 7, z: 6} 686 | - {x: 9, y: 8, z: 6} 687 | - {x: 9, y: 9, z: 6} 688 | - {x: 9, y: 4, z: 7} 689 | - {x: 9, y: 5, z: 7} 690 | - {x: 9, y: 6, z: 7} 691 | - {x: 9, y: 7, z: 7} 692 | - {x: 9, y: 8, z: 7} 693 | - {x: 10, y: 6, z: 0} 694 | - {x: 10, y: 7, z: 0} 695 | - {x: 10, y: 4, z: 1} 696 | - {x: 10, y: 5, z: 1} 697 | - {x: 10, y: 6, z: 1} 698 | - {x: 10, y: 7, z: 1} 699 | - {x: 10, y: 4, z: 2} 700 | - {x: 10, y: 5, z: 2} 701 | - {x: 10, y: 6, z: 2} 702 | - {x: 10, y: 7, z: 2} 703 | - {x: 10, y: 4, z: 3} 704 | - {x: 10, y: 5, z: 3} 705 | - {x: 10, y: 6, z: 3} 706 | - {x: 10, y: 7, z: 3} 707 | - {x: 10, y: 8, z: 3} 708 | - {x: 10, y: 4, z: 4} 709 | - {x: 10, y: 5, z: 4} 710 | - {x: 10, y: 6, z: 4} 711 | - {x: 10, y: 7, z: 4} 712 | - {x: 10, y: 8, z: 4} 713 | - {x: 10, y: 4, z: 5} 714 | - {x: 10, y: 5, z: 5} 715 | - {x: 10, y: 6, z: 5} 716 | - {x: 10, y: 7, z: 5} 717 | - {x: 10, y: 8, z: 5} 718 | - {x: 10, y: 4, z: 6} 719 | - {x: 10, y: 5, z: 6} 720 | - {x: 10, y: 6, z: 6} 721 | - {x: 10, y: 7, z: 6} 722 | - {x: 10, y: 8, z: 6} 723 | - {x: 10, y: 6, z: 7} 724 | - {x: 11, y: 5, z: 1} 725 | - {x: 11, y: 6, z: 1} 726 | - {x: 11, y: 7, z: 1} 727 | - {x: 11, y: 5, z: 3} 728 | - {x: 11, y: 6, z: 3} 729 | - {x: 11, y: 4, z: 4} 730 | - {x: 11, y: 5, z: 4} 731 | - {x: 11, y: 6, z: 4} 732 | - {x: 11, y: 7, z: 4} 733 | - {x: 11, y: 4, z: 5} 734 | - {x: 11, y: 5, z: 5} 735 | - {x: 11, y: 6, z: 5} 736 | - {x: 11, y: 7, z: 5} 737 | - {x: 11, y: 4, z: 6} 738 | - {x: 11, y: 5, z: 6} 739 | - {x: 11, y: 6, z: 6} 740 | - {x: 11, y: 7, z: 6} 741 | - {x: 12, y: 4, z: 5} 742 | - {x: 12, y: 6, z: 5} 743 | - {x: 12, y: 7, z: 5} 744 | - {x: 12, y: 4, z: 6} 745 | - {x: 12, y: 5, z: 6} 746 | - {x: 12, y: 6, z: 6} 747 | - {x: 12, y: 7, z: 6} 748 | - {x: 13, y: 4, z: 6} 749 | - {x: 13, y: 5, z: 6} 750 | - {x: 13, y: 6, z: 6} 751 | - {x: 13, y: 7, z: 6} 752 | HalfSize: 0.1 753 | LocalOrigin: {x: -1.3671875, y: -0.98437506, z: -0.8515625} 754 | --- !u!64 &1408160380 755 | MeshCollider: 756 | m_ObjectHideFlags: 0 757 | m_CorrespondingSourceObject: {fileID: 0} 758 | m_PrefabInstance: {fileID: 0} 759 | m_PrefabAsset: {fileID: 0} 760 | m_GameObject: {fileID: 1408160378} 761 | m_Material: {fileID: 0} 762 | m_IsTrigger: 0 763 | m_Enabled: 1 764 | serializedVersion: 4 765 | m_Convex: 0 766 | m_CookingOptions: 30 767 | m_Mesh: {fileID: -2222346464153789849, guid: 628a8291ffaa04008bab5f664101e478, type: 3} 768 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d08a798c7ec4048c688d0449ceb00787 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c3de001d4ec84291ae34a16a5a19730 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Editor/VoxelizeUtils.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | public static class VoxelizeUtils 6 | { 7 | [MenuItem("Tools/Voxelize Selection")] 8 | public static void VoxelizeSelectedObject(MenuCommand command) 9 | { 10 | GameObject meshFilterGameObject = 11 | Selection.gameObjects.First(o => o.TryGetComponent(out MeshFilter meshFilter)); 12 | VoxelizeMesh(meshFilterGameObject.GetComponent()); 13 | } 14 | 15 | public static void VoxelizeMesh(MeshFilter meshFilter) 16 | { 17 | if (!meshFilter.TryGetComponent(out MeshCollider meshCollider)) 18 | { 19 | meshCollider = meshFilter.gameObject.AddComponent(); 20 | } 21 | 22 | if (!meshFilter.TryGetComponent(out VoxelizedMesh voxelizedMesh)) 23 | { 24 | voxelizedMesh = meshFilter.gameObject.AddComponent(); 25 | } 26 | 27 | Bounds bounds = meshCollider.bounds; 28 | Vector3 minExtents = bounds.center - bounds.extents; 29 | float halfSize = voxelizedMesh.HalfSize; 30 | Vector3 count = bounds.extents / halfSize; 31 | 32 | int xGridSize = Mathf.CeilToInt(count.x); 33 | int yGridSize = Mathf.CeilToInt(count.y); 34 | int zGridSize = Mathf.CeilToInt(count.z); 35 | 36 | voxelizedMesh.GridPoints.Clear(); 37 | voxelizedMesh.LocalOrigin = voxelizedMesh.transform.InverseTransformPoint(minExtents); 38 | 39 | for (int x = 0; x < xGridSize; ++x) 40 | { 41 | for (int z = 0; z < zGridSize; ++z) 42 | { 43 | for (int y = 0; y < yGridSize; ++y) 44 | { 45 | Vector3 pos = voxelizedMesh.PointToPosition(new Vector3Int(x, y, z)); 46 | if (Physics.CheckBox(pos, new Vector3(halfSize, halfSize, halfSize))) 47 | { 48 | voxelizedMesh.GridPoints.Add(new Vector3Int(x, y, z)); 49 | } 50 | } 51 | } 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /Assets/Scripts/Editor/VoxelizeUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b782a695b9117492db9b63b1a9c8d856 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Editor/VoxelizedMeshEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | [CustomEditor(typeof(VoxelizedMesh))] 5 | public class VoxelizedMeshEditor : Editor 6 | { 7 | public override void OnInspectorGUI() 8 | { 9 | base.OnInspectorGUI(); 10 | if (GUILayout.Button("Voxelize Mesh")) 11 | { 12 | var voxelizedMesh = target as VoxelizedMesh; 13 | if (voxelizedMesh.TryGetComponent(out MeshFilter meshFilter)) 14 | { 15 | VoxelizeUtils.VoxelizeMesh(meshFilter); 16 | } 17 | } 18 | } 19 | 20 | void OnSceneGUI() 21 | { 22 | VoxelizedMesh voxelizedMesh = target as VoxelizedMesh; 23 | 24 | Handles.color = Color.green; 25 | float size = voxelizedMesh.HalfSize * 2f; 26 | 27 | foreach (Vector3Int gridPoint in voxelizedMesh.GridPoints) 28 | { 29 | Vector3 worldPos = voxelizedMesh.PointToPosition(gridPoint); 30 | Handles.DrawWireCube(worldPos, new Vector3(size, size, size)); 31 | } 32 | 33 | Handles.color = Color.red; 34 | if (voxelizedMesh.TryGetComponent(out MeshCollider meshCollider)) 35 | { 36 | Bounds bounds = meshCollider.bounds; 37 | Handles.DrawWireCube(bounds.center, bounds.extents * 2); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Assets/Scripts/Editor/VoxelizedMeshEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94fc5f32868d4ae88da552facc367e1f 3 | timeCreated: 1620921967 -------------------------------------------------------------------------------- /Assets/Scripts/VoxelizedMesh.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | public class VoxelizedMesh : MonoBehaviour 5 | { 6 | public List GridPoints = new List(); 7 | public float HalfSize = 0.1f; 8 | public Vector3 LocalOrigin; 9 | 10 | public Vector3 PointToPosition(Vector3Int point) 11 | { 12 | float size = HalfSize * 2f; 13 | Vector3 pos = new Vector3(HalfSize + point.x * size, HalfSize + point.y * size, HalfSize + point.z * size); 14 | return LocalOrigin + transform.TransformPoint(pos); 15 | } 16 | } -------------------------------------------------------------------------------- /Assets/Scripts/VoxelizedMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eba98044b88f402fb4733a8cd1a5089f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Bronson Zgeb 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "1.3.9", 4 | "com.unity.ide.rider": "3.0.6", 5 | "com.unity.ide.visualstudio": "2.0.7", 6 | "com.unity.ide.vscode": "1.2.3", 7 | "com.unity.test-framework": "1.1.24", 8 | "com.unity.textmeshpro": "3.0.4", 9 | "com.unity.timeline": "1.5.4", 10 | "com.unity.ugui": "1.0.0", 11 | "com.unity.visualscripting": "1.5.2", 12 | "com.unity.modules.ai": "1.0.0", 13 | "com.unity.modules.androidjni": "1.0.0", 14 | "com.unity.modules.animation": "1.0.0", 15 | "com.unity.modules.assetbundle": "1.0.0", 16 | "com.unity.modules.audio": "1.0.0", 17 | "com.unity.modules.cloth": "1.0.0", 18 | "com.unity.modules.director": "1.0.0", 19 | "com.unity.modules.imageconversion": "1.0.0", 20 | "com.unity.modules.imgui": "1.0.0", 21 | "com.unity.modules.jsonserialize": "1.0.0", 22 | "com.unity.modules.particlesystem": "1.0.0", 23 | "com.unity.modules.physics": "1.0.0", 24 | "com.unity.modules.physics2d": "1.0.0", 25 | "com.unity.modules.screencapture": "1.0.0", 26 | "com.unity.modules.terrain": "1.0.0", 27 | "com.unity.modules.terrainphysics": "1.0.0", 28 | "com.unity.modules.tilemap": "1.0.0", 29 | "com.unity.modules.ui": "1.0.0", 30 | "com.unity.modules.uielements": "1.0.0", 31 | "com.unity.modules.umbra": "1.0.0", 32 | "com.unity.modules.unityanalytics": "1.0.0", 33 | "com.unity.modules.unitywebrequest": "1.0.0", 34 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 35 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 36 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 37 | "com.unity.modules.unitywebrequestwww": "1.0.0", 38 | "com.unity.modules.vehicles": "1.0.0", 39 | "com.unity.modules.video": "1.0.0", 40 | "com.unity.modules.vr": "1.0.0", 41 | "com.unity.modules.wind": "1.0.0", 42 | "com.unity.modules.xr": "1.0.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": { 4 | "version": "1.3.9", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": {}, 8 | "url": "https://packages.unity.com" 9 | }, 10 | "com.unity.ext.nunit": { 11 | "version": "1.0.6", 12 | "depth": 1, 13 | "source": "registry", 14 | "dependencies": {}, 15 | "url": "https://packages.unity.com" 16 | }, 17 | "com.unity.ide.rider": { 18 | "version": "3.0.6", 19 | "depth": 0, 20 | "source": "registry", 21 | "dependencies": { 22 | "com.unity.ext.nunit": "1.0.6" 23 | }, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.ide.visualstudio": { 27 | "version": "2.0.7", 28 | "depth": 0, 29 | "source": "registry", 30 | "dependencies": { 31 | "com.unity.test-framework": "1.1.9" 32 | }, 33 | "url": "https://packages.unity.com" 34 | }, 35 | "com.unity.ide.vscode": { 36 | "version": "1.2.3", 37 | "depth": 0, 38 | "source": "registry", 39 | "dependencies": {}, 40 | "url": "https://packages.unity.com" 41 | }, 42 | "com.unity.test-framework": { 43 | "version": "1.1.24", 44 | "depth": 0, 45 | "source": "registry", 46 | "dependencies": { 47 | "com.unity.ext.nunit": "1.0.6", 48 | "com.unity.modules.imgui": "1.0.0", 49 | "com.unity.modules.jsonserialize": "1.0.0" 50 | }, 51 | "url": "https://packages.unity.com" 52 | }, 53 | "com.unity.textmeshpro": { 54 | "version": "3.0.4", 55 | "depth": 0, 56 | "source": "registry", 57 | "dependencies": { 58 | "com.unity.ugui": "1.0.0" 59 | }, 60 | "url": "https://packages.unity.com" 61 | }, 62 | "com.unity.timeline": { 63 | "version": "1.5.4", 64 | "depth": 0, 65 | "source": "registry", 66 | "dependencies": { 67 | "com.unity.modules.director": "1.0.0", 68 | "com.unity.modules.animation": "1.0.0", 69 | "com.unity.modules.audio": "1.0.0", 70 | "com.unity.modules.particlesystem": "1.0.0" 71 | }, 72 | "url": "https://packages.unity.com" 73 | }, 74 | "com.unity.ugui": { 75 | "version": "1.0.0", 76 | "depth": 0, 77 | "source": "builtin", 78 | "dependencies": { 79 | "com.unity.modules.ui": "1.0.0", 80 | "com.unity.modules.imgui": "1.0.0" 81 | } 82 | }, 83 | "com.unity.visualscripting": { 84 | "version": "1.5.2", 85 | "depth": 0, 86 | "source": "registry", 87 | "dependencies": { 88 | "com.unity.ugui": "1.0.0", 89 | "com.unity.modules.ai": "1.0.0", 90 | "com.unity.modules.animation": "1.0.0", 91 | "com.unity.modules.jsonserialize": "1.0.0", 92 | "com.unity.modules.particlesystem": "1.0.0", 93 | "com.unity.modules.physics": "1.0.0", 94 | "com.unity.modules.physics2d": "1.0.0" 95 | }, 96 | "url": "https://packages.unity.com" 97 | }, 98 | "com.unity.modules.ai": { 99 | "version": "1.0.0", 100 | "depth": 0, 101 | "source": "builtin", 102 | "dependencies": {} 103 | }, 104 | "com.unity.modules.androidjni": { 105 | "version": "1.0.0", 106 | "depth": 0, 107 | "source": "builtin", 108 | "dependencies": {} 109 | }, 110 | "com.unity.modules.animation": { 111 | "version": "1.0.0", 112 | "depth": 0, 113 | "source": "builtin", 114 | "dependencies": {} 115 | }, 116 | "com.unity.modules.assetbundle": { 117 | "version": "1.0.0", 118 | "depth": 0, 119 | "source": "builtin", 120 | "dependencies": {} 121 | }, 122 | "com.unity.modules.audio": { 123 | "version": "1.0.0", 124 | "depth": 0, 125 | "source": "builtin", 126 | "dependencies": {} 127 | }, 128 | "com.unity.modules.cloth": { 129 | "version": "1.0.0", 130 | "depth": 0, 131 | "source": "builtin", 132 | "dependencies": { 133 | "com.unity.modules.physics": "1.0.0" 134 | } 135 | }, 136 | "com.unity.modules.director": { 137 | "version": "1.0.0", 138 | "depth": 0, 139 | "source": "builtin", 140 | "dependencies": { 141 | "com.unity.modules.audio": "1.0.0", 142 | "com.unity.modules.animation": "1.0.0" 143 | } 144 | }, 145 | "com.unity.modules.imageconversion": { 146 | "version": "1.0.0", 147 | "depth": 0, 148 | "source": "builtin", 149 | "dependencies": {} 150 | }, 151 | "com.unity.modules.imgui": { 152 | "version": "1.0.0", 153 | "depth": 0, 154 | "source": "builtin", 155 | "dependencies": {} 156 | }, 157 | "com.unity.modules.jsonserialize": { 158 | "version": "1.0.0", 159 | "depth": 0, 160 | "source": "builtin", 161 | "dependencies": {} 162 | }, 163 | "com.unity.modules.particlesystem": { 164 | "version": "1.0.0", 165 | "depth": 0, 166 | "source": "builtin", 167 | "dependencies": {} 168 | }, 169 | "com.unity.modules.physics": { 170 | "version": "1.0.0", 171 | "depth": 0, 172 | "source": "builtin", 173 | "dependencies": {} 174 | }, 175 | "com.unity.modules.physics2d": { 176 | "version": "1.0.0", 177 | "depth": 0, 178 | "source": "builtin", 179 | "dependencies": {} 180 | }, 181 | "com.unity.modules.screencapture": { 182 | "version": "1.0.0", 183 | "depth": 0, 184 | "source": "builtin", 185 | "dependencies": { 186 | "com.unity.modules.imageconversion": "1.0.0" 187 | } 188 | }, 189 | "com.unity.modules.subsystems": { 190 | "version": "1.0.0", 191 | "depth": 1, 192 | "source": "builtin", 193 | "dependencies": { 194 | "com.unity.modules.jsonserialize": "1.0.0" 195 | } 196 | }, 197 | "com.unity.modules.terrain": { 198 | "version": "1.0.0", 199 | "depth": 0, 200 | "source": "builtin", 201 | "dependencies": {} 202 | }, 203 | "com.unity.modules.terrainphysics": { 204 | "version": "1.0.0", 205 | "depth": 0, 206 | "source": "builtin", 207 | "dependencies": { 208 | "com.unity.modules.physics": "1.0.0", 209 | "com.unity.modules.terrain": "1.0.0" 210 | } 211 | }, 212 | "com.unity.modules.tilemap": { 213 | "version": "1.0.0", 214 | "depth": 0, 215 | "source": "builtin", 216 | "dependencies": { 217 | "com.unity.modules.physics2d": "1.0.0" 218 | } 219 | }, 220 | "com.unity.modules.ui": { 221 | "version": "1.0.0", 222 | "depth": 0, 223 | "source": "builtin", 224 | "dependencies": {} 225 | }, 226 | "com.unity.modules.uielements": { 227 | "version": "1.0.0", 228 | "depth": 0, 229 | "source": "builtin", 230 | "dependencies": { 231 | "com.unity.modules.ui": "1.0.0", 232 | "com.unity.modules.imgui": "1.0.0", 233 | "com.unity.modules.jsonserialize": "1.0.0", 234 | "com.unity.modules.uielementsnative": "1.0.0" 235 | } 236 | }, 237 | "com.unity.modules.uielementsnative": { 238 | "version": "1.0.0", 239 | "depth": 1, 240 | "source": "builtin", 241 | "dependencies": { 242 | "com.unity.modules.ui": "1.0.0", 243 | "com.unity.modules.imgui": "1.0.0", 244 | "com.unity.modules.jsonserialize": "1.0.0" 245 | } 246 | }, 247 | "com.unity.modules.umbra": { 248 | "version": "1.0.0", 249 | "depth": 0, 250 | "source": "builtin", 251 | "dependencies": {} 252 | }, 253 | "com.unity.modules.unityanalytics": { 254 | "version": "1.0.0", 255 | "depth": 0, 256 | "source": "builtin", 257 | "dependencies": { 258 | "com.unity.modules.unitywebrequest": "1.0.0", 259 | "com.unity.modules.jsonserialize": "1.0.0" 260 | } 261 | }, 262 | "com.unity.modules.unitywebrequest": { 263 | "version": "1.0.0", 264 | "depth": 0, 265 | "source": "builtin", 266 | "dependencies": {} 267 | }, 268 | "com.unity.modules.unitywebrequestassetbundle": { 269 | "version": "1.0.0", 270 | "depth": 0, 271 | "source": "builtin", 272 | "dependencies": { 273 | "com.unity.modules.assetbundle": "1.0.0", 274 | "com.unity.modules.unitywebrequest": "1.0.0" 275 | } 276 | }, 277 | "com.unity.modules.unitywebrequestaudio": { 278 | "version": "1.0.0", 279 | "depth": 0, 280 | "source": "builtin", 281 | "dependencies": { 282 | "com.unity.modules.unitywebrequest": "1.0.0", 283 | "com.unity.modules.audio": "1.0.0" 284 | } 285 | }, 286 | "com.unity.modules.unitywebrequesttexture": { 287 | "version": "1.0.0", 288 | "depth": 0, 289 | "source": "builtin", 290 | "dependencies": { 291 | "com.unity.modules.unitywebrequest": "1.0.0", 292 | "com.unity.modules.imageconversion": "1.0.0" 293 | } 294 | }, 295 | "com.unity.modules.unitywebrequestwww": { 296 | "version": "1.0.0", 297 | "depth": 0, 298 | "source": "builtin", 299 | "dependencies": { 300 | "com.unity.modules.unitywebrequest": "1.0.0", 301 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 302 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 303 | "com.unity.modules.audio": "1.0.0", 304 | "com.unity.modules.assetbundle": "1.0.0", 305 | "com.unity.modules.imageconversion": "1.0.0" 306 | } 307 | }, 308 | "com.unity.modules.vehicles": { 309 | "version": "1.0.0", 310 | "depth": 0, 311 | "source": "builtin", 312 | "dependencies": { 313 | "com.unity.modules.physics": "1.0.0" 314 | } 315 | }, 316 | "com.unity.modules.video": { 317 | "version": "1.0.0", 318 | "depth": 0, 319 | "source": "builtin", 320 | "dependencies": { 321 | "com.unity.modules.audio": "1.0.0", 322 | "com.unity.modules.ui": "1.0.0", 323 | "com.unity.modules.unitywebrequest": "1.0.0" 324 | } 325 | }, 326 | "com.unity.modules.vr": { 327 | "version": "1.0.0", 328 | "depth": 0, 329 | "source": "builtin", 330 | "dependencies": { 331 | "com.unity.modules.jsonserialize": "1.0.0", 332 | "com.unity.modules.physics": "1.0.0", 333 | "com.unity.modules.xr": "1.0.0" 334 | } 335 | }, 336 | "com.unity.modules.wind": { 337 | "version": "1.0.0", 338 | "depth": 0, 339 | "source": "builtin", 340 | "dependencies": {} 341 | }, 342 | "com.unity.modules.xr": { 343 | "version": "1.0.0", 344 | "depth": 0, 345 | "source": "builtin", 346 | "dependencies": { 347 | "com.unity.modules.physics": "1.0.0", 348 | "com.unity.modules.jsonserialize": "1.0.0", 349 | "com.unity.modules.subsystems": "1.0.0" 350 | } 351 | } 352 | } 353 | } 354 | -------------------------------------------------------------------------------- /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 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /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_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 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_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_SerializeInlineMappingsOnOneLine: 1 -------------------------------------------------------------------------------- /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/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_ErrorMessage: 32 | m_Original: 33 | m_Id: 34 | m_Name: 35 | m_Url: 36 | m_Scopes: [] 37 | m_IsDefault: 0 38 | m_Capabilities: 0 39 | m_Modified: 0 40 | m_Name: 41 | m_Url: 42 | m_Scopes: 43 | - 44 | m_SelectedScopeIndex: 0 45 | m_LoadAssets: 0 46 | -------------------------------------------------------------------------------- /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: 22 7 | productGUID: 9df6fc309ab9743bfb2b584dbb5aadac 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: MeshVoxelization 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: 1 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: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 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 | defaultIsNativeResolution: 1 72 | macRetinaSupport: 1 73 | runInBackground: 1 74 | captureSingleScreen: 0 75 | muteOtherAudioSources: 0 76 | Prepare IOS For Recording: 0 77 | Force IOS Speakers When Recording: 0 78 | deferSystemGesturesMode: 0 79 | hideHomeButton: 0 80 | submitAnalytics: 1 81 | usePlayerLog: 1 82 | bakeCollisionMeshes: 0 83 | forceSingleInstance: 0 84 | useFlipModelSwapchain: 1 85 | resizableWindow: 0 86 | useMacAppStoreValidation: 0 87 | macAppStoreCategory: public.app-category.games 88 | gpuSkinning: 1 89 | xboxPIXTextureCapture: 0 90 | xboxEnableAvatar: 0 91 | xboxEnableKinect: 0 92 | xboxEnableKinectAutoTracking: 0 93 | xboxEnableFitness: 0 94 | visibleInBackground: 1 95 | allowFullscreenSwitch: 1 96 | fullscreenMode: 1 97 | xboxSpeechDB: 0 98 | xboxEnableHeadOrientation: 0 99 | xboxEnableGuest: 0 100 | xboxEnablePIXSampling: 0 101 | metalFramebufferOnly: 0 102 | xboxOneResolution: 0 103 | xboxOneSResolution: 0 104 | xboxOneXResolution: 3 105 | xboxOneMonoLoggingLevel: 0 106 | xboxOneLoggingLevel: 1 107 | xboxOneDisableEsram: 0 108 | xboxOneEnableTypeOptimization: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 0 111 | switchQueueControlMemory: 16384 112 | switchQueueComputeMemory: 262144 113 | switchNVNShaderPoolsGranularity: 33554432 114 | switchNVNDefaultPoolsGranularity: 16777216 115 | switchNVNOtherPoolsGranularity: 16777216 116 | switchNVNMaxPublicTextureIDCount: 0 117 | switchNVNMaxPublicSamplerIDCount: 0 118 | stadiaPresentMode: 0 119 | stadiaTargetFramerate: 0 120 | vulkanNumSwapchainBuffers: 3 121 | vulkanEnableSetSRGBWrite: 0 122 | vulkanEnablePreTransform: 0 123 | vulkanEnableLateAcquireNextImage: 0 124 | m_SupportedAspectRatios: 125 | 4:3: 1 126 | 5:4: 1 127 | 16:10: 1 128 | 16:9: 1 129 | Others: 1 130 | bundleVersion: 0.1 131 | preloadedAssets: [] 132 | metroInputSource: 0 133 | wsaTransparentSwapchain: 0 134 | m_HolographicPauseOnTrackingLoss: 1 135 | xboxOneDisableKinectGpuReservation: 1 136 | xboxOneEnable7thCore: 1 137 | vrSettings: 138 | enable360StereoCapture: 0 139 | isWsaHolographicRemotingEnabled: 0 140 | enableFrameTimingStats: 0 141 | useHDRDisplay: 0 142 | D3DHDRBitDepth: 0 143 | m_ColorGamuts: 00000000 144 | targetPixelDensity: 30 145 | resolutionScalingMode: 0 146 | androidSupportedAspectRatio: 1 147 | androidMaxAspectRatio: 2.1 148 | applicationIdentifier: {} 149 | buildNumber: 150 | Standalone: 0 151 | iPhone: 0 152 | tvOS: 0 153 | overrideDefaultApplicationIdentifier: 0 154 | AndroidBundleVersionCode: 1 155 | AndroidMinSdkVersion: 19 156 | AndroidTargetSdkVersion: 0 157 | AndroidPreferredInstallLocation: 1 158 | aotOptions: 159 | stripEngineCode: 1 160 | iPhoneStrippingLevel: 0 161 | iPhoneScriptCallOptimization: 0 162 | ForceInternetPermission: 0 163 | ForceSDCardPermission: 0 164 | CreateWallpaper: 0 165 | APKExpansionFiles: 0 166 | keepLoadedShadersAlive: 0 167 | StripUnusedMeshComponents: 1 168 | VertexChannelCompressionMask: 4054 169 | iPhoneSdkVersion: 988 170 | iOSTargetOSVersionString: 11.0 171 | tvOSSdkVersion: 0 172 | tvOSRequireExtendedGameController: 0 173 | tvOSTargetOSVersionString: 11.0 174 | uIPrerenderedIcon: 0 175 | uIRequiresPersistentWiFi: 0 176 | uIRequiresFullScreen: 1 177 | uIStatusBarHidden: 1 178 | uIExitOnSuspend: 0 179 | uIStatusBarStyle: 0 180 | appleTVSplashScreen: {fileID: 0} 181 | appleTVSplashScreen2x: {fileID: 0} 182 | tvOSSmallIconLayers: [] 183 | tvOSSmallIconLayers2x: [] 184 | tvOSLargeIconLayers: [] 185 | tvOSLargeIconLayers2x: [] 186 | tvOSTopShelfImageLayers: [] 187 | tvOSTopShelfImageLayers2x: [] 188 | tvOSTopShelfImageWideLayers: [] 189 | tvOSTopShelfImageWideLayers2x: [] 190 | iOSLaunchScreenType: 0 191 | iOSLaunchScreenPortrait: {fileID: 0} 192 | iOSLaunchScreenLandscape: {fileID: 0} 193 | iOSLaunchScreenBackgroundColor: 194 | serializedVersion: 2 195 | rgba: 0 196 | iOSLaunchScreenFillPct: 100 197 | iOSLaunchScreenSize: 100 198 | iOSLaunchScreenCustomXibPath: 199 | iOSLaunchScreeniPadType: 0 200 | iOSLaunchScreeniPadImage: {fileID: 0} 201 | iOSLaunchScreeniPadBackgroundColor: 202 | serializedVersion: 2 203 | rgba: 0 204 | iOSLaunchScreeniPadFillPct: 100 205 | iOSLaunchScreeniPadSize: 100 206 | iOSLaunchScreeniPadCustomXibPath: 207 | iOSLaunchScreenCustomStoryboardPath: 208 | iOSLaunchScreeniPadCustomStoryboardPath: 209 | iOSDeviceRequirements: [] 210 | iOSURLSchemes: [] 211 | iOSBackgroundModes: 0 212 | iOSMetalForceHardShadows: 0 213 | metalEditorSupport: 1 214 | metalAPIValidation: 1 215 | iOSRenderExtraFrameOnPause: 0 216 | iosCopyPluginsCodeInsteadOfSymlink: 0 217 | appleDeveloperTeamID: 218 | iOSManualSigningProvisioningProfileID: 219 | tvOSManualSigningProvisioningProfileID: 220 | iOSManualSigningProvisioningProfileType: 0 221 | tvOSManualSigningProvisioningProfileType: 0 222 | appleEnableAutomaticSigning: 0 223 | iOSRequireARKit: 0 224 | iOSAutomaticallyDetectAndAddCapabilities: 1 225 | appleEnableProMotion: 0 226 | shaderPrecisionModel: 0 227 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 228 | templatePackageId: com.unity.template.3d@5.0.4 229 | templateDefaultScene: Assets/Scenes/SampleScene.unity 230 | useCustomMainManifest: 0 231 | useCustomLauncherManifest: 0 232 | useCustomMainGradleTemplate: 0 233 | useCustomLauncherGradleManifest: 0 234 | useCustomBaseGradleTemplate: 0 235 | useCustomGradlePropertiesTemplate: 0 236 | useCustomProguardFile: 0 237 | AndroidTargetArchitectures: 1 238 | AndroidSplashScreenScale: 0 239 | androidSplashScreen: {fileID: 0} 240 | AndroidKeystoreName: 241 | AndroidKeyaliasName: 242 | AndroidBuildApkPerCpuArchitecture: 0 243 | AndroidTVCompatibility: 0 244 | AndroidIsGame: 1 245 | AndroidEnableTango: 0 246 | androidEnableBanner: 1 247 | androidUseLowAccuracyLocation: 0 248 | androidUseCustomKeystore: 0 249 | m_AndroidBanners: 250 | - width: 320 251 | height: 180 252 | banner: {fileID: 0} 253 | androidGamepadSupportLevel: 0 254 | AndroidMinifyWithR8: 0 255 | AndroidMinifyRelease: 0 256 | AndroidMinifyDebug: 0 257 | AndroidValidateAppBundleSize: 1 258 | AndroidAppBundleSizeToValidate: 150 259 | m_BuildTargetIcons: [] 260 | m_BuildTargetPlatformIcons: [] 261 | m_BuildTargetBatching: 262 | - m_BuildTarget: Standalone 263 | m_StaticBatching: 1 264 | m_DynamicBatching: 0 265 | - m_BuildTarget: tvOS 266 | m_StaticBatching: 1 267 | m_DynamicBatching: 0 268 | - m_BuildTarget: Android 269 | m_StaticBatching: 1 270 | m_DynamicBatching: 0 271 | - m_BuildTarget: iPhone 272 | m_StaticBatching: 1 273 | m_DynamicBatching: 0 274 | - m_BuildTarget: WebGL 275 | m_StaticBatching: 0 276 | m_DynamicBatching: 0 277 | m_BuildTargetGraphicsJobs: 278 | - m_BuildTarget: MacStandaloneSupport 279 | m_GraphicsJobs: 0 280 | - m_BuildTarget: Switch 281 | m_GraphicsJobs: 1 282 | - m_BuildTarget: MetroSupport 283 | m_GraphicsJobs: 1 284 | - m_BuildTarget: AppleTVSupport 285 | m_GraphicsJobs: 0 286 | - m_BuildTarget: BJMSupport 287 | m_GraphicsJobs: 1 288 | - m_BuildTarget: LinuxStandaloneSupport 289 | m_GraphicsJobs: 1 290 | - m_BuildTarget: PS4Player 291 | m_GraphicsJobs: 1 292 | - m_BuildTarget: iOSSupport 293 | m_GraphicsJobs: 0 294 | - m_BuildTarget: WindowsStandaloneSupport 295 | m_GraphicsJobs: 1 296 | - m_BuildTarget: XboxOnePlayer 297 | m_GraphicsJobs: 1 298 | - m_BuildTarget: LuminSupport 299 | m_GraphicsJobs: 0 300 | - m_BuildTarget: AndroidPlayer 301 | m_GraphicsJobs: 0 302 | - m_BuildTarget: WebGLSupport 303 | m_GraphicsJobs: 0 304 | m_BuildTargetGraphicsJobMode: 305 | - m_BuildTarget: PS4Player 306 | m_GraphicsJobMode: 0 307 | - m_BuildTarget: XboxOnePlayer 308 | m_GraphicsJobMode: 0 309 | m_BuildTargetGraphicsAPIs: 310 | - m_BuildTarget: AndroidPlayer 311 | m_APIs: 150000000b000000 312 | m_Automatic: 0 313 | - m_BuildTarget: iOSSupport 314 | m_APIs: 10000000 315 | m_Automatic: 1 316 | - m_BuildTarget: AppleTVSupport 317 | m_APIs: 10000000 318 | m_Automatic: 1 319 | - m_BuildTarget: WebGLSupport 320 | m_APIs: 0b000000 321 | m_Automatic: 1 322 | m_BuildTargetVRSettings: 323 | - m_BuildTarget: Standalone 324 | m_Enabled: 0 325 | m_Devices: 326 | - Oculus 327 | - OpenVR 328 | openGLRequireES31: 0 329 | openGLRequireES31AEP: 0 330 | openGLRequireES32: 0 331 | m_TemplateCustomTags: {} 332 | mobileMTRendering: 333 | Android: 1 334 | iPhone: 1 335 | tvOS: 1 336 | m_BuildTargetGroupLightmapEncodingQuality: [] 337 | m_BuildTargetGroupLightmapSettings: [] 338 | m_BuildTargetNormalMapEncoding: [] 339 | playModeTestRunnerEnabled: 0 340 | runPlayModeTestAsEditModeTest: 0 341 | actionOnDotNetUnhandledException: 1 342 | enableInternalProfiler: 0 343 | logObjCUncaughtExceptions: 1 344 | enableCrashReportAPI: 0 345 | cameraUsageDescription: 346 | locationUsageDescription: 347 | microphoneUsageDescription: 348 | switchNMETAOverride: 349 | switchNetLibKey: 350 | switchSocketMemoryPoolSize: 6144 351 | switchSocketAllocatorPoolSize: 128 352 | switchSocketConcurrencyLimit: 14 353 | switchScreenResolutionBehavior: 2 354 | switchUseCPUProfiler: 0 355 | switchUseGOLDLinker: 0 356 | switchLTOSetting: 0 357 | switchApplicationID: 0x01004b9000490000 358 | switchNSODependencies: 359 | switchTitleNames_0: 360 | switchTitleNames_1: 361 | switchTitleNames_2: 362 | switchTitleNames_3: 363 | switchTitleNames_4: 364 | switchTitleNames_5: 365 | switchTitleNames_6: 366 | switchTitleNames_7: 367 | switchTitleNames_8: 368 | switchTitleNames_9: 369 | switchTitleNames_10: 370 | switchTitleNames_11: 371 | switchTitleNames_12: 372 | switchTitleNames_13: 373 | switchTitleNames_14: 374 | switchTitleNames_15: 375 | switchPublisherNames_0: 376 | switchPublisherNames_1: 377 | switchPublisherNames_2: 378 | switchPublisherNames_3: 379 | switchPublisherNames_4: 380 | switchPublisherNames_5: 381 | switchPublisherNames_6: 382 | switchPublisherNames_7: 383 | switchPublisherNames_8: 384 | switchPublisherNames_9: 385 | switchPublisherNames_10: 386 | switchPublisherNames_11: 387 | switchPublisherNames_12: 388 | switchPublisherNames_13: 389 | switchPublisherNames_14: 390 | switchPublisherNames_15: 391 | switchIcons_0: {fileID: 0} 392 | switchIcons_1: {fileID: 0} 393 | switchIcons_2: {fileID: 0} 394 | switchIcons_3: {fileID: 0} 395 | switchIcons_4: {fileID: 0} 396 | switchIcons_5: {fileID: 0} 397 | switchIcons_6: {fileID: 0} 398 | switchIcons_7: {fileID: 0} 399 | switchIcons_8: {fileID: 0} 400 | switchIcons_9: {fileID: 0} 401 | switchIcons_10: {fileID: 0} 402 | switchIcons_11: {fileID: 0} 403 | switchIcons_12: {fileID: 0} 404 | switchIcons_13: {fileID: 0} 405 | switchIcons_14: {fileID: 0} 406 | switchIcons_15: {fileID: 0} 407 | switchSmallIcons_0: {fileID: 0} 408 | switchSmallIcons_1: {fileID: 0} 409 | switchSmallIcons_2: {fileID: 0} 410 | switchSmallIcons_3: {fileID: 0} 411 | switchSmallIcons_4: {fileID: 0} 412 | switchSmallIcons_5: {fileID: 0} 413 | switchSmallIcons_6: {fileID: 0} 414 | switchSmallIcons_7: {fileID: 0} 415 | switchSmallIcons_8: {fileID: 0} 416 | switchSmallIcons_9: {fileID: 0} 417 | switchSmallIcons_10: {fileID: 0} 418 | switchSmallIcons_11: {fileID: 0} 419 | switchSmallIcons_12: {fileID: 0} 420 | switchSmallIcons_13: {fileID: 0} 421 | switchSmallIcons_14: {fileID: 0} 422 | switchSmallIcons_15: {fileID: 0} 423 | switchManualHTML: 424 | switchAccessibleURLs: 425 | switchLegalInformation: 426 | switchMainThreadStackSize: 1048576 427 | switchPresenceGroupId: 428 | switchLogoHandling: 0 429 | switchReleaseVersion: 0 430 | switchDisplayVersion: 1.0.0 431 | switchStartupUserAccount: 0 432 | switchTouchScreenUsage: 0 433 | switchSupportedLanguagesMask: 0 434 | switchLogoType: 0 435 | switchApplicationErrorCodeCategory: 436 | switchUserAccountSaveDataSize: 0 437 | switchUserAccountSaveDataJournalSize: 0 438 | switchApplicationAttribute: 0 439 | switchCardSpecSize: -1 440 | switchCardSpecClock: -1 441 | switchRatingsMask: 0 442 | switchRatingsInt_0: 0 443 | switchRatingsInt_1: 0 444 | switchRatingsInt_2: 0 445 | switchRatingsInt_3: 0 446 | switchRatingsInt_4: 0 447 | switchRatingsInt_5: 0 448 | switchRatingsInt_6: 0 449 | switchRatingsInt_7: 0 450 | switchRatingsInt_8: 0 451 | switchRatingsInt_9: 0 452 | switchRatingsInt_10: 0 453 | switchRatingsInt_11: 0 454 | switchRatingsInt_12: 0 455 | switchLocalCommunicationIds_0: 456 | switchLocalCommunicationIds_1: 457 | switchLocalCommunicationIds_2: 458 | switchLocalCommunicationIds_3: 459 | switchLocalCommunicationIds_4: 460 | switchLocalCommunicationIds_5: 461 | switchLocalCommunicationIds_6: 462 | switchLocalCommunicationIds_7: 463 | switchParentalControl: 0 464 | switchAllowsScreenshot: 1 465 | switchAllowsVideoCapturing: 1 466 | switchAllowsRuntimeAddOnContentInstall: 0 467 | switchDataLossConfirmation: 0 468 | switchUserAccountLockEnabled: 0 469 | switchSystemResourceMemory: 16777216 470 | switchSupportedNpadStyles: 22 471 | switchNativeFsCacheSize: 32 472 | switchIsHoldTypeHorizontal: 0 473 | switchSupportedNpadCount: 8 474 | switchSocketConfigEnabled: 0 475 | switchTcpInitialSendBufferSize: 32 476 | switchTcpInitialReceiveBufferSize: 64 477 | switchTcpAutoSendBufferSizeMax: 256 478 | switchTcpAutoReceiveBufferSizeMax: 256 479 | switchUdpSendBufferSize: 9 480 | switchUdpReceiveBufferSize: 42 481 | switchSocketBufferEfficiency: 4 482 | switchSocketInitializeEnabled: 1 483 | switchNetworkInterfaceManagerInitializeEnabled: 1 484 | switchPlayerConnectionEnabled: 1 485 | switchUseNewStyleFilepaths: 0 486 | switchUseMicroSleepForYield: 1 487 | switchMicroSleepForYieldTime: 25 488 | ps4NPAgeRating: 12 489 | ps4NPTitleSecret: 490 | ps4NPTrophyPackPath: 491 | ps4ParentalLevel: 11 492 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 493 | ps4Category: 0 494 | ps4MasterVersion: 01.00 495 | ps4AppVersion: 01.00 496 | ps4AppType: 0 497 | ps4ParamSfxPath: 498 | ps4VideoOutPixelFormat: 0 499 | ps4VideoOutInitialWidth: 1920 500 | ps4VideoOutBaseModeInitialWidth: 1920 501 | ps4VideoOutReprojectionRate: 60 502 | ps4PronunciationXMLPath: 503 | ps4PronunciationSIGPath: 504 | ps4BackgroundImagePath: 505 | ps4StartupImagePath: 506 | ps4StartupImagesFolder: 507 | ps4IconImagesFolder: 508 | ps4SaveDataImagePath: 509 | ps4SdkOverride: 510 | ps4BGMPath: 511 | ps4ShareFilePath: 512 | ps4ShareOverlayImagePath: 513 | ps4PrivacyGuardImagePath: 514 | ps4ExtraSceSysFile: 515 | ps4NPtitleDatPath: 516 | ps4RemotePlayKeyAssignment: -1 517 | ps4RemotePlayKeyMappingDir: 518 | ps4PlayTogetherPlayerCount: 0 519 | ps4EnterButtonAssignment: 1 520 | ps4ApplicationParam1: 0 521 | ps4ApplicationParam2: 0 522 | ps4ApplicationParam3: 0 523 | ps4ApplicationParam4: 0 524 | ps4DownloadDataSize: 0 525 | ps4GarlicHeapSize: 2048 526 | ps4ProGarlicHeapSize: 2560 527 | playerPrefsMaxSize: 32768 528 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 529 | ps4pnSessions: 1 530 | ps4pnPresence: 1 531 | ps4pnFriends: 1 532 | ps4pnGameCustomData: 1 533 | playerPrefsSupport: 0 534 | enableApplicationExit: 0 535 | resetTempFolder: 1 536 | restrictedAudioUsageRights: 0 537 | ps4UseResolutionFallback: 0 538 | ps4ReprojectionSupport: 0 539 | ps4UseAudio3dBackend: 0 540 | ps4UseLowGarlicFragmentationMode: 1 541 | ps4SocialScreenEnabled: 0 542 | ps4ScriptOptimizationLevel: 0 543 | ps4Audio3dVirtualSpeakerCount: 14 544 | ps4attribCpuUsage: 0 545 | ps4PatchPkgPath: 546 | ps4PatchLatestPkgPath: 547 | ps4PatchChangeinfoPath: 548 | ps4PatchDayOne: 0 549 | ps4attribUserManagement: 0 550 | ps4attribMoveSupport: 0 551 | ps4attrib3DSupport: 0 552 | ps4attribShareSupport: 0 553 | ps4attribExclusiveVR: 0 554 | ps4disableAutoHideSplash: 0 555 | ps4videoRecordingFeaturesUsed: 0 556 | ps4contentSearchFeaturesUsed: 0 557 | ps4CompatibilityPS5: 0 558 | ps4GPU800MHz: 1 559 | ps4attribEyeToEyeDistanceSettingVR: 0 560 | ps4IncludedModules: [] 561 | ps4attribVROutputEnabled: 0 562 | monoEnv: 563 | splashScreenBackgroundSourceLandscape: {fileID: 0} 564 | splashScreenBackgroundSourcePortrait: {fileID: 0} 565 | blurSplashScreenBackground: 1 566 | spritePackerPolicy: 567 | webGLMemorySize: 16 568 | webGLExceptionSupport: 1 569 | webGLNameFilesAsHashes: 0 570 | webGLDataCaching: 1 571 | webGLDebugSymbols: 0 572 | webGLEmscriptenArgs: 573 | webGLModulesDirectory: 574 | webGLTemplate: APPLICATION:Default 575 | webGLAnalyzeBuildSize: 0 576 | webGLUseEmbeddedResources: 0 577 | webGLCompressionFormat: 1 578 | webGLWasmArithmeticExceptions: 0 579 | webGLLinkerTarget: 1 580 | webGLThreadsSupport: 0 581 | webGLDecompressionFallback: 0 582 | scriptingDefineSymbols: {} 583 | additionalCompilerArguments: {} 584 | platformArchitecture: {} 585 | scriptingBackend: {} 586 | il2cppCompilerConfiguration: {} 587 | managedStrippingLevel: {} 588 | incrementalIl2cppBuild: {} 589 | suppressCommonWarnings: 1 590 | allowUnsafeCode: 0 591 | useDeterministicCompilation: 1 592 | enableRoslynAnalyzers: 1 593 | additionalIl2CppArgs: 594 | scriptingRuntimeVersion: 1 595 | gcIncremental: 1 596 | assemblyVersionValidation: 1 597 | gcWBarrierValidation: 0 598 | apiCompatibilityLevelPerPlatform: {} 599 | m_RenderingPath: 1 600 | m_MobileRenderingPath: 1 601 | metroPackageName: Template_3D 602 | metroPackageVersion: 603 | metroCertificatePath: 604 | metroCertificatePassword: 605 | metroCertificateSubject: 606 | metroCertificateIssuer: 607 | metroCertificateNotAfter: 0000000000000000 608 | metroApplicationDescription: Template_3D 609 | wsaImages: {} 610 | metroTileShortName: 611 | metroTileShowName: 0 612 | metroMediumTileShowName: 0 613 | metroLargeTileShowName: 0 614 | metroWideTileShowName: 0 615 | metroSupportStreamingInstall: 0 616 | metroLastRequiredScene: 0 617 | metroDefaultTileSize: 1 618 | metroTileForegroundText: 2 619 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 620 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 621 | metroSplashScreenUseBackgroundColor: 0 622 | platformCapabilities: {} 623 | metroTargetDeviceFamilies: {} 624 | metroFTAName: 625 | metroFTAFileTypes: [] 626 | metroProtocolName: 627 | XboxOneProductId: 628 | XboxOneUpdateKey: 629 | XboxOneSandboxId: 630 | XboxOneContentId: 631 | XboxOneTitleId: 632 | XboxOneSCId: 633 | XboxOneGameOsOverridePath: 634 | XboxOnePackagingOverridePath: 635 | XboxOneAppManifestOverridePath: 636 | XboxOneVersion: 1.0.0.0 637 | XboxOnePackageEncryption: 0 638 | XboxOnePackageUpdateGranularity: 2 639 | XboxOneDescription: 640 | XboxOneLanguage: 641 | - enus 642 | XboxOneCapability: [] 643 | XboxOneGameRating: {} 644 | XboxOneIsContentPackage: 0 645 | XboxOneEnhancedXboxCompatibilityMode: 0 646 | XboxOneEnableGPUVariability: 1 647 | XboxOneSockets: {} 648 | XboxOneSplashScreen: {fileID: 0} 649 | XboxOneAllowedProductIds: [] 650 | XboxOnePersistentLocalStorageSize: 0 651 | XboxOneXTitleMemory: 8 652 | XboxOneOverrideIdentityName: 653 | XboxOneOverrideIdentityPublisher: 654 | vrEditorSettings: {} 655 | cloudServicesEnabled: 656 | UNet: 1 657 | luminIcon: 658 | m_Name: 659 | m_ModelFolderPath: 660 | m_PortalFolderPath: 661 | luminCert: 662 | m_CertPath: 663 | m_SignPackage: 1 664 | luminIsChannelApp: 0 665 | luminVersion: 666 | m_VersionCode: 1 667 | m_VersionName: 668 | apiCompatibilityLevel: 6 669 | activeInputHandler: 0 670 | cloudProjectId: 671 | framebufferDepthMemorylessMode: 0 672 | qualitySettingsNames: [] 673 | projectName: 674 | organizationId: 675 | cloudEnabled: 0 676 | legacyClampBlendShapeWeights: 0 677 | virtualTexturingSupportEnabled: 0 678 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2021.1.6f1 2 | m_EditorVersionWithRevision: 2021.1.6f1 (c0fade0cc7e9) 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: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | blendWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | blendWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | blendWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | blendWeights: 4 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo 3DS: 5 223 | Nintendo Switch: 5 224 | PS4: 5 225 | PSP2: 2 226 | Stadia: 5 227 | Standalone: 5 228 | WebGL: 3 229 | Windows Store Apps: 5 230 | XboxOne: 5 231 | iPhone: 2 232 | tvOS: 2 233 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UnityMeshVoxelizer 2 | A naive mesh voxelizer for Unity. Read the accompanying blog post [here](https://bronsonzgeb.com/index.php/2021/05/15/simple-mesh-voxelization-in-unity/). 3 | 4 | ![Example](https://github.com/bzgeb/UnityMeshVoxelizer/blob/main/Screenshots/VoxelizedMeshInUnity.png) 5 | -------------------------------------------------------------------------------- /Screenshots/VoxelizedMeshInUnity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bzgeb/UnityMeshVoxelizer/47f71c8a7fb4856671c1130599cb1b5e88bc154f/Screenshots/VoxelizedMeshInUnity.png --------------------------------------------------------------------------------