├── .gitignore ├── Assets ├── Scenes.meta ├── Scenes │ ├── 1.ForEach.unity │ ├── 1.ForEach.unity.meta │ ├── 2.CreateDynamicEntities.unity │ ├── 2.CreateDynamicEntities.unity.meta │ ├── 3.JobSystem.unity │ ├── 3.JobSystem.unity.meta │ ├── 4.SpriteWithECS.unity │ ├── 4.SpriteWithECS.unity.meta │ ├── 5.SpawnCube.unity │ └── 5.SpawnCube.unity.meta ├── Scripts.meta └── Scripts │ ├── CreateDynamicEntities.meta │ ├── CreateDynamicEntities │ ├── LevelComponent.cs │ ├── LevelComponent.cs.meta │ ├── LevelUpSystem.cs │ ├── LevelUpSystem.cs.meta │ ├── MoveSpeedComponent.cs │ ├── MoveSpeedComponent.cs.meta │ ├── MoverSystem.cs │ ├── MoverSystem.cs.meta │ ├── New Material.mat │ ├── New Material.mat.meta │ ├── Testing1.cs │ ├── Testing1.cs.meta │ ├── TestingECS.cs │ └── TestingECS.cs.meta │ ├── ForEach.meta │ ├── ForEach │ ├── EntitiesManager.cs │ ├── EntitiesManager.cs.meta │ ├── RotationCubeComponent.cs │ ├── RotationCubeComponent.cs.meta │ ├── RotationCubeSystem.cs │ └── RotationCubeSystem.cs.meta │ ├── JobSystem.meta │ ├── JobSystem │ ├── FX_Mesh_daoyan Variant.prefab │ ├── FX_Mesh_daoyan Variant.prefab.meta │ ├── FX_Mesh_daoyan.FBX │ ├── FX_Mesh_daoyan.FBX.meta │ ├── Testing.cs │ └── Testing.cs.meta │ ├── SpawnCube.meta │ ├── SpawnCube │ ├── Cube.prefab │ ├── Cube.prefab.meta │ ├── EntityDataSource.prefab │ ├── EntityDataSource.prefab.meta │ ├── NoiseHeightComponent.cs │ ├── NoiseHeightComponent.cs.meta │ ├── NoiseHeightDataSource.cs │ ├── NoiseHeightDataSource.cs.meta │ ├── NoiseHeightSystem.cs │ ├── NoiseHeightSystem.cs.meta │ ├── SpawCubeSystem.cs │ ├── SpawCubeSystem.cs.meta │ ├── SpawnCubeComponent.cs │ ├── SpawnCubeComponent.cs.meta │ ├── SpawnCubeDataSource.cs │ └── SpawnCubeDataSource.cs.meta │ ├── SpriteWithECS.meta │ └── SpriteWithECS │ ├── SpriteMaterial.mat │ ├── SpriteMaterial.mat.meta │ ├── SpriteWithECSTesting.cs │ └── SpriteWithECSTesting.cs.meta ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset ├── README.md └── 效果图 ├── 1.png ├── 10.png ├── 11.png ├── 12.png ├── 13.png ├── 14.png ├── 15.png ├── 16.png ├── 17.png ├── 18.png ├── 19.png ├── 2.png ├── 20.png ├── 21.png ├── 22.png ├── 23.png ├── 24.png ├── 25.png ├── 26.png ├── 27.png ├── 28.png ├── 29.png ├── 3.png ├── 30.png ├── 31.png ├── 32.png ├── 33.png ├── 4.png ├── 5.png ├── 6.jpg ├── 7.png ├── 8.png └── 9.png /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Mm]emoryCaptures/ 12 | 13 | # Asset meta data should only be ignored when the corresponding asset is also ignored 14 | !/[Aa]ssets/**/*.meta 15 | 16 | # Uncomment this line if you wish to ignore the asset store tools plugin 17 | # /[Aa]ssets/AssetStoreTools* 18 | 19 | # Autogenerated Jetbrains Rider plugin 20 | [Aa]ssets/Plugins/Editor/JetBrains* 21 | 22 | # Visual Studio cache directory 23 | .vs/ 24 | 25 | # Gradle cache directory 26 | .gradle/ 27 | 28 | # Autogenerated VS/MD/Consulo solution and project files 29 | ExportedObj/ 30 | .consulo/ 31 | *.csproj 32 | *.unityproj 33 | *.sln 34 | *.suo 35 | *.tmp 36 | *.user 37 | *.userprefs 38 | *.pidb 39 | *.booproj 40 | *.svd 41 | *.pdb 42 | *.mdb 43 | *.opendb 44 | *.VC.db 45 | 46 | # Unity3D generated meta files 47 | *.pidb.meta 48 | *.pdb.meta 49 | *.mdb.meta 50 | 51 | # Unity3D generated file on crash reports 52 | sysinfo.txt 53 | 54 | # Builds 55 | *.apk 56 | *.unitypackage 57 | 58 | # Crashlytics generated file 59 | crashlytics-build.properties 60 | 61 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4bcebd09e16291b4fb14e07f32300e83 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/1.ForEach.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: 11 47 | m_GIWorkflowMode: 0 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: 1 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_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &404922882 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 404922888} 132 | - component: {fileID: 404922887} 133 | - component: {fileID: 404922886} 134 | - component: {fileID: 404922885} 135 | - component: {fileID: 404922884} 136 | - component: {fileID: 404922883} 137 | m_Layer: 0 138 | m_Name: Cube 139 | m_TagString: Untagged 140 | m_Icon: {fileID: 0} 141 | m_NavMeshLayer: 0 142 | m_StaticEditorFlags: 0 143 | m_IsActive: 1 144 | --- !u!114 &404922883 145 | MonoBehaviour: 146 | m_ObjectHideFlags: 0 147 | m_CorrespondingSourceObject: {fileID: 0} 148 | m_PrefabInstance: {fileID: 0} 149 | m_PrefabAsset: {fileID: 0} 150 | m_GameObject: {fileID: 404922882} 151 | m_Enabled: 1 152 | m_EditorHideFlags: 0 153 | m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3} 154 | m_Name: 155 | m_EditorClassIdentifier: 156 | ConversionMode: 0 157 | --- !u!114 &404922884 158 | MonoBehaviour: 159 | m_ObjectHideFlags: 0 160 | m_CorrespondingSourceObject: {fileID: 0} 161 | m_PrefabInstance: {fileID: 0} 162 | m_PrefabAsset: {fileID: 0} 163 | m_GameObject: {fileID: 404922882} 164 | m_Enabled: 1 165 | m_EditorHideFlags: 0 166 | m_Script: {fileID: 11500000, guid: eb8f80b5abbacae4dad7e1b72e984356, type: 3} 167 | m_Name: 168 | m_EditorClassIdentifier: 169 | FloCubeSpeed: 5 170 | --- !u!65 &404922885 171 | BoxCollider: 172 | m_ObjectHideFlags: 0 173 | m_CorrespondingSourceObject: {fileID: 0} 174 | m_PrefabInstance: {fileID: 0} 175 | m_PrefabAsset: {fileID: 0} 176 | m_GameObject: {fileID: 404922882} 177 | m_Material: {fileID: 0} 178 | m_IsTrigger: 0 179 | m_Enabled: 1 180 | serializedVersion: 2 181 | m_Size: {x: 1, y: 1, z: 1} 182 | m_Center: {x: 0, y: 0, z: 0} 183 | --- !u!23 &404922886 184 | MeshRenderer: 185 | m_ObjectHideFlags: 0 186 | m_CorrespondingSourceObject: {fileID: 0} 187 | m_PrefabInstance: {fileID: 0} 188 | m_PrefabAsset: {fileID: 0} 189 | m_GameObject: {fileID: 404922882} 190 | m_Enabled: 1 191 | m_CastShadows: 1 192 | m_ReceiveShadows: 1 193 | m_DynamicOccludee: 1 194 | m_MotionVectors: 1 195 | m_LightProbeUsage: 1 196 | m_ReflectionProbeUsage: 1 197 | m_RenderingLayerMask: 1 198 | m_RendererPriority: 0 199 | m_Materials: 200 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 201 | m_StaticBatchInfo: 202 | firstSubMesh: 0 203 | subMeshCount: 0 204 | m_StaticBatchRoot: {fileID: 0} 205 | m_ProbeAnchor: {fileID: 0} 206 | m_LightProbeVolumeOverride: {fileID: 0} 207 | m_ScaleInLightmap: 1 208 | m_ReceiveGI: 1 209 | m_PreserveUVs: 0 210 | m_IgnoreNormalsForChartDetection: 0 211 | m_ImportantGI: 0 212 | m_StitchLightmapSeams: 1 213 | m_SelectedEditorRenderState: 3 214 | m_MinimumChartSize: 4 215 | m_AutoUVMaxDistance: 0.5 216 | m_AutoUVMaxAngle: 89 217 | m_LightmapParameters: {fileID: 0} 218 | m_SortingLayerID: 0 219 | m_SortingLayer: 0 220 | m_SortingOrder: 0 221 | --- !u!33 &404922887 222 | MeshFilter: 223 | m_ObjectHideFlags: 0 224 | m_CorrespondingSourceObject: {fileID: 0} 225 | m_PrefabInstance: {fileID: 0} 226 | m_PrefabAsset: {fileID: 0} 227 | m_GameObject: {fileID: 404922882} 228 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 229 | --- !u!4 &404922888 230 | Transform: 231 | m_ObjectHideFlags: 0 232 | m_CorrespondingSourceObject: {fileID: 0} 233 | m_PrefabInstance: {fileID: 0} 234 | m_PrefabAsset: {fileID: 0} 235 | m_GameObject: {fileID: 404922882} 236 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 237 | m_LocalPosition: {x: 0, y: 0, z: 0} 238 | m_LocalScale: {x: 1, y: 1, z: 1} 239 | m_Children: [] 240 | m_Father: {fileID: 0} 241 | m_RootOrder: 2 242 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 243 | --- !u!1 &705507993 244 | GameObject: 245 | m_ObjectHideFlags: 0 246 | m_CorrespondingSourceObject: {fileID: 0} 247 | m_PrefabInstance: {fileID: 0} 248 | m_PrefabAsset: {fileID: 0} 249 | serializedVersion: 6 250 | m_Component: 251 | - component: {fileID: 705507995} 252 | - component: {fileID: 705507994} 253 | m_Layer: 0 254 | m_Name: Directional Light 255 | m_TagString: Untagged 256 | m_Icon: {fileID: 0} 257 | m_NavMeshLayer: 0 258 | m_StaticEditorFlags: 0 259 | m_IsActive: 1 260 | --- !u!108 &705507994 261 | Light: 262 | m_ObjectHideFlags: 0 263 | m_CorrespondingSourceObject: {fileID: 0} 264 | m_PrefabInstance: {fileID: 0} 265 | m_PrefabAsset: {fileID: 0} 266 | m_GameObject: {fileID: 705507993} 267 | m_Enabled: 1 268 | serializedVersion: 9 269 | m_Type: 1 270 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 271 | m_Intensity: 1 272 | m_Range: 10 273 | m_SpotAngle: 30 274 | m_InnerSpotAngle: 21.80208 275 | m_CookieSize: 10 276 | m_Shadows: 277 | m_Type: 2 278 | m_Resolution: -1 279 | m_CustomResolution: -1 280 | m_Strength: 1 281 | m_Bias: 0.05 282 | m_NormalBias: 0.4 283 | m_NearPlane: 0.2 284 | m_CullingMatrixOverride: 285 | e00: 1 286 | e01: 0 287 | e02: 0 288 | e03: 0 289 | e10: 0 290 | e11: 1 291 | e12: 0 292 | e13: 0 293 | e20: 0 294 | e21: 0 295 | e22: 1 296 | e23: 0 297 | e30: 0 298 | e31: 0 299 | e32: 0 300 | e33: 1 301 | m_UseCullingMatrixOverride: 0 302 | m_Cookie: {fileID: 0} 303 | m_DrawHalo: 0 304 | m_Flare: {fileID: 0} 305 | m_RenderMode: 0 306 | m_CullingMask: 307 | serializedVersion: 2 308 | m_Bits: 4294967295 309 | m_RenderingLayerMask: 1 310 | m_Lightmapping: 1 311 | m_LightShadowCasterMode: 0 312 | m_AreaSize: {x: 1, y: 1} 313 | m_BounceIntensity: 1 314 | m_ColorTemperature: 6570 315 | m_UseColorTemperature: 0 316 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 317 | m_UseBoundingSphereOverride: 0 318 | m_ShadowRadius: 0 319 | m_ShadowAngle: 0 320 | --- !u!4 &705507995 321 | Transform: 322 | m_ObjectHideFlags: 0 323 | m_CorrespondingSourceObject: {fileID: 0} 324 | m_PrefabInstance: {fileID: 0} 325 | m_PrefabAsset: {fileID: 0} 326 | m_GameObject: {fileID: 705507993} 327 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 328 | m_LocalPosition: {x: 0, y: 3, z: 0} 329 | m_LocalScale: {x: 1, y: 1, z: 1} 330 | m_Children: [] 331 | m_Father: {fileID: 0} 332 | m_RootOrder: 1 333 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 334 | --- !u!1 &963194225 335 | GameObject: 336 | m_ObjectHideFlags: 0 337 | m_CorrespondingSourceObject: {fileID: 0} 338 | m_PrefabInstance: {fileID: 0} 339 | m_PrefabAsset: {fileID: 0} 340 | serializedVersion: 6 341 | m_Component: 342 | - component: {fileID: 963194228} 343 | - component: {fileID: 963194227} 344 | - component: {fileID: 963194226} 345 | m_Layer: 0 346 | m_Name: Main Camera 347 | m_TagString: MainCamera 348 | m_Icon: {fileID: 0} 349 | m_NavMeshLayer: 0 350 | m_StaticEditorFlags: 0 351 | m_IsActive: 1 352 | --- !u!81 &963194226 353 | AudioListener: 354 | m_ObjectHideFlags: 0 355 | m_CorrespondingSourceObject: {fileID: 0} 356 | m_PrefabInstance: {fileID: 0} 357 | m_PrefabAsset: {fileID: 0} 358 | m_GameObject: {fileID: 963194225} 359 | m_Enabled: 1 360 | --- !u!20 &963194227 361 | Camera: 362 | m_ObjectHideFlags: 0 363 | m_CorrespondingSourceObject: {fileID: 0} 364 | m_PrefabInstance: {fileID: 0} 365 | m_PrefabAsset: {fileID: 0} 366 | m_GameObject: {fileID: 963194225} 367 | m_Enabled: 1 368 | serializedVersion: 2 369 | m_ClearFlags: 1 370 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 371 | m_projectionMatrixMode: 1 372 | m_GateFitMode: 2 373 | m_FOVAxisMode: 0 374 | m_SensorSize: {x: 36, y: 24} 375 | m_LensShift: {x: 0, y: 0} 376 | m_FocalLength: 50 377 | m_NormalizedViewPortRect: 378 | serializedVersion: 2 379 | x: 0 380 | y: 0 381 | width: 1 382 | height: 1 383 | near clip plane: 0.3 384 | far clip plane: 1000 385 | field of view: 60 386 | orthographic: 0 387 | orthographic size: 5 388 | m_Depth: -1 389 | m_CullingMask: 390 | serializedVersion: 2 391 | m_Bits: 4294967295 392 | m_RenderingPath: -1 393 | m_TargetTexture: {fileID: 0} 394 | m_TargetDisplay: 0 395 | m_TargetEye: 3 396 | m_HDR: 1 397 | m_AllowMSAA: 1 398 | m_AllowDynamicResolution: 0 399 | m_ForceIntoRT: 0 400 | m_OcclusionCulling: 1 401 | m_StereoConvergence: 10 402 | m_StereoSeparation: 0.022 403 | --- !u!4 &963194228 404 | Transform: 405 | m_ObjectHideFlags: 0 406 | m_CorrespondingSourceObject: {fileID: 0} 407 | m_PrefabInstance: {fileID: 0} 408 | m_PrefabAsset: {fileID: 0} 409 | m_GameObject: {fileID: 963194225} 410 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 411 | m_LocalPosition: {x: 0, y: 1, z: -10} 412 | m_LocalScale: {x: 1, y: 1, z: 1} 413 | m_Children: [] 414 | m_Father: {fileID: 0} 415 | m_RootOrder: 0 416 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 417 | --- !u!1 &1084317509 418 | GameObject: 419 | m_ObjectHideFlags: 0 420 | m_CorrespondingSourceObject: {fileID: 0} 421 | m_PrefabInstance: {fileID: 0} 422 | m_PrefabAsset: {fileID: 0} 423 | serializedVersion: 6 424 | m_Component: 425 | - component: {fileID: 1084317515} 426 | - component: {fileID: 1084317514} 427 | - component: {fileID: 1084317513} 428 | - component: {fileID: 1084317512} 429 | - component: {fileID: 1084317511} 430 | - component: {fileID: 1084317510} 431 | m_Layer: 0 432 | m_Name: Cube (1) 433 | m_TagString: Untagged 434 | m_Icon: {fileID: 0} 435 | m_NavMeshLayer: 0 436 | m_StaticEditorFlags: 0 437 | m_IsActive: 1 438 | --- !u!114 &1084317510 439 | MonoBehaviour: 440 | m_ObjectHideFlags: 0 441 | m_CorrespondingSourceObject: {fileID: 0} 442 | m_PrefabInstance: {fileID: 0} 443 | m_PrefabAsset: {fileID: 0} 444 | m_GameObject: {fileID: 1084317509} 445 | m_Enabled: 1 446 | m_EditorHideFlags: 0 447 | m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3} 448 | m_Name: 449 | m_EditorClassIdentifier: 450 | ConversionMode: 0 451 | --- !u!114 &1084317511 452 | MonoBehaviour: 453 | m_ObjectHideFlags: 0 454 | m_CorrespondingSourceObject: {fileID: 0} 455 | m_PrefabInstance: {fileID: 0} 456 | m_PrefabAsset: {fileID: 0} 457 | m_GameObject: {fileID: 1084317509} 458 | m_Enabled: 1 459 | m_EditorHideFlags: 0 460 | m_Script: {fileID: 11500000, guid: eb8f80b5abbacae4dad7e1b72e984356, type: 3} 461 | m_Name: 462 | m_EditorClassIdentifier: 463 | FloCubeSpeed: 10 464 | --- !u!65 &1084317512 465 | BoxCollider: 466 | m_ObjectHideFlags: 0 467 | m_CorrespondingSourceObject: {fileID: 0} 468 | m_PrefabInstance: {fileID: 0} 469 | m_PrefabAsset: {fileID: 0} 470 | m_GameObject: {fileID: 1084317509} 471 | m_Material: {fileID: 0} 472 | m_IsTrigger: 0 473 | m_Enabled: 1 474 | serializedVersion: 2 475 | m_Size: {x: 1, y: 1, z: 1} 476 | m_Center: {x: 0, y: 0, z: 0} 477 | --- !u!23 &1084317513 478 | MeshRenderer: 479 | m_ObjectHideFlags: 0 480 | m_CorrespondingSourceObject: {fileID: 0} 481 | m_PrefabInstance: {fileID: 0} 482 | m_PrefabAsset: {fileID: 0} 483 | m_GameObject: {fileID: 1084317509} 484 | m_Enabled: 1 485 | m_CastShadows: 1 486 | m_ReceiveShadows: 1 487 | m_DynamicOccludee: 1 488 | m_MotionVectors: 1 489 | m_LightProbeUsage: 1 490 | m_ReflectionProbeUsage: 1 491 | m_RenderingLayerMask: 1 492 | m_RendererPriority: 0 493 | m_Materials: 494 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 495 | m_StaticBatchInfo: 496 | firstSubMesh: 0 497 | subMeshCount: 0 498 | m_StaticBatchRoot: {fileID: 0} 499 | m_ProbeAnchor: {fileID: 0} 500 | m_LightProbeVolumeOverride: {fileID: 0} 501 | m_ScaleInLightmap: 1 502 | m_ReceiveGI: 1 503 | m_PreserveUVs: 0 504 | m_IgnoreNormalsForChartDetection: 0 505 | m_ImportantGI: 0 506 | m_StitchLightmapSeams: 1 507 | m_SelectedEditorRenderState: 3 508 | m_MinimumChartSize: 4 509 | m_AutoUVMaxDistance: 0.5 510 | m_AutoUVMaxAngle: 89 511 | m_LightmapParameters: {fileID: 0} 512 | m_SortingLayerID: 0 513 | m_SortingLayer: 0 514 | m_SortingOrder: 0 515 | --- !u!33 &1084317514 516 | MeshFilter: 517 | m_ObjectHideFlags: 0 518 | m_CorrespondingSourceObject: {fileID: 0} 519 | m_PrefabInstance: {fileID: 0} 520 | m_PrefabAsset: {fileID: 0} 521 | m_GameObject: {fileID: 1084317509} 522 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 523 | --- !u!4 &1084317515 524 | Transform: 525 | m_ObjectHideFlags: 0 526 | m_CorrespondingSourceObject: {fileID: 0} 527 | m_PrefabInstance: {fileID: 0} 528 | m_PrefabAsset: {fileID: 0} 529 | m_GameObject: {fileID: 1084317509} 530 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 531 | m_LocalPosition: {x: -4.7, y: 0, z: 0} 532 | m_LocalScale: {x: 1, y: 1, z: 1} 533 | m_Children: [] 534 | m_Father: {fileID: 0} 535 | m_RootOrder: 3 536 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 537 | --- !u!1 &1112889480 538 | GameObject: 539 | m_ObjectHideFlags: 0 540 | m_CorrespondingSourceObject: {fileID: 0} 541 | m_PrefabInstance: {fileID: 0} 542 | m_PrefabAsset: {fileID: 0} 543 | serializedVersion: 6 544 | m_Component: 545 | - component: {fileID: 1112889486} 546 | - component: {fileID: 1112889485} 547 | - component: {fileID: 1112889484} 548 | - component: {fileID: 1112889483} 549 | - component: {fileID: 1112889482} 550 | - component: {fileID: 1112889481} 551 | m_Layer: 0 552 | m_Name: Cube (2) 553 | m_TagString: Untagged 554 | m_Icon: {fileID: 0} 555 | m_NavMeshLayer: 0 556 | m_StaticEditorFlags: 0 557 | m_IsActive: 1 558 | --- !u!114 &1112889481 559 | MonoBehaviour: 560 | m_ObjectHideFlags: 0 561 | m_CorrespondingSourceObject: {fileID: 0} 562 | m_PrefabInstance: {fileID: 0} 563 | m_PrefabAsset: {fileID: 0} 564 | m_GameObject: {fileID: 1112889480} 565 | m_Enabled: 1 566 | m_EditorHideFlags: 0 567 | m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3} 568 | m_Name: 569 | m_EditorClassIdentifier: 570 | ConversionMode: 0 571 | --- !u!114 &1112889482 572 | MonoBehaviour: 573 | m_ObjectHideFlags: 0 574 | m_CorrespondingSourceObject: {fileID: 0} 575 | m_PrefabInstance: {fileID: 0} 576 | m_PrefabAsset: {fileID: 0} 577 | m_GameObject: {fileID: 1112889480} 578 | m_Enabled: 1 579 | m_EditorHideFlags: 0 580 | m_Script: {fileID: 11500000, guid: eb8f80b5abbacae4dad7e1b72e984356, type: 3} 581 | m_Name: 582 | m_EditorClassIdentifier: 583 | FloCubeSpeed: 15 584 | --- !u!65 &1112889483 585 | BoxCollider: 586 | m_ObjectHideFlags: 0 587 | m_CorrespondingSourceObject: {fileID: 0} 588 | m_PrefabInstance: {fileID: 0} 589 | m_PrefabAsset: {fileID: 0} 590 | m_GameObject: {fileID: 1112889480} 591 | m_Material: {fileID: 0} 592 | m_IsTrigger: 0 593 | m_Enabled: 1 594 | serializedVersion: 2 595 | m_Size: {x: 1, y: 1, z: 1} 596 | m_Center: {x: 0, y: 0, z: 0} 597 | --- !u!23 &1112889484 598 | MeshRenderer: 599 | m_ObjectHideFlags: 0 600 | m_CorrespondingSourceObject: {fileID: 0} 601 | m_PrefabInstance: {fileID: 0} 602 | m_PrefabAsset: {fileID: 0} 603 | m_GameObject: {fileID: 1112889480} 604 | m_Enabled: 1 605 | m_CastShadows: 1 606 | m_ReceiveShadows: 1 607 | m_DynamicOccludee: 1 608 | m_MotionVectors: 1 609 | m_LightProbeUsage: 1 610 | m_ReflectionProbeUsage: 1 611 | m_RenderingLayerMask: 1 612 | m_RendererPriority: 0 613 | m_Materials: 614 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 615 | m_StaticBatchInfo: 616 | firstSubMesh: 0 617 | subMeshCount: 0 618 | m_StaticBatchRoot: {fileID: 0} 619 | m_ProbeAnchor: {fileID: 0} 620 | m_LightProbeVolumeOverride: {fileID: 0} 621 | m_ScaleInLightmap: 1 622 | m_ReceiveGI: 1 623 | m_PreserveUVs: 0 624 | m_IgnoreNormalsForChartDetection: 0 625 | m_ImportantGI: 0 626 | m_StitchLightmapSeams: 1 627 | m_SelectedEditorRenderState: 3 628 | m_MinimumChartSize: 4 629 | m_AutoUVMaxDistance: 0.5 630 | m_AutoUVMaxAngle: 89 631 | m_LightmapParameters: {fileID: 0} 632 | m_SortingLayerID: 0 633 | m_SortingLayer: 0 634 | m_SortingOrder: 0 635 | --- !u!33 &1112889485 636 | MeshFilter: 637 | m_ObjectHideFlags: 0 638 | m_CorrespondingSourceObject: {fileID: 0} 639 | m_PrefabInstance: {fileID: 0} 640 | m_PrefabAsset: {fileID: 0} 641 | m_GameObject: {fileID: 1112889480} 642 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 643 | --- !u!4 &1112889486 644 | Transform: 645 | m_ObjectHideFlags: 0 646 | m_CorrespondingSourceObject: {fileID: 0} 647 | m_PrefabInstance: {fileID: 0} 648 | m_PrefabAsset: {fileID: 0} 649 | m_GameObject: {fileID: 1112889480} 650 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 651 | m_LocalPosition: {x: 4.85, y: 0, z: 0} 652 | m_LocalScale: {x: 1, y: 1, z: 1} 653 | m_Children: [] 654 | m_Father: {fileID: 0} 655 | m_RootOrder: 4 656 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 657 | -------------------------------------------------------------------------------- /Assets/Scenes/1.ForEach.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/2.CreateDynamicEntities.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: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 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: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &201037837 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 201037839} 132 | - component: {fileID: 201037838} 133 | m_Layer: 0 134 | m_Name: Directional Light 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!108 &201037838 141 | Light: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 201037837} 147 | m_Enabled: 1 148 | serializedVersion: 9 149 | m_Type: 1 150 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 151 | m_Intensity: 1 152 | m_Range: 10 153 | m_SpotAngle: 30 154 | m_InnerSpotAngle: 21.80208 155 | m_CookieSize: 100000 156 | m_Shadows: 157 | m_Type: 2 158 | m_Resolution: -1 159 | m_CustomResolution: -1 160 | m_Strength: 1 161 | m_Bias: 0.05 162 | m_NormalBias: 0.4 163 | m_NearPlane: 0.2 164 | m_CullingMatrixOverride: 165 | e00: 1 166 | e01: 0 167 | e02: 0 168 | e03: 0 169 | e10: 0 170 | e11: 1 171 | e12: 0 172 | e13: 0 173 | e20: 0 174 | e21: 0 175 | e22: 1 176 | e23: 0 177 | e30: 0 178 | e31: 0 179 | e32: 0 180 | e33: 1 181 | m_UseCullingMatrixOverride: 0 182 | m_Cookie: {fileID: 0} 183 | m_DrawHalo: 0 184 | m_Flare: {fileID: 0} 185 | m_RenderMode: 0 186 | m_CullingMask: 187 | serializedVersion: 2 188 | m_Bits: 4294967295 189 | m_RenderingLayerMask: 1 190 | m_Lightmapping: 4 191 | m_LightShadowCasterMode: 0 192 | m_AreaSize: {x: 1, y: 1} 193 | m_BounceIntensity: 1 194 | m_ColorTemperature: 6570 195 | m_UseColorTemperature: 0 196 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 197 | m_UseBoundingSphereOverride: 0 198 | m_ShadowRadius: 0 199 | m_ShadowAngle: 0 200 | --- !u!4 &201037839 201 | Transform: 202 | m_ObjectHideFlags: 0 203 | m_CorrespondingSourceObject: {fileID: 0} 204 | m_PrefabInstance: {fileID: 0} 205 | m_PrefabAsset: {fileID: 0} 206 | m_GameObject: {fileID: 201037837} 207 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 208 | m_LocalPosition: {x: 0, y: 3, z: 0} 209 | m_LocalScale: {x: 1, y: 1, z: 1} 210 | m_Children: [] 211 | m_Father: {fileID: 0} 212 | m_RootOrder: 1 213 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 214 | --- !u!1 &845412027 215 | GameObject: 216 | m_ObjectHideFlags: 0 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInstance: {fileID: 0} 219 | m_PrefabAsset: {fileID: 0} 220 | serializedVersion: 6 221 | m_Component: 222 | - component: {fileID: 845412030} 223 | - component: {fileID: 845412029} 224 | - component: {fileID: 845412028} 225 | - component: {fileID: 845412031} 226 | - component: {fileID: 845412032} 227 | m_Layer: 0 228 | m_Name: Main Camera 229 | m_TagString: MainCamera 230 | m_Icon: {fileID: 0} 231 | m_NavMeshLayer: 0 232 | m_StaticEditorFlags: 0 233 | m_IsActive: 1 234 | --- !u!81 &845412028 235 | AudioListener: 236 | m_ObjectHideFlags: 0 237 | m_CorrespondingSourceObject: {fileID: 0} 238 | m_PrefabInstance: {fileID: 0} 239 | m_PrefabAsset: {fileID: 0} 240 | m_GameObject: {fileID: 845412027} 241 | m_Enabled: 1 242 | --- !u!20 &845412029 243 | Camera: 244 | m_ObjectHideFlags: 0 245 | m_CorrespondingSourceObject: {fileID: 0} 246 | m_PrefabInstance: {fileID: 0} 247 | m_PrefabAsset: {fileID: 0} 248 | m_GameObject: {fileID: 845412027} 249 | m_Enabled: 1 250 | serializedVersion: 2 251 | m_ClearFlags: 1 252 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 253 | m_projectionMatrixMode: 1 254 | m_GateFitMode: 2 255 | m_FOVAxisMode: 0 256 | m_SensorSize: {x: 36, y: 24} 257 | m_LensShift: {x: 0, y: 0} 258 | m_FocalLength: 50 259 | m_NormalizedViewPortRect: 260 | serializedVersion: 2 261 | x: 0 262 | y: 0 263 | width: 1 264 | height: 1 265 | near clip plane: 0.3 266 | far clip plane: 1000 267 | field of view: 60 268 | orthographic: 0 269 | orthographic size: 5 270 | m_Depth: -1 271 | m_CullingMask: 272 | serializedVersion: 2 273 | m_Bits: 4294967295 274 | m_RenderingPath: -1 275 | m_TargetTexture: {fileID: 0} 276 | m_TargetDisplay: 0 277 | m_TargetEye: 3 278 | m_HDR: 1 279 | m_AllowMSAA: 1 280 | m_AllowDynamicResolution: 0 281 | m_ForceIntoRT: 0 282 | m_OcclusionCulling: 1 283 | m_StereoConvergence: 10 284 | m_StereoSeparation: 0.022 285 | --- !u!4 &845412030 286 | Transform: 287 | m_ObjectHideFlags: 0 288 | m_CorrespondingSourceObject: {fileID: 0} 289 | m_PrefabInstance: {fileID: 0} 290 | m_PrefabAsset: {fileID: 0} 291 | m_GameObject: {fileID: 845412027} 292 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 293 | m_LocalPosition: {x: 0, y: 1, z: -10} 294 | m_LocalScale: {x: 1, y: 1, z: 1} 295 | m_Children: [] 296 | m_Father: {fileID: 0} 297 | m_RootOrder: 0 298 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 299 | --- !u!114 &845412031 300 | MonoBehaviour: 301 | m_ObjectHideFlags: 0 302 | m_CorrespondingSourceObject: {fileID: 0} 303 | m_PrefabInstance: {fileID: 0} 304 | m_PrefabAsset: {fileID: 0} 305 | m_GameObject: {fileID: 845412027} 306 | m_Enabled: 1 307 | m_EditorHideFlags: 0 308 | m_Script: {fileID: 11500000, guid: 02c52a96670928644ae504219e650d23, type: 3} 309 | m_Name: 310 | m_EditorClassIdentifier: 311 | mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 312 | material: {fileID: 2100000, guid: b82c3ee1fec634d43b0054ac6da9352a, type: 2} 313 | count: 10000 314 | --- !u!114 &845412032 315 | MonoBehaviour: 316 | m_ObjectHideFlags: 0 317 | m_CorrespondingSourceObject: {fileID: 0} 318 | m_PrefabInstance: {fileID: 0} 319 | m_PrefabAsset: {fileID: 0} 320 | m_GameObject: {fileID: 845412027} 321 | m_Enabled: 0 322 | m_EditorHideFlags: 0 323 | m_Script: {fileID: 11500000, guid: 62c36a8ea43908348b76bfea7a3ad464, type: 3} 324 | m_Name: 325 | m_EditorClassIdentifier: 326 | count: 10000 327 | -------------------------------------------------------------------------------- /Assets/Scenes/2.CreateDynamicEntities.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 023ae7223830aea4d8a52490e503e921 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/3.JobSystem.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: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 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: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &947576981 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 947576984} 132 | - component: {fileID: 947576983} 133 | - component: {fileID: 947576982} 134 | - component: {fileID: 947576985} 135 | m_Layer: 0 136 | m_Name: Main Camera 137 | m_TagString: MainCamera 138 | m_Icon: {fileID: 0} 139 | m_NavMeshLayer: 0 140 | m_StaticEditorFlags: 0 141 | m_IsActive: 1 142 | --- !u!81 &947576982 143 | AudioListener: 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 947576981} 149 | m_Enabled: 1 150 | --- !u!20 &947576983 151 | Camera: 152 | m_ObjectHideFlags: 0 153 | m_CorrespondingSourceObject: {fileID: 0} 154 | m_PrefabInstance: {fileID: 0} 155 | m_PrefabAsset: {fileID: 0} 156 | m_GameObject: {fileID: 947576981} 157 | m_Enabled: 1 158 | serializedVersion: 2 159 | m_ClearFlags: 1 160 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 161 | m_projectionMatrixMode: 1 162 | m_GateFitMode: 2 163 | m_FOVAxisMode: 0 164 | m_SensorSize: {x: 36, y: 24} 165 | m_LensShift: {x: 0, y: 0} 166 | m_FocalLength: 50 167 | m_NormalizedViewPortRect: 168 | serializedVersion: 2 169 | x: 0 170 | y: 0 171 | width: 1 172 | height: 1 173 | near clip plane: 0.3 174 | far clip plane: 1000 175 | field of view: 60 176 | orthographic: 0 177 | orthographic size: 5 178 | m_Depth: -1 179 | m_CullingMask: 180 | serializedVersion: 2 181 | m_Bits: 4294967295 182 | m_RenderingPath: -1 183 | m_TargetTexture: {fileID: 0} 184 | m_TargetDisplay: 0 185 | m_TargetEye: 3 186 | m_HDR: 1 187 | m_AllowMSAA: 1 188 | m_AllowDynamicResolution: 0 189 | m_ForceIntoRT: 0 190 | m_OcclusionCulling: 1 191 | m_StereoConvergence: 10 192 | m_StereoSeparation: 0.022 193 | --- !u!4 &947576984 194 | Transform: 195 | m_ObjectHideFlags: 0 196 | m_CorrespondingSourceObject: {fileID: 0} 197 | m_PrefabInstance: {fileID: 0} 198 | m_PrefabAsset: {fileID: 0} 199 | m_GameObject: {fileID: 947576981} 200 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 201 | m_LocalPosition: {x: 0, y: 1, z: -10} 202 | m_LocalScale: {x: 1, y: 1, z: 1} 203 | m_Children: [] 204 | m_Father: {fileID: 0} 205 | m_RootOrder: 0 206 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 207 | --- !u!114 &947576985 208 | MonoBehaviour: 209 | m_ObjectHideFlags: 0 210 | m_CorrespondingSourceObject: {fileID: 0} 211 | m_PrefabInstance: {fileID: 0} 212 | m_PrefabAsset: {fileID: 0} 213 | m_GameObject: {fileID: 947576981} 214 | m_Enabled: 1 215 | m_EditorHideFlags: 0 216 | m_Script: {fileID: 11500000, guid: d6323aedc4b4fd04689a0fce6f9e87b8, type: 3} 217 | m_Name: 218 | m_EditorClassIdentifier: 219 | useJobs: 1 220 | count: 100 221 | zombieCount: 1000 222 | pfZombie: {fileID: 2407991758500648966, guid: 553618e33d23db44c827a11f7c8552a7, 223 | type: 3} 224 | --- !u!1 &1478797311 225 | GameObject: 226 | m_ObjectHideFlags: 0 227 | m_CorrespondingSourceObject: {fileID: 0} 228 | m_PrefabInstance: {fileID: 0} 229 | m_PrefabAsset: {fileID: 0} 230 | serializedVersion: 6 231 | m_Component: 232 | - component: {fileID: 1478797313} 233 | - component: {fileID: 1478797312} 234 | m_Layer: 0 235 | m_Name: Directional Light 236 | m_TagString: Untagged 237 | m_Icon: {fileID: 0} 238 | m_NavMeshLayer: 0 239 | m_StaticEditorFlags: 0 240 | m_IsActive: 1 241 | --- !u!108 &1478797312 242 | Light: 243 | m_ObjectHideFlags: 0 244 | m_CorrespondingSourceObject: {fileID: 0} 245 | m_PrefabInstance: {fileID: 0} 246 | m_PrefabAsset: {fileID: 0} 247 | m_GameObject: {fileID: 1478797311} 248 | m_Enabled: 1 249 | serializedVersion: 9 250 | m_Type: 1 251 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 252 | m_Intensity: 1 253 | m_Range: 10 254 | m_SpotAngle: 30 255 | m_InnerSpotAngle: 21.80208 256 | m_CookieSize: 10 257 | m_Shadows: 258 | m_Type: 2 259 | m_Resolution: -1 260 | m_CustomResolution: -1 261 | m_Strength: 1 262 | m_Bias: 0.05 263 | m_NormalBias: 0.4 264 | m_NearPlane: 0.2 265 | m_CullingMatrixOverride: 266 | e00: 1 267 | e01: 0 268 | e02: 0 269 | e03: 0 270 | e10: 0 271 | e11: 1 272 | e12: 0 273 | e13: 0 274 | e20: 0 275 | e21: 0 276 | e22: 1 277 | e23: 0 278 | e30: 0 279 | e31: 0 280 | e32: 0 281 | e33: 1 282 | m_UseCullingMatrixOverride: 0 283 | m_Cookie: {fileID: 0} 284 | m_DrawHalo: 0 285 | m_Flare: {fileID: 0} 286 | m_RenderMode: 0 287 | m_CullingMask: 288 | serializedVersion: 2 289 | m_Bits: 4294967295 290 | m_RenderingLayerMask: 1 291 | m_Lightmapping: 4 292 | m_LightShadowCasterMode: 0 293 | m_AreaSize: {x: 1, y: 1} 294 | m_BounceIntensity: 1 295 | m_ColorTemperature: 6570 296 | m_UseColorTemperature: 0 297 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 298 | m_UseBoundingSphereOverride: 0 299 | m_ShadowRadius: 0 300 | m_ShadowAngle: 0 301 | --- !u!4 &1478797313 302 | Transform: 303 | m_ObjectHideFlags: 0 304 | m_CorrespondingSourceObject: {fileID: 0} 305 | m_PrefabInstance: {fileID: 0} 306 | m_PrefabAsset: {fileID: 0} 307 | m_GameObject: {fileID: 1478797311} 308 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 309 | m_LocalPosition: {x: 0, y: 3, z: 0} 310 | m_LocalScale: {x: 1, y: 1, z: 1} 311 | m_Children: [] 312 | m_Father: {fileID: 0} 313 | m_RootOrder: 1 314 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 315 | -------------------------------------------------------------------------------- /Assets/Scenes/3.JobSystem.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6440f8ad3c10c7459b4acbd7bd42926 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/4.SpriteWithECS.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: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 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: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &132418236 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 132418238} 132 | - component: {fileID: 132418237} 133 | m_Layer: 0 134 | m_Name: Directional Light 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!108 &132418237 141 | Light: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 132418236} 147 | m_Enabled: 1 148 | serializedVersion: 9 149 | m_Type: 1 150 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 151 | m_Intensity: 1 152 | m_Range: 10 153 | m_SpotAngle: 30 154 | m_InnerSpotAngle: 21.80208 155 | m_CookieSize: 10 156 | m_Shadows: 157 | m_Type: 2 158 | m_Resolution: -1 159 | m_CustomResolution: -1 160 | m_Strength: 1 161 | m_Bias: 0.05 162 | m_NormalBias: 0.4 163 | m_NearPlane: 0.2 164 | m_CullingMatrixOverride: 165 | e00: 1 166 | e01: 0 167 | e02: 0 168 | e03: 0 169 | e10: 0 170 | e11: 1 171 | e12: 0 172 | e13: 0 173 | e20: 0 174 | e21: 0 175 | e22: 1 176 | e23: 0 177 | e30: 0 178 | e31: 0 179 | e32: 0 180 | e33: 1 181 | m_UseCullingMatrixOverride: 0 182 | m_Cookie: {fileID: 0} 183 | m_DrawHalo: 0 184 | m_Flare: {fileID: 0} 185 | m_RenderMode: 0 186 | m_CullingMask: 187 | serializedVersion: 2 188 | m_Bits: 4294967295 189 | m_RenderingLayerMask: 1 190 | m_Lightmapping: 4 191 | m_LightShadowCasterMode: 0 192 | m_AreaSize: {x: 1, y: 1} 193 | m_BounceIntensity: 1 194 | m_ColorTemperature: 6570 195 | m_UseColorTemperature: 0 196 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 197 | m_UseBoundingSphereOverride: 0 198 | m_ShadowRadius: 0 199 | m_ShadowAngle: 0 200 | --- !u!4 &132418238 201 | Transform: 202 | m_ObjectHideFlags: 0 203 | m_CorrespondingSourceObject: {fileID: 0} 204 | m_PrefabInstance: {fileID: 0} 205 | m_PrefabAsset: {fileID: 0} 206 | m_GameObject: {fileID: 132418236} 207 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 208 | m_LocalPosition: {x: 0, y: 3, z: 0} 209 | m_LocalScale: {x: 1, y: 1, z: 1} 210 | m_Children: [] 211 | m_Father: {fileID: 0} 212 | m_RootOrder: 1 213 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 214 | --- !u!1 &254457571 215 | GameObject: 216 | m_ObjectHideFlags: 0 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInstance: {fileID: 0} 219 | m_PrefabAsset: {fileID: 0} 220 | serializedVersion: 6 221 | m_Component: 222 | - component: {fileID: 254457574} 223 | - component: {fileID: 254457573} 224 | - component: {fileID: 254457572} 225 | - component: {fileID: 254457575} 226 | m_Layer: 0 227 | m_Name: Main Camera 228 | m_TagString: MainCamera 229 | m_Icon: {fileID: 0} 230 | m_NavMeshLayer: 0 231 | m_StaticEditorFlags: 0 232 | m_IsActive: 1 233 | --- !u!81 &254457572 234 | AudioListener: 235 | m_ObjectHideFlags: 0 236 | m_CorrespondingSourceObject: {fileID: 0} 237 | m_PrefabInstance: {fileID: 0} 238 | m_PrefabAsset: {fileID: 0} 239 | m_GameObject: {fileID: 254457571} 240 | m_Enabled: 1 241 | --- !u!20 &254457573 242 | Camera: 243 | m_ObjectHideFlags: 0 244 | m_CorrespondingSourceObject: {fileID: 0} 245 | m_PrefabInstance: {fileID: 0} 246 | m_PrefabAsset: {fileID: 0} 247 | m_GameObject: {fileID: 254457571} 248 | m_Enabled: 1 249 | serializedVersion: 2 250 | m_ClearFlags: 1 251 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 252 | m_projectionMatrixMode: 1 253 | m_GateFitMode: 2 254 | m_FOVAxisMode: 0 255 | m_SensorSize: {x: 36, y: 24} 256 | m_LensShift: {x: 0, y: 0} 257 | m_FocalLength: 50 258 | m_NormalizedViewPortRect: 259 | serializedVersion: 2 260 | x: 0 261 | y: 0 262 | width: 1 263 | height: 1 264 | near clip plane: 0.3 265 | far clip plane: 1000 266 | field of view: 60 267 | orthographic: 0 268 | orthographic size: 5 269 | m_Depth: -1 270 | m_CullingMask: 271 | serializedVersion: 2 272 | m_Bits: 4294967295 273 | m_RenderingPath: -1 274 | m_TargetTexture: {fileID: 0} 275 | m_TargetDisplay: 0 276 | m_TargetEye: 3 277 | m_HDR: 1 278 | m_AllowMSAA: 1 279 | m_AllowDynamicResolution: 0 280 | m_ForceIntoRT: 0 281 | m_OcclusionCulling: 1 282 | m_StereoConvergence: 10 283 | m_StereoSeparation: 0.022 284 | --- !u!4 &254457574 285 | Transform: 286 | m_ObjectHideFlags: 0 287 | m_CorrespondingSourceObject: {fileID: 0} 288 | m_PrefabInstance: {fileID: 0} 289 | m_PrefabAsset: {fileID: 0} 290 | m_GameObject: {fileID: 254457571} 291 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 292 | m_LocalPosition: {x: 0, y: 1, z: -10} 293 | m_LocalScale: {x: 1, y: 1, z: 1} 294 | m_Children: [] 295 | m_Father: {fileID: 0} 296 | m_RootOrder: 0 297 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 298 | --- !u!114 &254457575 299 | MonoBehaviour: 300 | m_ObjectHideFlags: 0 301 | m_CorrespondingSourceObject: {fileID: 0} 302 | m_PrefabInstance: {fileID: 0} 303 | m_PrefabAsset: {fileID: 0} 304 | m_GameObject: {fileID: 254457571} 305 | m_Enabled: 1 306 | m_EditorHideFlags: 0 307 | m_Script: {fileID: 11500000, guid: 3189f27f17e11464c86706b6dbf089b5, type: 3} 308 | m_Name: 309 | m_EditorClassIdentifier: 310 | mesh: {fileID: 973877516759717424, guid: 2ca06abad547345429216daec033a270, type: 3} 311 | material: {fileID: 2100000, guid: 1234390d62830d248bb7a93f63fc9f26, type: 2} 312 | -------------------------------------------------------------------------------- /Assets/Scenes/4.SpriteWithECS.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed9801120016fa84e8776fd30b54cd49 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/5.SpawnCube.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: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 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: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1001 &694527878 124 | PrefabInstance: 125 | m_ObjectHideFlags: 0 126 | serializedVersion: 2 127 | m_Modification: 128 | m_TransformParent: {fileID: 0} 129 | m_Modifications: 130 | - target: {fileID: 7792898702459341669, guid: 2a8c74f2698cff945bed08f63e2c57f1, 131 | type: 3} 132 | propertyPath: m_Name 133 | value: EntityDataSource 134 | objectReference: {fileID: 0} 135 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 136 | type: 3} 137 | propertyPath: m_LocalPosition.x 138 | value: 10.01355 139 | objectReference: {fileID: 0} 140 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 141 | type: 3} 142 | propertyPath: m_LocalPosition.y 143 | value: -38.75097 144 | objectReference: {fileID: 0} 145 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 146 | type: 3} 147 | propertyPath: m_LocalPosition.z 148 | value: 17.112045 149 | objectReference: {fileID: 0} 150 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 151 | type: 3} 152 | propertyPath: m_LocalRotation.x 153 | value: 0 154 | objectReference: {fileID: 0} 155 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 156 | type: 3} 157 | propertyPath: m_LocalRotation.y 158 | value: 0 159 | objectReference: {fileID: 0} 160 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 161 | type: 3} 162 | propertyPath: m_LocalRotation.z 163 | value: 0 164 | objectReference: {fileID: 0} 165 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 166 | type: 3} 167 | propertyPath: m_LocalRotation.w 168 | value: 1 169 | objectReference: {fileID: 0} 170 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 171 | type: 3} 172 | propertyPath: m_RootOrder 173 | value: 2 174 | objectReference: {fileID: 0} 175 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 176 | type: 3} 177 | propertyPath: m_LocalEulerAnglesHint.x 178 | value: 0 179 | objectReference: {fileID: 0} 180 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 181 | type: 3} 182 | propertyPath: m_LocalEulerAnglesHint.y 183 | value: 0 184 | objectReference: {fileID: 0} 185 | - target: {fileID: 5043158982955471187, guid: 2a8c74f2698cff945bed08f63e2c57f1, 186 | type: 3} 187 | propertyPath: m_LocalEulerAnglesHint.z 188 | value: 0 189 | objectReference: {fileID: 0} 190 | - target: {fileID: 4024685475296049852, guid: 2a8c74f2698cff945bed08f63e2c57f1, 191 | type: 3} 192 | propertyPath: row 193 | value: 100 194 | objectReference: {fileID: 0} 195 | - target: {fileID: 4024685475296049852, guid: 2a8c74f2698cff945bed08f63e2c57f1, 196 | type: 3} 197 | propertyPath: colum 198 | value: 100 199 | objectReference: {fileID: 0} 200 | m_RemovedComponents: [] 201 | m_SourcePrefab: {fileID: 100100000, guid: 2a8c74f2698cff945bed08f63e2c57f1, type: 3} 202 | --- !u!1 &1634206099 203 | GameObject: 204 | m_ObjectHideFlags: 0 205 | m_CorrespondingSourceObject: {fileID: 0} 206 | m_PrefabInstance: {fileID: 0} 207 | m_PrefabAsset: {fileID: 0} 208 | serializedVersion: 6 209 | m_Component: 210 | - component: {fileID: 1634206102} 211 | - component: {fileID: 1634206101} 212 | - component: {fileID: 1634206100} 213 | m_Layer: 0 214 | m_Name: Main Camera 215 | m_TagString: MainCamera 216 | m_Icon: {fileID: 0} 217 | m_NavMeshLayer: 0 218 | m_StaticEditorFlags: 0 219 | m_IsActive: 1 220 | --- !u!81 &1634206100 221 | AudioListener: 222 | m_ObjectHideFlags: 0 223 | m_CorrespondingSourceObject: {fileID: 0} 224 | m_PrefabInstance: {fileID: 0} 225 | m_PrefabAsset: {fileID: 0} 226 | m_GameObject: {fileID: 1634206099} 227 | m_Enabled: 1 228 | --- !u!20 &1634206101 229 | Camera: 230 | m_ObjectHideFlags: 0 231 | m_CorrespondingSourceObject: {fileID: 0} 232 | m_PrefabInstance: {fileID: 0} 233 | m_PrefabAsset: {fileID: 0} 234 | m_GameObject: {fileID: 1634206099} 235 | m_Enabled: 1 236 | serializedVersion: 2 237 | m_ClearFlags: 1 238 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 239 | m_projectionMatrixMode: 1 240 | m_GateFitMode: 2 241 | m_FOVAxisMode: 0 242 | m_SensorSize: {x: 36, y: 24} 243 | m_LensShift: {x: 0, y: 0} 244 | m_FocalLength: 50 245 | m_NormalizedViewPortRect: 246 | serializedVersion: 2 247 | x: 0 248 | y: 0 249 | width: 1 250 | height: 1 251 | near clip plane: 0.3 252 | far clip plane: 1000 253 | field of view: 60 254 | orthographic: 0 255 | orthographic size: 5 256 | m_Depth: -1 257 | m_CullingMask: 258 | serializedVersion: 2 259 | m_Bits: 4294967295 260 | m_RenderingPath: -1 261 | m_TargetTexture: {fileID: 0} 262 | m_TargetDisplay: 0 263 | m_TargetEye: 3 264 | m_HDR: 1 265 | m_AllowMSAA: 1 266 | m_AllowDynamicResolution: 0 267 | m_ForceIntoRT: 0 268 | m_OcclusionCulling: 1 269 | m_StereoConvergence: 10 270 | m_StereoSeparation: 0.022 271 | --- !u!4 &1634206102 272 | Transform: 273 | m_ObjectHideFlags: 0 274 | m_CorrespondingSourceObject: {fileID: 0} 275 | m_PrefabInstance: {fileID: 0} 276 | m_PrefabAsset: {fileID: 0} 277 | m_GameObject: {fileID: 1634206099} 278 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 279 | m_LocalPosition: {x: 47, y: 15, z: -37} 280 | m_LocalScale: {x: 1, y: 1, z: 1} 281 | m_Children: [] 282 | m_Father: {fileID: 0} 283 | m_RootOrder: 0 284 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 285 | --- !u!1 &1691111742 286 | GameObject: 287 | m_ObjectHideFlags: 0 288 | m_CorrespondingSourceObject: {fileID: 0} 289 | m_PrefabInstance: {fileID: 0} 290 | m_PrefabAsset: {fileID: 0} 291 | serializedVersion: 6 292 | m_Component: 293 | - component: {fileID: 1691111744} 294 | - component: {fileID: 1691111743} 295 | m_Layer: 0 296 | m_Name: Directional Light 297 | m_TagString: Untagged 298 | m_Icon: {fileID: 0} 299 | m_NavMeshLayer: 0 300 | m_StaticEditorFlags: 0 301 | m_IsActive: 1 302 | --- !u!108 &1691111743 303 | Light: 304 | m_ObjectHideFlags: 0 305 | m_CorrespondingSourceObject: {fileID: 0} 306 | m_PrefabInstance: {fileID: 0} 307 | m_PrefabAsset: {fileID: 0} 308 | m_GameObject: {fileID: 1691111742} 309 | m_Enabled: 1 310 | serializedVersion: 9 311 | m_Type: 1 312 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 313 | m_Intensity: 1 314 | m_Range: 10 315 | m_SpotAngle: 30 316 | m_InnerSpotAngle: 21.80208 317 | m_CookieSize: 10 318 | m_Shadows: 319 | m_Type: 2 320 | m_Resolution: -1 321 | m_CustomResolution: -1 322 | m_Strength: 1 323 | m_Bias: 0.05 324 | m_NormalBias: 0.4 325 | m_NearPlane: 0.2 326 | m_CullingMatrixOverride: 327 | e00: 1 328 | e01: 0 329 | e02: 0 330 | e03: 0 331 | e10: 0 332 | e11: 1 333 | e12: 0 334 | e13: 0 335 | e20: 0 336 | e21: 0 337 | e22: 1 338 | e23: 0 339 | e30: 0 340 | e31: 0 341 | e32: 0 342 | e33: 1 343 | m_UseCullingMatrixOverride: 0 344 | m_Cookie: {fileID: 0} 345 | m_DrawHalo: 0 346 | m_Flare: {fileID: 0} 347 | m_RenderMode: 0 348 | m_CullingMask: 349 | serializedVersion: 2 350 | m_Bits: 4294967295 351 | m_RenderingLayerMask: 1 352 | m_Lightmapping: 4 353 | m_LightShadowCasterMode: 0 354 | m_AreaSize: {x: 1, y: 1} 355 | m_BounceIntensity: 1 356 | m_ColorTemperature: 6570 357 | m_UseColorTemperature: 0 358 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 359 | m_UseBoundingSphereOverride: 0 360 | m_ShadowRadius: 0 361 | m_ShadowAngle: 0 362 | --- !u!4 &1691111744 363 | Transform: 364 | m_ObjectHideFlags: 0 365 | m_CorrespondingSourceObject: {fileID: 0} 366 | m_PrefabInstance: {fileID: 0} 367 | m_PrefabAsset: {fileID: 0} 368 | m_GameObject: {fileID: 1691111742} 369 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 370 | m_LocalPosition: {x: 0, y: 3, z: 0} 371 | m_LocalScale: {x: 1, y: 1, z: 1} 372 | m_Children: [] 373 | m_Father: {fileID: 0} 374 | m_RootOrder: 1 375 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 376 | -------------------------------------------------------------------------------- /Assets/Scenes/5.SpawnCube.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5be2dbd2af5ad614fbd3c19466fb77b2 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e68e08c9cbb5bf42aeb23feef7fce31 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 009b21eecbf14a04b9b0c92cb1f1178d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities/LevelComponent.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Entities; 5 | 6 | public struct LevelComponent : IComponentData 7 | { 8 | public float level; 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities/LevelComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40276b4ace09fcc44bc8cc439088bfb5 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/CreateDynamicEntities/LevelUpSystem.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Entities; 5 | 6 | public class LevelUpSystem : ComponentSystem 7 | { 8 | protected override void OnUpdate() 9 | { 10 | Entities.ForEach((ref LevelComponent levelComponent) => 11 | { 12 | levelComponent.level += 1f * Time.deltaTime; 13 | //Debug.Log(levelComponent.level); 14 | }); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities/LevelUpSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65baeb882d1676b499655e273e9661d7 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/CreateDynamicEntities/MoveSpeedComponent.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Entities; 5 | 6 | public struct MoveSpeedComponent : IComponentData 7 | { 8 | public float moveSpeed; 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities/MoveSpeedComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55658e6329346eb4dbac0ecddb5f7973 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/CreateDynamicEntities/MoverSystem.cs: -------------------------------------------------------------------------------- 1 | using Unity.Entities; 2 | using Unity.Transforms; 3 | using UnityEngine; 4 | using Unity.Mathematics; 5 | 6 | public class MoverSystem : ComponentSystem 7 | { 8 | protected override void OnUpdate() 9 | { 10 | Entities.ForEach((ref Translation translation, ref MoveSpeedComponent moveSpeedComponent) => 11 | { 12 | translation.Value.y += moveSpeedComponent.moveSpeed * Time.deltaTime; 13 | if (translation.Value.y > 5f) 14 | { 15 | moveSpeedComponent.moveSpeed = -math.abs(moveSpeedComponent.moveSpeed); 16 | } 17 | if (translation.Value.y < -5f) 18 | { 19 | moveSpeedComponent.moveSpeed += math.abs(moveSpeedComponent.moveSpeed); 20 | } 21 | }); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities/MoverSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1a8dfbd7b5e21a4ab0b5334d191c24a 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/CreateDynamicEntities/New Material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: New Material 11 | m_Shader: {fileID: 10800, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _AlphaTex: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _BumpMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailAlbedoMap: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailMask: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _DetailNormalMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _EmissionMap: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MainTex: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _MetallicGlossMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _OcclusionMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | - _ParallaxMap: 59 | m_Texture: {fileID: 0} 60 | m_Scale: {x: 1, y: 1} 61 | m_Offset: {x: 0, y: 0} 62 | m_Floats: 63 | - PixelSnap: 0 64 | - _BumpScale: 1 65 | - _Cutoff: 0.5 66 | - _DetailNormalMapScale: 1 67 | - _DstBlend: 0 68 | - _EnableExternalAlpha: 0 69 | - _GlossMapScale: 1 70 | - _Glossiness: 0.5 71 | - _GlossyReflections: 1 72 | - _Metallic: 0 73 | - _Mode: 0 74 | - _OcclusionStrength: 1 75 | - _Parallax: 0.02 76 | - _SmoothnessTextureChannel: 0 77 | - _SpecularHighlights: 1 78 | - _SrcBlend: 1 79 | - _UVSec: 0 80 | - _ZWrite: 1 81 | m_Colors: 82 | - _Color: {r: 1, g: 0, b: 0, a: 1} 83 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 84 | - _Flip: {r: 1, g: 1, b: 1, a: 1} 85 | - _RendererColor: {r: 1, g: 1, b: 1, a: 1} 86 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities/New Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b82c3ee1fec634d43b0054ac6da9352a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities/Testing1.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class Testing1 : MonoBehaviour 6 | { 7 | public int count = 1000; 8 | List entities = new List(); 9 | void Start() 10 | { 11 | for (int i = 0; i < count; i++) 12 | entities.Add(GameObject.CreatePrimitive(PrimitiveType.Cube).transform); 13 | } 14 | 15 | void Update() 16 | { 17 | for (int i = 0; i < count; i++) 18 | { 19 | entities[i].Translate(Vector3.up * (UnityEngine.Random.Range(1f, 2f)) * Time.deltaTime); 20 | //if (entities[i].localPosition.y > 5f) 21 | //{ 22 | // moveSpeedComponent.moveSpeed = -math.abs(moveSpeedComponent.moveSpeed); 23 | //} 24 | //if (entities[i].localPosition.y < -5f) 25 | //{ 26 | // moveSpeedComponent.moveSpeed += math.abs(moveSpeedComponent.moveSpeed); 27 | //} 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities/Testing1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62c36a8ea43908348b76bfea7a3ad464 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/CreateDynamicEntities/TestingECS.cs: -------------------------------------------------------------------------------- 1 | using Unity.Collections; 2 | using Unity.Entities; 3 | using Unity.Mathematics; 4 | using Unity.Rendering; 5 | using Unity.Transforms; 6 | using UnityEngine; 7 | 8 | public class TestingECS : MonoBehaviour 9 | { 10 | [SerializeField] 11 | private Mesh mesh; 12 | [SerializeField] 13 | private Material material; 14 | 15 | public int count; 16 | void Start() 17 | { 18 | EntityManager entityManager = World.Active.EntityManager; 19 | EntityArchetype entityArchetype = entityManager.CreateArchetype( 20 | typeof(LevelComponent), 21 | typeof(Translation), 22 | typeof(RenderMesh), 23 | typeof(LocalToWorld), 24 | typeof(MoveSpeedComponent) 25 | ); 26 | NativeArray entityArray = new NativeArray(count, Allocator.Temp); 27 | entityManager.CreateEntity(entityArchetype, entityArray); 28 | for (int i = 0; i < entityArray.Length; i++) 29 | { 30 | Entity entity = entityArray[i]; 31 | entityManager.SetComponentData(entity, new LevelComponent() { level = UnityEngine.Random.Range(10, 20) }); 32 | entityManager.SetComponentData(entity, new MoveSpeedComponent() { moveSpeed = UnityEngine.Random.Range(1f, 2f) }); 33 | entityManager.SetComponentData(entity, new Translation() { Value = new float3(UnityEngine.Random.Range(-8, 8f), UnityEngine.Random.Range(-5, 5f), 0) }); 34 | entityManager.SetSharedComponentData(entity, new RenderMesh 35 | { 36 | mesh = mesh, 37 | material = material, 38 | }); 39 | } 40 | entityArray.Dispose(); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /Assets/Scripts/CreateDynamicEntities/TestingECS.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02c52a96670928644ae504219e650d23 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/ForEach.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d11390ee7a71e9e4794959b6241b9a15 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/ForEach/EntitiesManager.cs: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * ECS技术HelloWorld项目演示(Unity2019版本) 4 | * 5 | * 实体管理体系(所属类型:"混合ECS"开发模式) 6 | * 7 | */ 8 | 9 | using System.Collections; 10 | using System.Collections.Generic; 11 | using UnityEngine; 12 | 13 | using Unity.Entities; 14 | 15 | public class EntitiesManager : MonoBehaviour, IConvertGameObjectToEntity 16 | { 17 | //Cube旋转速度 18 | public float FloCubeSpeed = 10f; 19 | /// 20 | /// 把GameObject转为实体(Entity) 21 | /// 22 | /// 23 | /// 24 | /// 25 | public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem) 26 | { 27 | //创建一个"组件" 28 | var data = new RotationCubeComponent { Speed = FloCubeSpeed }; 29 | //将组件加入EntityManager中,让Unity内置的环境实体管理器,进行管理 30 | dstManager.AddComponentData(entity,data); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Assets/Scripts/ForEach/EntitiesManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb8f80b5abbacae4dad7e1b72e984356 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/ForEach/RotationCubeComponent.cs: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * ECS技术HelloWorld项目演示(Unity2019版本) 4 | * 5 | * 组件 6 | * 7 | */ 8 | 9 | using System.Collections; 10 | using System.Collections.Generic; 11 | using UnityEngine; 12 | 13 | using Unity.Entities; 14 | 15 | public struct RotationCubeComponent : IComponentData 16 | { 17 | //实体旋转的速度 18 | public float Speed; 19 | } 20 | -------------------------------------------------------------------------------- /Assets/Scripts/ForEach/RotationCubeComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e3e53fce2a3ea047be7d1e9512d7847 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/ForEach/RotationCubeSystem.cs: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * ECS技术HelloWorld项目演示(Unity2019版本) 4 | * 5 | * 系统 6 | * 7 | */ 8 | 9 | using System.Collections; 10 | using System.Collections.Generic; 11 | using UnityEngine; 12 | 13 | using Unity.Entities; 14 | using Unity.Mathematics; 15 | using Unity.Transforms; 16 | 17 | public class RotationCubeSystem : ComponentSystem 18 | { 19 | protected override void OnUpdate() 20 | { 21 | Entities.ForEach((ref RotationCubeComponent rotationSpeed, ref Rotation rotation) => 22 | { 23 | rotation.Value = math.mul(math.normalize(rotation.Value), 24 | quaternion.AxisAngle(math.up(), rotationSpeed.Speed * Time.deltaTime)); 25 | }); 26 | } 27 | } -------------------------------------------------------------------------------- /Assets/Scripts/ForEach/RotationCubeSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71d3fc9de7fe34440ab932ed379cf851 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/JobSystem.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fca871046da38ac408e3a6ba22619194 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/JobSystem/FX_Mesh_daoyan Variant.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &7210354750546932508 4 | PrefabInstance: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: 10 | - target: {fileID: -927199367670048503, guid: 2ca06abad547345429216daec033a270, 11 | type: 3} 12 | propertyPath: m_Name 13 | value: FX_Mesh_daoyan 14 | objectReference: {fileID: 0} 15 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 16 | type: 3} 17 | propertyPath: m_LocalPosition.x 18 | value: -0 19 | objectReference: {fileID: 0} 20 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 21 | type: 3} 22 | propertyPath: m_LocalPosition.y 23 | value: 0 24 | objectReference: {fileID: 0} 25 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 26 | type: 3} 27 | propertyPath: m_LocalPosition.z 28 | value: 0 29 | objectReference: {fileID: 0} 30 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 31 | type: 3} 32 | propertyPath: m_LocalRotation.x 33 | value: -0.7071068 34 | objectReference: {fileID: 0} 35 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 36 | type: 3} 37 | propertyPath: m_LocalRotation.y 38 | value: 0 39 | objectReference: {fileID: 0} 40 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 41 | type: 3} 42 | propertyPath: m_LocalRotation.z 43 | value: -0 44 | objectReference: {fileID: 0} 45 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 46 | type: 3} 47 | propertyPath: m_LocalRotation.w 48 | value: 0.7071068 49 | objectReference: {fileID: 0} 50 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 51 | type: 3} 52 | propertyPath: m_RootOrder 53 | value: 0 54 | objectReference: {fileID: 0} 55 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 56 | type: 3} 57 | propertyPath: m_LocalEulerAnglesHint.x 58 | value: 0 59 | objectReference: {fileID: 0} 60 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 61 | type: 3} 62 | propertyPath: m_LocalEulerAnglesHint.y 63 | value: 0 64 | objectReference: {fileID: 0} 65 | - target: {fileID: -4216859302048453862, guid: 2ca06abad547345429216daec033a270, 66 | type: 3} 67 | propertyPath: m_LocalEulerAnglesHint.z 68 | value: 0 69 | objectReference: {fileID: 0} 70 | m_RemovedComponents: [] 71 | m_SourcePrefab: {fileID: 100100000, guid: 2ca06abad547345429216daec033a270, type: 3} 72 | -------------------------------------------------------------------------------- /Assets/Scripts/JobSystem/FX_Mesh_daoyan Variant.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 553618e33d23db44c827a11f7c8552a7 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts/JobSystem/FX_Mesh_daoyan.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/Assets/Scripts/JobSystem/FX_Mesh_daoyan.FBX -------------------------------------------------------------------------------- /Assets/Scripts/JobSystem/FX_Mesh_daoyan.FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ca06abad547345429216daec033a270 3 | ModelImporter: 4 | serializedVersion: 26 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | materials: 8 | importMaterials: 1 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 | swapUVChannels: 0 47 | generateSecondaryUV: 0 48 | useFileUnits: 1 49 | keepQuads: 0 50 | weldVertices: 1 51 | preserveHierarchy: 0 52 | skinWeightsMode: 0 53 | maxBonesPerVertex: 4 54 | minBoneWeight: 0.001 55 | meshOptimizationFlags: -1 56 | indexFormat: 0 57 | secondaryUVAngleDistortion: 8 58 | secondaryUVAreaDistortion: 15.000001 59 | secondaryUVHardAngle: 88 60 | secondaryUVPackMargin: 4 61 | useFileScale: 1 62 | tangentSpace: 63 | normalSmoothAngle: 60 64 | normalImportMode: 0 65 | tangentImportMode: 3 66 | normalCalculationMode: 4 67 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 68 | blendShapeNormalImportMode: 1 69 | normalSmoothingSource: 0 70 | referencedClips: [] 71 | importAnimation: 1 72 | copyAvatar: 0 73 | humanDescription: 74 | serializedVersion: 3 75 | human: [] 76 | skeleton: [] 77 | armTwist: 0.5 78 | foreArmTwist: 0.5 79 | upperLegTwist: 0.5 80 | legTwist: 0.5 81 | armStretch: 0.05 82 | legStretch: 0.05 83 | feetSpacing: 0 84 | globalScale: 1 85 | rootMotionBoneName: 86 | hasTranslationDoF: 0 87 | hasExtraRoot: 0 88 | skeletonHasParents: 1 89 | lastHumanDescriptionAvatarSource: {instanceID: 0} 90 | animationType: 0 91 | humanoidOversampling: 1 92 | additionalBone: 0 93 | userData: 94 | assetBundleName: 95 | assetBundleVariant: 96 | -------------------------------------------------------------------------------- /Assets/Scripts/JobSystem/Testing.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Mathematics; 5 | using Unity.Jobs; 6 | using Unity.Collections; 7 | using Unity.Burst; 8 | using UnityEngine.Jobs; 9 | 10 | public class Testing : MonoBehaviour 11 | { 12 | [SerializeField] 13 | private bool useJobs; 14 | [SerializeField] 15 | private int count = 10; 16 | [SerializeField] 17 | private int zombieCount = 1000; 18 | [SerializeField] 19 | private Transform pfZombie; 20 | private List zombieList; 21 | 22 | public class Zombie 23 | { 24 | public Transform transform; 25 | public float moveY; 26 | } 27 | 28 | private void Start() 29 | { 30 | zombieList = new List(); 31 | for (int i = 0; i < zombieCount; i++) 32 | { 33 | Transform zombieTransform = Instantiate(pfZombie, new Vector3(UnityEngine.Random.Range(-8f, 8f), UnityEngine.Random.Range(-5f, 5f)), Quaternion.identity); 34 | zombieList.Add(new Zombie 35 | { 36 | transform = zombieTransform, 37 | moveY = UnityEngine.Random.Range(1f, 2f) 38 | }); 39 | } 40 | } 41 | 42 | void Update() 43 | { 44 | float startTime = Time.realtimeSinceStartup; 45 | if (useJobs) 46 | { 47 | //NativeArray positionArray = new NativeArray(zombieList.Count, Allocator.TempJob); 48 | NativeArray moveYArray = new NativeArray(zombieList.Count, Allocator.TempJob); 49 | TransformAccessArray transformAccessArray = new TransformAccessArray(zombieList.Count); 50 | for (int i = 0; i < zombieList.Count; i++) 51 | { 52 | //positionArray[i] = zombieList[i].transform.position; 53 | moveYArray[i] = zombieList[i].moveY; 54 | transformAccessArray.Add(zombieList[i].transform); 55 | } 56 | 57 | /* 58 | var reallyToughParallelJob = new ReallyTouchParallelJob 59 | { 60 | deltime = Time.deltaTime, 61 | positionArray = positionArray, 62 | moveYArray = moveYArray 63 | }; 64 | */ 65 | 66 | var reallyToughParallelJobTransforms = new ReallyToughParllelJobTransforms 67 | { 68 | deltime = Time.deltaTime, 69 | moveYArray = moveYArray 70 | }; 71 | var jobHandle = reallyToughParallelJobTransforms.Schedule(transformAccessArray); 72 | jobHandle.Complete(); 73 | 74 | //var jobHandle = reallyToughParallelJob.Schedule(zombieList.Count, 100); 75 | //jobHandle.Complete(); 76 | 77 | for (int i = 0; i < zombieList.Count; i++) 78 | { 79 | //zombieList[i].transform.position = positionArray[i]; 80 | zombieList[i].moveY = moveYArray[i]; 81 | } 82 | 83 | //positionArray.Dispose(); 84 | moveYArray.Dispose(); 85 | transformAccessArray.Dispose(); 86 | } 87 | else 88 | { 89 | foreach (var zombie in zombieList) 90 | { 91 | zombie.transform.position += new Vector3(0, zombie.moveY * Time.deltaTime); 92 | if (zombie.transform.position.y > 5f) 93 | { 94 | zombie.moveY = -math.abs(zombie.moveY); 95 | } 96 | if (zombie.transform.position.y < -5f) 97 | { 98 | zombie.moveY += math.abs(zombie.moveY); 99 | } 100 | } 101 | } 102 | /* 103 | if (useJobs) 104 | { 105 | NativeList jobHandleList = new NativeList(Allocator.Temp); 106 | for (int i = 0; i < count; i++) 107 | { 108 | var jobHandle = ReallyToughTaskJob(); 109 | jobHandleList.Add(jobHandle); 110 | //jobHandle.Complete(); 111 | } 112 | JobHandle.CompleteAll(jobHandleList); 113 | jobHandleList.Dispose(); 114 | } 115 | else 116 | { 117 | for (int i = 0; i < count; i++) 118 | { 119 | ReallyToughTask(); 120 | } 121 | } 122 | */ 123 | Debug.Log(((Time.realtimeSinceStartup - startTime) * 1000f) + "ms"); 124 | } 125 | private void ReallyToughTask() 126 | { 127 | float value = 0f; 128 | for (int i = 0; i < 50000; i++) 129 | { 130 | value = math.exp10(math.sqrt(value)); 131 | } 132 | } 133 | 134 | private JobHandle ReallyToughTaskJob() 135 | { 136 | var job = new ReallyToughJob(); 137 | return job.Schedule(); 138 | } 139 | } 140 | 141 | [BurstCompile] 142 | public struct ReallyToughJob : IJob 143 | { 144 | public void Execute() 145 | { 146 | float value = 0f; 147 | for (int i = 0; i < 50000; i++) 148 | { 149 | value = math.exp10(math.sqrt(value)); 150 | } 151 | } 152 | } 153 | 154 | [BurstCompile] 155 | public struct ReallyTouchParallelJob : IJobParallelFor 156 | { 157 | public NativeArray positionArray; 158 | public NativeArray moveYArray; 159 | [ReadOnly] 160 | public float deltime; 161 | 162 | public void Execute(int index) 163 | { 164 | positionArray[index] += new float3(0, moveYArray[index] * deltime, 0f); 165 | if (positionArray[index].y > 5f) 166 | { 167 | moveYArray[index] = -math.abs(moveYArray[index]); 168 | } 169 | if (positionArray[index].y < -5f) 170 | { 171 | moveYArray[index] += math.abs(moveYArray[index]); 172 | } 173 | float value = 0f; 174 | for (int i = 0; i < 1000; i++) 175 | { 176 | value = math.exp10(math.sqrt(value)); 177 | } 178 | } 179 | } 180 | 181 | 182 | [BurstCompile] 183 | public struct ReallyToughParllelJobTransforms : IJobParallelForTransform 184 | { 185 | public NativeArray moveYArray; 186 | [ReadOnly] 187 | public float deltime; 188 | public void Execute(int index, TransformAccess transform) 189 | { 190 | transform.position += new Vector3(0, moveYArray[index] * deltime, 0f); 191 | if (transform.position.y > 5f) 192 | { 193 | moveYArray[index] = -math.abs(moveYArray[index]); 194 | } 195 | if (transform.position.y < -5f) 196 | { 197 | moveYArray[index] += math.abs(moveYArray[index]); 198 | } 199 | float value = 0f; 200 | for (int i = 0; i < 1000; i++) 201 | { 202 | value = math.exp10(math.sqrt(value)); 203 | } 204 | } 205 | } 206 | -------------------------------------------------------------------------------- /Assets/Scripts/JobSystem/Testing.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6323aedc4b4fd04689a0fce6f9e87b8 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/SpawnCube.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 522474f053f0fa243ad320decdbe40af 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/Cube.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &7900631867260659413 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 7160581030063315946} 12 | - component: {fileID: 7082458299668276638} 13 | - component: {fileID: 580245776961352917} 14 | - component: {fileID: 1677004054614683502} 15 | - component: {fileID: 1412112244} 16 | - component: {fileID: 1412112245} 17 | m_Layer: 0 18 | m_Name: Cube 19 | m_TagString: Untagged 20 | m_Icon: {fileID: 0} 21 | m_NavMeshLayer: 0 22 | m_StaticEditorFlags: 0 23 | m_IsActive: 1 24 | --- !u!4 &7160581030063315946 25 | Transform: 26 | m_ObjectHideFlags: 0 27 | m_CorrespondingSourceObject: {fileID: 0} 28 | m_PrefabInstance: {fileID: 0} 29 | m_PrefabAsset: {fileID: 0} 30 | m_GameObject: {fileID: 7900631867260659413} 31 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 32 | m_LocalPosition: {x: 10.01355, y: -38.75097, z: 17.112045} 33 | m_LocalScale: {x: 1, y: 1, z: 1} 34 | m_Children: [] 35 | m_Father: {fileID: 0} 36 | m_RootOrder: 0 37 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 38 | --- !u!33 &7082458299668276638 39 | MeshFilter: 40 | m_ObjectHideFlags: 0 41 | m_CorrespondingSourceObject: {fileID: 0} 42 | m_PrefabInstance: {fileID: 0} 43 | m_PrefabAsset: {fileID: 0} 44 | m_GameObject: {fileID: 7900631867260659413} 45 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 46 | --- !u!23 &580245776961352917 47 | MeshRenderer: 48 | m_ObjectHideFlags: 0 49 | m_CorrespondingSourceObject: {fileID: 0} 50 | m_PrefabInstance: {fileID: 0} 51 | m_PrefabAsset: {fileID: 0} 52 | m_GameObject: {fileID: 7900631867260659413} 53 | m_Enabled: 1 54 | m_CastShadows: 1 55 | m_ReceiveShadows: 1 56 | m_DynamicOccludee: 1 57 | m_MotionVectors: 1 58 | m_LightProbeUsage: 1 59 | m_ReflectionProbeUsage: 1 60 | m_RenderingLayerMask: 1 61 | m_RendererPriority: 0 62 | m_Materials: 63 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 64 | m_StaticBatchInfo: 65 | firstSubMesh: 0 66 | subMeshCount: 0 67 | m_StaticBatchRoot: {fileID: 0} 68 | m_ProbeAnchor: {fileID: 0} 69 | m_LightProbeVolumeOverride: {fileID: 0} 70 | m_ScaleInLightmap: 1 71 | m_ReceiveGI: 1 72 | m_PreserveUVs: 0 73 | m_IgnoreNormalsForChartDetection: 0 74 | m_ImportantGI: 0 75 | m_StitchLightmapSeams: 1 76 | m_SelectedEditorRenderState: 3 77 | m_MinimumChartSize: 4 78 | m_AutoUVMaxDistance: 0.5 79 | m_AutoUVMaxAngle: 89 80 | m_LightmapParameters: {fileID: 0} 81 | m_SortingLayerID: 0 82 | m_SortingLayer: 0 83 | m_SortingOrder: 0 84 | --- !u!65 &1677004054614683502 85 | BoxCollider: 86 | m_ObjectHideFlags: 0 87 | m_CorrespondingSourceObject: {fileID: 0} 88 | m_PrefabInstance: {fileID: 0} 89 | m_PrefabAsset: {fileID: 0} 90 | m_GameObject: {fileID: 7900631867260659413} 91 | m_Material: {fileID: 0} 92 | m_IsTrigger: 0 93 | m_Enabled: 1 94 | serializedVersion: 2 95 | m_Size: {x: 1, y: 1, z: 1} 96 | m_Center: {x: 0, y: 0, z: 0} 97 | --- !u!114 &1412112244 98 | MonoBehaviour: 99 | m_ObjectHideFlags: 0 100 | m_CorrespondingSourceObject: {fileID: 0} 101 | m_PrefabInstance: {fileID: 0} 102 | m_PrefabAsset: {fileID: 0} 103 | m_GameObject: {fileID: 7900631867260659413} 104 | m_Enabled: 1 105 | m_EditorHideFlags: 0 106 | m_Script: {fileID: 11500000, guid: fe97f1bc9d4f7bd499f7f316ac937468, type: 3} 107 | m_Name: 108 | m_EditorClassIdentifier: 109 | waveFactor: 6 110 | sampleFactor: 0.05 111 | --- !u!114 &1412112245 112 | MonoBehaviour: 113 | m_ObjectHideFlags: 0 114 | m_CorrespondingSourceObject: {fileID: 0} 115 | m_PrefabInstance: {fileID: 0} 116 | m_PrefabAsset: {fileID: 0} 117 | m_GameObject: {fileID: 7900631867260659413} 118 | m_Enabled: 1 119 | m_EditorHideFlags: 0 120 | m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3} 121 | m_Name: 122 | m_EditorClassIdentifier: 123 | ConversionMode: 0 124 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/Cube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7663f651c5660346b1ad6b4b0d3e798 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/EntityDataSource.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &7792898702459341669 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 5043158982955471187} 12 | - component: {fileID: 5730660701030561085} 13 | - component: {fileID: 4024685475296049852} 14 | m_Layer: 0 15 | m_Name: EntityDataSource 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &5043158982955471187 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 7792898702459341669} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 10.01355, y: -38.75097, z: 17.112045} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | --- !u!114 &5730660701030561085 36 | MonoBehaviour: 37 | m_ObjectHideFlags: 0 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 7792898702459341669} 42 | m_Enabled: 1 43 | m_EditorHideFlags: 0 44 | m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3} 45 | m_Name: 46 | m_EditorClassIdentifier: 47 | ConversionMode: 0 48 | --- !u!114 &4024685475296049852 49 | MonoBehaviour: 50 | m_ObjectHideFlags: 0 51 | m_CorrespondingSourceObject: {fileID: 0} 52 | m_PrefabInstance: {fileID: 0} 53 | m_PrefabAsset: {fileID: 0} 54 | m_GameObject: {fileID: 7792898702459341669} 55 | m_Enabled: 1 56 | m_EditorHideFlags: 0 57 | m_Script: {fileID: 11500000, guid: 94ed10144fc62404e94df7f352f11152, type: 3} 58 | m_Name: 59 | m_EditorClassIdentifier: 60 | row: 100 61 | colum: 100 62 | prefab: {fileID: 7900631867260659413, guid: f7663f651c5660346b1ad6b4b0d3e798, type: 3} 63 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/EntityDataSource.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a8c74f2698cff945bed08f63e2c57f1 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/NoiseHeightComponent.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Entities; 5 | 6 | public struct NoiseHeightComponent : IComponentData 7 | { 8 | public float waveFactor; 9 | public float sampleFactor; 10 | } 11 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/NoiseHeightComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ea20ceaed0a550429bf10bd211869d3 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/SpawnCube/NoiseHeightDataSource.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Entities; 5 | 6 | [System.Serializable] 7 | [RequiresEntityConversion] 8 | [RequireComponent(typeof(ConvertToEntity))] 9 | public class NoiseHeightDataSource : MonoBehaviour, IConvertGameObjectToEntity 10 | { 11 | [Header("NoiseHeightSample param")] 12 | public float waveFactor; 13 | public float sampleFactor; 14 | 15 | public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem) 16 | { 17 | var noiseHeightData = new NoiseHeightComponent() 18 | { 19 | waveFactor = this.waveFactor, 20 | sampleFactor = this.sampleFactor 21 | }; 22 | dstManager.AddComponentData(entity, noiseHeightData); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/NoiseHeightDataSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe97f1bc9d4f7bd499f7f316ac937468 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/SpawnCube/NoiseHeightSystem.cs: -------------------------------------------------------------------------------- 1 | using Unity.Collections; 2 | using Unity.Entities; 3 | using Unity.Jobs; 4 | using Unity.Mathematics; 5 | using Unity.Transforms; 6 | using UnityEngine; 7 | using Unity.Burst; 8 | 9 | public class NoiseHeightSystem : JobComponentSystem 10 | { 11 | [BurstCompile] 12 | struct TranslationNoise : IJobForEach 13 | { 14 | public float time; 15 | 16 | public void Execute([ReadOnly]ref NoiseHeightComponent noiseHeightComponent, ref Translation translation) 17 | { 18 | var waveFactor = noiseHeightComponent.waveFactor; 19 | var sampleFactor = noiseHeightComponent.sampleFactor; 20 | translation.Value.y = 21 | waveFactor * noise.snoise(new float2(time + sampleFactor * translation.Value.x, time + sampleFactor * translation.Value.z)); 22 | } 23 | } 24 | 25 | protected override JobHandle OnUpdate(JobHandle inputDeps) 26 | { 27 | var job = new TranslationNoise() 28 | { 29 | time = Time.realtimeSinceStartup 30 | }; 31 | return job.Schedule(this, inputDeps); 32 | } 33 | } -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/NoiseHeightSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f92d64341115c346a0152750066707f 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/SpawnCube/SpawCubeSystem.cs: -------------------------------------------------------------------------------- 1 | using Unity.Collections; 2 | using Unity.Entities; 3 | using Unity.Mathematics; 4 | using Unity.Transforms; 5 | using Unity.Jobs; 6 | using Unity.Burst; 7 | 8 | [UpdateInGroup(typeof(SimulationSystemGroup))] 9 | public class SpawCubeSystem : JobComponentSystem 10 | { 11 | private BeginInitializationEntityCommandBufferSystem m_EntityCommandBufferSystem; 12 | 13 | protected override void OnCreate() 14 | { 15 | m_EntityCommandBufferSystem = World.GetOrCreateSystem(); 16 | } 17 | 18 | [BurstCompile] 19 | struct SpawnCubeJob : IJobForEachWithEntity 20 | { 21 | public EntityCommandBuffer.Concurrent CommandBuffer; 22 | public void Execute(Entity entity, int index, [ReadOnly]ref SpawnCubeComponent spawnCubeComponent, [ReadOnly]ref LocalToWorld location) 23 | { 24 | for (var i = 0; i < spawnCubeComponent.row; i++) 25 | { 26 | for (int j = 0; j < spawnCubeComponent.colum; j++) 27 | { 28 | var instance = CommandBuffer.Instantiate(index, spawnCubeComponent.prefab); 29 | CommandBuffer.SetComponent(index, instance, new Translation() 30 | { 31 | Value = new float3(i, 0, j) 32 | }); 33 | } 34 | } 35 | CommandBuffer.DestroyEntity(index, entity); 36 | } 37 | } 38 | 39 | protected override JobHandle OnUpdate(JobHandle inputDeps) 40 | { 41 | var job = new SpawnCubeJob() 42 | { 43 | CommandBuffer = m_EntityCommandBufferSystem.CreateCommandBuffer().ToConcurrent() 44 | }.Schedule(this, inputDeps); 45 | 46 | m_EntityCommandBufferSystem.AddJobHandleForProducer(job); 47 | return job; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/SpawCubeSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 507f9f2c043820e45afda30075e694fb 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/SpawnCube/SpawnCubeComponent.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Entities; 5 | 6 | public struct SpawnCubeComponent : IComponentData 7 | { 8 | public int row; 9 | public int colum; 10 | public Entity prefab; 11 | } 12 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/SpawnCubeComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a6a01b6e731f45429348acaf1e1114a 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/SpawnCube/SpawnCubeDataSource.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Entities; 5 | 6 | [System.Serializable] 7 | [RequireComponent(typeof(ConvertToEntity))] 8 | [RequiresEntityConversion] 9 | public class SpawnCubeDataSource : MonoBehaviour, IConvertGameObjectToEntity, IDeclareReferencedPrefabs 10 | { 11 | [Header("SpawnCubeSample param")] 12 | public int row; 13 | public int colum; 14 | public GameObject prefab; 15 | 16 | public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem) 17 | { 18 | var spawnCubeData = new SpawnCubeComponent() 19 | { 20 | prefab = conversionSystem.GetPrimaryEntity(this.prefab), 21 | row = this.row, 22 | colum = this.colum 23 | }; 24 | dstManager.AddComponentData(entity, spawnCubeData); 25 | } 26 | 27 | public void DeclareReferencedPrefabs(List referencedPrefabs) 28 | { 29 | referencedPrefabs.Add(prefab); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/Scripts/SpawnCube/SpawnCubeDataSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94ed10144fc62404e94df7f352f11152 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/SpriteWithECS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 722a568434dd17a4d8a838d1fa19fc77 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/SpriteWithECS/SpriteMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: SpriteMaterial 11 | m_Shader: {fileID: 10750, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 10912, guid: 0000000000000000f000000000000000, type: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0.5 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 1 75 | m_Colors: 76 | - _Color: {r: 1, g: 1, b: 1, a: 1} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | -------------------------------------------------------------------------------- /Assets/Scripts/SpriteWithECS/SpriteMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1234390d62830d248bb7a93f63fc9f26 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/SpriteWithECS/SpriteWithECSTesting.cs: -------------------------------------------------------------------------------- 1 | using Unity.Burst; 2 | using Unity.Collections; 3 | using Unity.Entities; 4 | using Unity.Mathematics; 5 | using Unity.Rendering; 6 | using Unity.Transforms; 7 | using UnityEngine; 8 | 9 | public class SpriteWithECSTesting : MonoBehaviour 10 | { 11 | [SerializeField] 12 | private Mesh mesh; 13 | [SerializeField] 14 | private Material material; 15 | 16 | private EntityManager entityManager; 17 | private void Start() 18 | { 19 | entityManager = World.Active.EntityManager; 20 | NativeArray entityArray = new NativeArray(10, Allocator.Temp); 21 | //Allocator是申请内存的操作,不同于New,New是申请内存并且对象构造,Allocator只是申请分配内存,Allocator参数是个枚举,值分别是Allocator.Temp、Allocator.TempJob、Allocator.Persistent。三者的区别是生命周期不同和性能差别,Temp用于一帧内即回收数据,性能最好;TempJob生命周期是4帧,通常用于Job中,性能次于Temp;Persistent可以在程序运行过程中一直在,但性能最差。NativeArray与Array另一个不同是需要手动回收内存,即调用Dispose()。 22 | 23 | EntityArchetype entityArcheType = entityManager.CreateArchetype( 24 | typeof(RenderMesh), 25 | typeof(LocalToWorld), 26 | typeof(Translation), 27 | typeof(Rotation), 28 | //typeof(Scale), 29 | typeof(NonUniformScale) 30 | ); 31 | entityManager.CreateEntity(entityArcheType, entityArray); 32 | foreach (var entity in entityArray) 33 | { 34 | entityManager.SetSharedComponentData(entity, new RenderMesh 35 | { 36 | mesh = mesh, 37 | material = material, 38 | }); 39 | 40 | entityManager.SetComponentData(entity, new NonUniformScale 41 | { 42 | Value = new float3(1f, 3f, 1f) 43 | }); 44 | } 45 | entityArray.Dispose(); //回收内存 对应上面开辟的内存 C++层调用的free 46 | } 47 | } 48 | 49 | [BurstCompile] 50 | public class MoveSystem : ComponentSystem 51 | { 52 | protected override void OnUpdate() 53 | { 54 | Entities.ForEach((ref Translation translation) => 55 | { 56 | float moveSpeed = 1f; 57 | translation.Value.y += moveSpeed * Time.deltaTime; 58 | }); 59 | } 60 | } 61 | 62 | [BurstCompile] 63 | public class RotatorSystem : ComponentSystem 64 | { 65 | protected override void OnUpdate() 66 | { 67 | Entities.ForEach((ref Rotation rotation) => 68 | { 69 | rotation.Value = quaternion.Euler(0, 0, math.PI * Time.realtimeSinceStartup); 70 | }); 71 | } 72 | } 73 | 74 | [BurstCompile] 75 | public class ScalersSystem : ComponentSystem 76 | { 77 | protected override void OnUpdate() 78 | { 79 | Entities.ForEach((ref Scale scale) => 80 | { 81 | scale.Value += 1f * Time.deltaTime; 82 | }); 83 | } 84 | } -------------------------------------------------------------------------------- /Assets/Scripts/SpriteWithECS/SpriteWithECSTesting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3189f27f17e11464c86706b6dbf089b5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "1.2.16", 4 | "com.unity.entities": "0.1.1-preview", 5 | "com.unity.ext.nunit": "1.0.0", 6 | "com.unity.ide.rider": "1.1.0", 7 | "com.unity.ide.vscode": "1.1.0", 8 | "com.unity.package-manager-ui": "2.2.0", 9 | "com.unity.rendering.hybrid": "0.1.1-preview", 10 | "com.unity.test-framework": "1.0.13", 11 | "com.unity.textmeshpro": "2.0.1", 12 | "com.unity.timeline": "1.1.0", 13 | "com.unity.ugui": "1.0.0", 14 | "com.unity.modules.ai": "1.0.0", 15 | "com.unity.modules.androidjni": "1.0.0", 16 | "com.unity.modules.animation": "1.0.0", 17 | "com.unity.modules.assetbundle": "1.0.0", 18 | "com.unity.modules.audio": "1.0.0", 19 | "com.unity.modules.cloth": "1.0.0", 20 | "com.unity.modules.director": "1.0.0", 21 | "com.unity.modules.imageconversion": "1.0.0", 22 | "com.unity.modules.imgui": "1.0.0", 23 | "com.unity.modules.jsonserialize": "1.0.0", 24 | "com.unity.modules.particlesystem": "1.0.0", 25 | "com.unity.modules.physics": "1.0.0", 26 | "com.unity.modules.physics2d": "1.0.0", 27 | "com.unity.modules.screencapture": "1.0.0", 28 | "com.unity.modules.terrain": "1.0.0", 29 | "com.unity.modules.terrainphysics": "1.0.0", 30 | "com.unity.modules.tilemap": "1.0.0", 31 | "com.unity.modules.ui": "1.0.0", 32 | "com.unity.modules.uielements": "1.0.0", 33 | "com.unity.modules.umbra": "1.0.0", 34 | "com.unity.modules.unityanalytics": "1.0.0", 35 | "com.unity.modules.unitywebrequest": "1.0.0", 36 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 37 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 38 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 39 | "com.unity.modules.unitywebrequestwww": "1.0.0", 40 | "com.unity.modules.vehicles": "1.0.0", 41 | "com.unity.modules.video": "1.0.0", 42 | "com.unity.modules.vr": "1.0.0", 43 | "com.unity.modules.wind": "1.0.0", 44 | "com.unity.modules.xr": "1.0.0" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /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: 8 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 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_ShowLightmapResolutionOverlay: 1 27 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/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 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /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: 18 7 | productGUID: b7162aa3ea8e48d46ba52528ef15792f 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: ECS_HelloWorld 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 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | displayResolutionDialog: 0 56 | iosUseCustomAppBackgroundBehavior: 0 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 1 68 | androidUseSwappy: 0 69 | androidBlitType: 0 70 | defaultIsNativeResolution: 1 71 | macRetinaSupport: 1 72 | runInBackground: 1 73 | captureSingleScreen: 0 74 | muteOtherAudioSources: 0 75 | Prepare IOS For Recording: 0 76 | Force IOS Speakers When Recording: 0 77 | deferSystemGesturesMode: 0 78 | hideHomeButton: 0 79 | submitAnalytics: 1 80 | usePlayerLog: 1 81 | bakeCollisionMeshes: 0 82 | forceSingleInstance: 0 83 | useFlipModelSwapchain: 1 84 | resizableWindow: 0 85 | useMacAppStoreValidation: 0 86 | macAppStoreCategory: public.app-category.games 87 | gpuSkinning: 1 88 | graphicsJobs: 0 89 | xboxPIXTextureCapture: 0 90 | xboxEnableAvatar: 0 91 | xboxEnableKinect: 0 92 | xboxEnableKinectAutoTracking: 0 93 | xboxEnableFitness: 0 94 | visibleInBackground: 1 95 | allowFullscreenSwitch: 1 96 | graphicsJobMode: 0 97 | fullscreenMode: 1 98 | xboxSpeechDB: 0 99 | xboxEnableHeadOrientation: 0 100 | xboxEnableGuest: 0 101 | xboxEnablePIXSampling: 0 102 | metalFramebufferOnly: 0 103 | xboxOneResolution: 0 104 | xboxOneSResolution: 0 105 | xboxOneXResolution: 3 106 | xboxOneMonoLoggingLevel: 0 107 | xboxOneLoggingLevel: 1 108 | xboxOneDisableEsram: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 0 111 | switchQueueControlMemory: 16384 112 | switchQueueComputeMemory: 262144 113 | switchNVNShaderPoolsGranularity: 33554432 114 | switchNVNDefaultPoolsGranularity: 16777216 115 | switchNVNOtherPoolsGranularity: 16777216 116 | vulkanEnableSetSRGBWrite: 0 117 | m_SupportedAspectRatios: 118 | 4:3: 1 119 | 5:4: 1 120 | 16:10: 1 121 | 16:9: 1 122 | Others: 1 123 | bundleVersion: 0.1 124 | preloadedAssets: [] 125 | metroInputSource: 0 126 | wsaTransparentSwapchain: 0 127 | m_HolographicPauseOnTrackingLoss: 1 128 | xboxOneDisableKinectGpuReservation: 1 129 | xboxOneEnable7thCore: 1 130 | vrSettings: 131 | cardboard: 132 | depthFormat: 0 133 | enableTransitionView: 0 134 | daydream: 135 | depthFormat: 0 136 | useSustainedPerformanceMode: 0 137 | enableVideoLayer: 0 138 | useProtectedVideoMemory: 0 139 | minimumSupportedHeadTracking: 0 140 | maximumSupportedHeadTracking: 1 141 | hololens: 142 | depthFormat: 1 143 | depthBufferSharingEnabled: 1 144 | lumin: 145 | depthFormat: 0 146 | frameTiming: 2 147 | enableGLCache: 0 148 | glCacheMaxBlobSize: 524288 149 | glCacheMaxFileSize: 8388608 150 | oculus: 151 | sharedDepthBuffer: 1 152 | dashSupport: 1 153 | lowOverheadMode: 0 154 | protectedContext: 0 155 | v2Signing: 0 156 | enable360StereoCapture: 0 157 | isWsaHolographicRemotingEnabled: 0 158 | protectGraphicsMemory: 0 159 | enableFrameTimingStats: 0 160 | useHDRDisplay: 0 161 | m_ColorGamuts: 00000000 162 | targetPixelDensity: 30 163 | resolutionScalingMode: 0 164 | androidSupportedAspectRatio: 1 165 | androidMaxAspectRatio: 2.1 166 | applicationIdentifier: {} 167 | buildNumber: {} 168 | AndroidBundleVersionCode: 1 169 | AndroidMinSdkVersion: 16 170 | AndroidTargetSdkVersion: 0 171 | AndroidPreferredInstallLocation: 1 172 | aotOptions: 173 | stripEngineCode: 1 174 | iPhoneStrippingLevel: 0 175 | iPhoneScriptCallOptimization: 0 176 | ForceInternetPermission: 0 177 | ForceSDCardPermission: 0 178 | CreateWallpaper: 0 179 | APKExpansionFiles: 0 180 | keepLoadedShadersAlive: 0 181 | StripUnusedMeshComponents: 1 182 | VertexChannelCompressionMask: 4054 183 | iPhoneSdkVersion: 988 184 | iOSTargetOSVersionString: 9.0 185 | tvOSSdkVersion: 0 186 | tvOSRequireExtendedGameController: 0 187 | tvOSTargetOSVersionString: 9.0 188 | uIPrerenderedIcon: 0 189 | uIRequiresPersistentWiFi: 0 190 | uIRequiresFullScreen: 1 191 | uIStatusBarHidden: 1 192 | uIExitOnSuspend: 0 193 | uIStatusBarStyle: 0 194 | iPhoneSplashScreen: {fileID: 0} 195 | iPhoneHighResSplashScreen: {fileID: 0} 196 | iPhoneTallHighResSplashScreen: {fileID: 0} 197 | iPhone47inSplashScreen: {fileID: 0} 198 | iPhone55inPortraitSplashScreen: {fileID: 0} 199 | iPhone55inLandscapeSplashScreen: {fileID: 0} 200 | iPhone58inPortraitSplashScreen: {fileID: 0} 201 | iPhone58inLandscapeSplashScreen: {fileID: 0} 202 | iPadPortraitSplashScreen: {fileID: 0} 203 | iPadHighResPortraitSplashScreen: {fileID: 0} 204 | iPadLandscapeSplashScreen: {fileID: 0} 205 | iPadHighResLandscapeSplashScreen: {fileID: 0} 206 | iPhone65inPortraitSplashScreen: {fileID: 0} 207 | iPhone65inLandscapeSplashScreen: {fileID: 0} 208 | iPhone61inPortraitSplashScreen: {fileID: 0} 209 | iPhone61inLandscapeSplashScreen: {fileID: 0} 210 | appleTVSplashScreen: {fileID: 0} 211 | appleTVSplashScreen2x: {fileID: 0} 212 | tvOSSmallIconLayers: [] 213 | tvOSSmallIconLayers2x: [] 214 | tvOSLargeIconLayers: [] 215 | tvOSLargeIconLayers2x: [] 216 | tvOSTopShelfImageLayers: [] 217 | tvOSTopShelfImageLayers2x: [] 218 | tvOSTopShelfImageWideLayers: [] 219 | tvOSTopShelfImageWideLayers2x: [] 220 | iOSLaunchScreenType: 0 221 | iOSLaunchScreenPortrait: {fileID: 0} 222 | iOSLaunchScreenLandscape: {fileID: 0} 223 | iOSLaunchScreenBackgroundColor: 224 | serializedVersion: 2 225 | rgba: 0 226 | iOSLaunchScreenFillPct: 100 227 | iOSLaunchScreenSize: 100 228 | iOSLaunchScreenCustomXibPath: 229 | iOSLaunchScreeniPadType: 0 230 | iOSLaunchScreeniPadImage: {fileID: 0} 231 | iOSLaunchScreeniPadBackgroundColor: 232 | serializedVersion: 2 233 | rgba: 0 234 | iOSLaunchScreeniPadFillPct: 100 235 | iOSLaunchScreeniPadSize: 100 236 | iOSLaunchScreeniPadCustomXibPath: 237 | iOSUseLaunchScreenStoryboard: 0 238 | iOSLaunchScreenCustomStoryboardPath: 239 | iOSDeviceRequirements: [] 240 | iOSURLSchemes: [] 241 | iOSBackgroundModes: 0 242 | iOSMetalForceHardShadows: 0 243 | metalEditorSupport: 1 244 | metalAPIValidation: 1 245 | iOSRenderExtraFrameOnPause: 0 246 | appleDeveloperTeamID: 247 | iOSManualSigningProvisioningProfileID: 248 | tvOSManualSigningProvisioningProfileID: 249 | iOSManualSigningProvisioningProfileType: 0 250 | tvOSManualSigningProvisioningProfileType: 0 251 | appleEnableAutomaticSigning: 0 252 | iOSRequireARKit: 0 253 | iOSAutomaticallyDetectAndAddCapabilities: 1 254 | appleEnableProMotion: 0 255 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 256 | templatePackageId: com.unity.template.3d@3.1.2 257 | templateDefaultScene: Assets/Scenes/SampleScene.unity 258 | AndroidTargetArchitectures: 1 259 | AndroidSplashScreenScale: 0 260 | androidSplashScreen: {fileID: 0} 261 | AndroidKeystoreName: '{inproject}: ' 262 | AndroidKeyaliasName: 263 | AndroidBuildApkPerCpuArchitecture: 0 264 | AndroidTVCompatibility: 0 265 | AndroidIsGame: 1 266 | AndroidEnableTango: 0 267 | androidEnableBanner: 1 268 | androidUseLowAccuracyLocation: 0 269 | androidUseCustomKeystore: 0 270 | m_AndroidBanners: 271 | - width: 320 272 | height: 180 273 | banner: {fileID: 0} 274 | androidGamepadSupportLevel: 0 275 | AndroidValidateAppBundleSize: 1 276 | AndroidAppBundleSizeToValidate: 150 277 | resolutionDialogBanner: {fileID: 0} 278 | m_BuildTargetIcons: [] 279 | m_BuildTargetPlatformIcons: [] 280 | m_BuildTargetBatching: 281 | - m_BuildTarget: Standalone 282 | m_StaticBatching: 1 283 | m_DynamicBatching: 0 284 | - m_BuildTarget: tvOS 285 | m_StaticBatching: 1 286 | m_DynamicBatching: 0 287 | - m_BuildTarget: Android 288 | m_StaticBatching: 1 289 | m_DynamicBatching: 0 290 | - m_BuildTarget: iPhone 291 | m_StaticBatching: 1 292 | m_DynamicBatching: 0 293 | - m_BuildTarget: WebGL 294 | m_StaticBatching: 0 295 | m_DynamicBatching: 0 296 | m_BuildTargetGraphicsAPIs: 297 | - m_BuildTarget: AndroidPlayer 298 | m_APIs: 150000000b000000 299 | m_Automatic: 0 300 | - m_BuildTarget: iOSSupport 301 | m_APIs: 10000000 302 | m_Automatic: 1 303 | - m_BuildTarget: AppleTVSupport 304 | m_APIs: 10000000 305 | m_Automatic: 0 306 | - m_BuildTarget: WebGLSupport 307 | m_APIs: 0b000000 308 | m_Automatic: 1 309 | m_BuildTargetVRSettings: 310 | - m_BuildTarget: Standalone 311 | m_Enabled: 0 312 | m_Devices: 313 | - Oculus 314 | - OpenVR 315 | openGLRequireES31: 0 316 | openGLRequireES31AEP: 0 317 | openGLRequireES32: 0 318 | vuforiaEnabled: 0 319 | m_TemplateCustomTags: {} 320 | mobileMTRendering: 321 | Android: 1 322 | iPhone: 1 323 | tvOS: 1 324 | m_BuildTargetGroupLightmapEncodingQuality: [] 325 | m_BuildTargetGroupLightmapSettings: [] 326 | playModeTestRunnerEnabled: 0 327 | runPlayModeTestAsEditModeTest: 0 328 | actionOnDotNetUnhandledException: 1 329 | enableInternalProfiler: 0 330 | logObjCUncaughtExceptions: 1 331 | enableCrashReportAPI: 0 332 | cameraUsageDescription: 333 | locationUsageDescription: 334 | microphoneUsageDescription: 335 | switchNetLibKey: 336 | switchSocketMemoryPoolSize: 6144 337 | switchSocketAllocatorPoolSize: 128 338 | switchSocketConcurrencyLimit: 14 339 | switchScreenResolutionBehavior: 2 340 | switchUseCPUProfiler: 0 341 | switchApplicationID: 0x01004b9000490000 342 | switchNSODependencies: 343 | switchTitleNames_0: 344 | switchTitleNames_1: 345 | switchTitleNames_2: 346 | switchTitleNames_3: 347 | switchTitleNames_4: 348 | switchTitleNames_5: 349 | switchTitleNames_6: 350 | switchTitleNames_7: 351 | switchTitleNames_8: 352 | switchTitleNames_9: 353 | switchTitleNames_10: 354 | switchTitleNames_11: 355 | switchTitleNames_12: 356 | switchTitleNames_13: 357 | switchTitleNames_14: 358 | switchPublisherNames_0: 359 | switchPublisherNames_1: 360 | switchPublisherNames_2: 361 | switchPublisherNames_3: 362 | switchPublisherNames_4: 363 | switchPublisherNames_5: 364 | switchPublisherNames_6: 365 | switchPublisherNames_7: 366 | switchPublisherNames_8: 367 | switchPublisherNames_9: 368 | switchPublisherNames_10: 369 | switchPublisherNames_11: 370 | switchPublisherNames_12: 371 | switchPublisherNames_13: 372 | switchPublisherNames_14: 373 | switchIcons_0: {fileID: 0} 374 | switchIcons_1: {fileID: 0} 375 | switchIcons_2: {fileID: 0} 376 | switchIcons_3: {fileID: 0} 377 | switchIcons_4: {fileID: 0} 378 | switchIcons_5: {fileID: 0} 379 | switchIcons_6: {fileID: 0} 380 | switchIcons_7: {fileID: 0} 381 | switchIcons_8: {fileID: 0} 382 | switchIcons_9: {fileID: 0} 383 | switchIcons_10: {fileID: 0} 384 | switchIcons_11: {fileID: 0} 385 | switchIcons_12: {fileID: 0} 386 | switchIcons_13: {fileID: 0} 387 | switchIcons_14: {fileID: 0} 388 | switchSmallIcons_0: {fileID: 0} 389 | switchSmallIcons_1: {fileID: 0} 390 | switchSmallIcons_2: {fileID: 0} 391 | switchSmallIcons_3: {fileID: 0} 392 | switchSmallIcons_4: {fileID: 0} 393 | switchSmallIcons_5: {fileID: 0} 394 | switchSmallIcons_6: {fileID: 0} 395 | switchSmallIcons_7: {fileID: 0} 396 | switchSmallIcons_8: {fileID: 0} 397 | switchSmallIcons_9: {fileID: 0} 398 | switchSmallIcons_10: {fileID: 0} 399 | switchSmallIcons_11: {fileID: 0} 400 | switchSmallIcons_12: {fileID: 0} 401 | switchSmallIcons_13: {fileID: 0} 402 | switchSmallIcons_14: {fileID: 0} 403 | switchManualHTML: 404 | switchAccessibleURLs: 405 | switchLegalInformation: 406 | switchMainThreadStackSize: 1048576 407 | switchPresenceGroupId: 408 | switchLogoHandling: 0 409 | switchReleaseVersion: 0 410 | switchDisplayVersion: 1.0.0 411 | switchStartupUserAccount: 0 412 | switchTouchScreenUsage: 0 413 | switchSupportedLanguagesMask: 0 414 | switchLogoType: 0 415 | switchApplicationErrorCodeCategory: 416 | switchUserAccountSaveDataSize: 0 417 | switchUserAccountSaveDataJournalSize: 0 418 | switchApplicationAttribute: 0 419 | switchCardSpecSize: -1 420 | switchCardSpecClock: -1 421 | switchRatingsMask: 0 422 | switchRatingsInt_0: 0 423 | switchRatingsInt_1: 0 424 | switchRatingsInt_2: 0 425 | switchRatingsInt_3: 0 426 | switchRatingsInt_4: 0 427 | switchRatingsInt_5: 0 428 | switchRatingsInt_6: 0 429 | switchRatingsInt_7: 0 430 | switchRatingsInt_8: 0 431 | switchRatingsInt_9: 0 432 | switchRatingsInt_10: 0 433 | switchRatingsInt_11: 0 434 | switchLocalCommunicationIds_0: 435 | switchLocalCommunicationIds_1: 436 | switchLocalCommunicationIds_2: 437 | switchLocalCommunicationIds_3: 438 | switchLocalCommunicationIds_4: 439 | switchLocalCommunicationIds_5: 440 | switchLocalCommunicationIds_6: 441 | switchLocalCommunicationIds_7: 442 | switchParentalControl: 0 443 | switchAllowsScreenshot: 1 444 | switchAllowsVideoCapturing: 1 445 | switchAllowsRuntimeAddOnContentInstall: 0 446 | switchDataLossConfirmation: 0 447 | switchUserAccountLockEnabled: 0 448 | switchSystemResourceMemory: 16777216 449 | switchSupportedNpadStyles: 22 450 | switchNativeFsCacheSize: 32 451 | switchIsHoldTypeHorizontal: 0 452 | switchSupportedNpadCount: 8 453 | switchSocketConfigEnabled: 0 454 | switchTcpInitialSendBufferSize: 32 455 | switchTcpInitialReceiveBufferSize: 64 456 | switchTcpAutoSendBufferSizeMax: 256 457 | switchTcpAutoReceiveBufferSizeMax: 256 458 | switchUdpSendBufferSize: 9 459 | switchUdpReceiveBufferSize: 42 460 | switchSocketBufferEfficiency: 4 461 | switchSocketInitializeEnabled: 1 462 | switchNetworkInterfaceManagerInitializeEnabled: 1 463 | switchPlayerConnectionEnabled: 1 464 | ps4NPAgeRating: 12 465 | ps4NPTitleSecret: 466 | ps4NPTrophyPackPath: 467 | ps4ParentalLevel: 11 468 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 469 | ps4Category: 0 470 | ps4MasterVersion: 01.00 471 | ps4AppVersion: 01.00 472 | ps4AppType: 0 473 | ps4ParamSfxPath: 474 | ps4VideoOutPixelFormat: 0 475 | ps4VideoOutInitialWidth: 1920 476 | ps4VideoOutBaseModeInitialWidth: 1920 477 | ps4VideoOutReprojectionRate: 60 478 | ps4PronunciationXMLPath: 479 | ps4PronunciationSIGPath: 480 | ps4BackgroundImagePath: 481 | ps4StartupImagePath: 482 | ps4StartupImagesFolder: 483 | ps4IconImagesFolder: 484 | ps4SaveDataImagePath: 485 | ps4SdkOverride: 486 | ps4BGMPath: 487 | ps4ShareFilePath: 488 | ps4ShareOverlayImagePath: 489 | ps4PrivacyGuardImagePath: 490 | ps4NPtitleDatPath: 491 | ps4RemotePlayKeyAssignment: -1 492 | ps4RemotePlayKeyMappingDir: 493 | ps4PlayTogetherPlayerCount: 0 494 | ps4EnterButtonAssignment: 1 495 | ps4ApplicationParam1: 0 496 | ps4ApplicationParam2: 0 497 | ps4ApplicationParam3: 0 498 | ps4ApplicationParam4: 0 499 | ps4DownloadDataSize: 0 500 | ps4GarlicHeapSize: 2048 501 | ps4ProGarlicHeapSize: 2560 502 | playerPrefsMaxSize: 32768 503 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 504 | ps4pnSessions: 1 505 | ps4pnPresence: 1 506 | ps4pnFriends: 1 507 | ps4pnGameCustomData: 1 508 | playerPrefsSupport: 0 509 | enableApplicationExit: 0 510 | resetTempFolder: 1 511 | restrictedAudioUsageRights: 0 512 | ps4UseResolutionFallback: 0 513 | ps4ReprojectionSupport: 0 514 | ps4UseAudio3dBackend: 0 515 | ps4SocialScreenEnabled: 0 516 | ps4ScriptOptimizationLevel: 0 517 | ps4Audio3dVirtualSpeakerCount: 14 518 | ps4attribCpuUsage: 0 519 | ps4PatchPkgPath: 520 | ps4PatchLatestPkgPath: 521 | ps4PatchChangeinfoPath: 522 | ps4PatchDayOne: 0 523 | ps4attribUserManagement: 0 524 | ps4attribMoveSupport: 0 525 | ps4attrib3DSupport: 0 526 | ps4attribShareSupport: 0 527 | ps4attribExclusiveVR: 0 528 | ps4disableAutoHideSplash: 0 529 | ps4videoRecordingFeaturesUsed: 0 530 | ps4contentSearchFeaturesUsed: 0 531 | ps4attribEyeToEyeDistanceSettingVR: 0 532 | ps4IncludedModules: [] 533 | monoEnv: 534 | splashScreenBackgroundSourceLandscape: {fileID: 0} 535 | splashScreenBackgroundSourcePortrait: {fileID: 0} 536 | blurSplashScreenBackground: 1 537 | spritePackerPolicy: 538 | webGLMemorySize: 16 539 | webGLExceptionSupport: 1 540 | webGLNameFilesAsHashes: 0 541 | webGLDataCaching: 1 542 | webGLDebugSymbols: 0 543 | webGLEmscriptenArgs: 544 | webGLModulesDirectory: 545 | webGLTemplate: APPLICATION:Default 546 | webGLAnalyzeBuildSize: 0 547 | webGLUseEmbeddedResources: 0 548 | webGLCompressionFormat: 1 549 | webGLLinkerTarget: 1 550 | webGLThreadsSupport: 0 551 | webGLWasmStreaming: 0 552 | scriptingDefineSymbols: {} 553 | platformArchitecture: {} 554 | scriptingBackend: {} 555 | il2cppCompilerConfiguration: {} 556 | managedStrippingLevel: {} 557 | incrementalIl2cppBuild: {} 558 | allowUnsafeCode: 0 559 | additionalIl2CppArgs: 560 | scriptingRuntimeVersion: 1 561 | gcIncremental: 0 562 | gcWBarrierValidation: 0 563 | apiCompatibilityLevelPerPlatform: {} 564 | m_RenderingPath: 1 565 | m_MobileRenderingPath: 1 566 | metroPackageName: Template_3D 567 | metroPackageVersion: 568 | metroCertificatePath: 569 | metroCertificatePassword: 570 | metroCertificateSubject: 571 | metroCertificateIssuer: 572 | metroCertificateNotAfter: 0000000000000000 573 | metroApplicationDescription: Template_3D 574 | wsaImages: {} 575 | metroTileShortName: 576 | metroTileShowName: 0 577 | metroMediumTileShowName: 0 578 | metroLargeTileShowName: 0 579 | metroWideTileShowName: 0 580 | metroSupportStreamingInstall: 0 581 | metroLastRequiredScene: 0 582 | metroDefaultTileSize: 1 583 | metroTileForegroundText: 2 584 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 585 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 586 | a: 1} 587 | metroSplashScreenUseBackgroundColor: 0 588 | platformCapabilities: {} 589 | metroTargetDeviceFamilies: {} 590 | metroFTAName: 591 | metroFTAFileTypes: [] 592 | metroProtocolName: 593 | XboxOneProductId: 594 | XboxOneUpdateKey: 595 | XboxOneSandboxId: 596 | XboxOneContentId: 597 | XboxOneTitleId: 598 | XboxOneSCId: 599 | XboxOneGameOsOverridePath: 600 | XboxOnePackagingOverridePath: 601 | XboxOneAppManifestOverridePath: 602 | XboxOneVersion: 1.0.0.0 603 | XboxOnePackageEncryption: 0 604 | XboxOnePackageUpdateGranularity: 2 605 | XboxOneDescription: 606 | XboxOneLanguage: 607 | - enus 608 | XboxOneCapability: [] 609 | XboxOneGameRating: {} 610 | XboxOneIsContentPackage: 0 611 | XboxOneEnableGPUVariability: 1 612 | XboxOneSockets: {} 613 | XboxOneSplashScreen: {fileID: 0} 614 | XboxOneAllowedProductIds: [] 615 | XboxOnePersistentLocalStorageSize: 0 616 | XboxOneXTitleMemory: 8 617 | xboxOneScriptCompiler: 1 618 | XboxOneOverrideIdentityName: 619 | vrEditorSettings: 620 | daydream: 621 | daydreamIconForeground: {fileID: 0} 622 | daydreamIconBackground: {fileID: 0} 623 | cloudServicesEnabled: 624 | UNet: 1 625 | luminIcon: 626 | m_Name: 627 | m_ModelFolderPath: 628 | m_PortalFolderPath: 629 | luminCert: 630 | m_CertPath: 631 | m_SignPackage: 1 632 | luminIsChannelApp: 0 633 | luminVersion: 634 | m_VersionCode: 1 635 | m_VersionName: 636 | facebookSdkVersion: 7.9.4 637 | facebookAppId: 638 | facebookCookies: 1 639 | facebookLogging: 1 640 | facebookStatus: 1 641 | facebookXfbml: 0 642 | facebookFrictionlessRequests: 1 643 | apiCompatibilityLevel: 6 644 | cloudProjectId: 645 | framebufferDepthMemorylessMode: 0 646 | projectName: 647 | organizationId: 648 | cloudEnabled: 0 649 | enableNativePlatformBackendsForNewInputSystem: 0 650 | disableOldInputManagerSupport: 0 651 | legacyClampBlendShapeWeights: 0 652 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.2.3f1 2 | m_EditorVersionWithRevision: 2019.2.3f1 (8e55c27a4621) 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 | Standalone: 5 227 | WebGL: 3 228 | Windows Store Apps: 5 229 | XboxOne: 5 230 | iPhone: 2 231 | tvOS: 2 232 | -------------------------------------------------------------------------------- /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_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /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_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /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 | # Unity_ECS_HelloWorld 2 | ## Unity_ECS提升游戏的运行效率 3 | 4 | ## DOTS 5 | DATA-ORIENTED TECH STACK(多线程数据导向型技术堆栈) 6 | 7 | ##### 核心-高性能 8 | 充分利用多核处理器,多线程处理让游戏的运行速度更快,更高效。 9 | 10 | ##### 组成 11 | * C#任务系统(Job System),用于高效运行多线程代码 12 | * 实体组件系统(ECS),用于默认编写高性能代码 13 | * Burst编译器,用于生成高度优化的本地代码 14 | 15 | Job System和ECS是两个不同的概念,两者组合在一起才能发挥最大的优势。 16 | 17 | ## C#任务系统 18 | * 在Job System对外之前,Unity虽然内部是多线程处理,但是外部代码必须泡在主线程上。 19 | * C#虽然支持Thread,但是在Unity中只能处理数据,例如:网络消息、下载。如果想在Thread中调用Unity的API那是不行的。 20 | * 有了Job System就可以充分利用CPU的多核,例如:在多线程中修改Transform旋转、缩放、平移。 21 | * 例如:MMO游戏判断碰撞、大量的同步角色坐标、大量的血条飘字等都比较适合在Job System。 22 | * Unity没有直接将Thread开放出来,可以有效避免Thread被滥用,开发者可放心使用Job而不用太多关心如线程安全、枷锁这些问题。 23 | * Job最好配合Burst编译器,这样能生成高效的本地代码 24 | 25 | ## HPC# 26 | 高性能C# 27 | * .NET Core比C++慢2倍 28 | * Mono比.NET Core慢3倍 29 | * IL2CPP比Mono快2-3倍,IL2CPP与.NET Core效率相当,但是依然比C++慢2倍 30 | * Unity使用Burst编译后可以让C#代码的运行效率比C++更快 31 | 32 | ##### 介绍 33 | * C# 引用类型数据的内存分配在堆上,程序员无法主动释放,但必须等到.NET垃圾回收才可以真正清理。 34 | * IL2CPP虽然将IL转成C++代码,实际上还是模拟了.NET的垃圾回收机制,所以效率并非等于Cpp 35 | * HPC#就是NativeArray可代替数组T[]数据类型包括值类型(float,int,uint,short,bool...),enums,structs和其他类型的指针 36 | * NavtiveArray可以在C#层分配C++中的对象,可以主动释放不需要等C#的垃圾回收 37 | * Job System中使用的就是NavtiveArray 38 | 39 | ##### 验证 40 | ![](效果图/14.png) 41 | ![](效果图/15.png) 42 | 上图代码和内存图可见,创建NativeArray在堆内存上永远只有32B,而我们手动创建的数组就12.2KB的堆内存,差别还是很明显的。 43 | 44 | ## 添加组件 45 | * Entities 46 | * Mathematics 47 | * Hybrid Renderer 48 | * Jobs 49 | 50 | ## 效果图对比 51 | 1.用ECS创建10000个cube移动和传统方式创建10000cube移动帧率会有明显差异 52 | ![](效果图/1.png) 53 | ![](效果图/2.png) 54 | 55 | 2.利用Job System提高CPU的运算速度 56 | ![](效果图/3.png) 57 | ![](效果图/4.png) 58 | 59 | 可以看出利用JobSystem计算速度提升了10倍左右 60 | 61 | 再利用Burst更惊人,直接变成了0.2毫秒 62 | ![](效果图/5.png) 63 | 64 | ![](效果图/6.jpg) 65 | 66 | 性能提高了3000倍 67 | 68 | 3.在一组例子 69 | ![](效果图/7.png) 70 | ![](效果图/8.png) 71 | ![](效果图/9.png) 72 | 能看出明显的帧率的变化 73 | 74 | ## 执行顺序 75 | #### 参考文档 76 | https://connect.unity.com/p/unity-ecs-wu-liao-jie-systemzhi-xing-shun-xu 77 | 78 | #### 三个基本的ComponentSystemGroup 79 | ![](效果图/10.png) 80 | 81 | * InitializationSystemGroup 负责初始化工作 82 | * SimulationSystemGroup 负责逻辑运算工作 83 | * PresentationSystemGroup 负责结果与图形渲染工作 84 | 85 | #### 排序原则 86 | * 根据其[UpdateBefore/After(typeof(MySystem))]属性。如果在进行排序时在同一组中找不到属于此属性的系统类型,则它无效,并且会向您发送警告。 87 | * 如果没有[UpdateBefore/After],它将会尝试分配到合适的位置,但仍确保那些具有[UpdateBefore/After]属性的System顺序不会改动。 88 | * 如果该ComponentSystemGroup包含另一个ComponentSystemGroup,则将对其进行递归排序。 89 | * 它可以检测到您的循环依赖关系[UpdateBefore/After]并记录信息。 90 | 91 | #### 添加标签改变执行顺序 92 | ``` 93 | [UpdateInGroup(typeof(InitializationSystemGroup))] 94 | public class SequenceSystemA : ComponentSystem 95 | { 96 | protected override void OnUpdate() 97 | { 98 | Debug.Log("SequenceSystemA Updating"); 99 | } 100 | } 101 | ``` 102 | 103 | ``` 104 | [UpdateInGroup(typeof(SimulationSystemGroup))] 105 | public class SequenceSystemB : ComponentSystem 106 | { 107 | protected override void OnUpdate() 108 | { 109 | Debug.Log("SequenceSystemB Updating"); 110 | } 111 | } 112 | ``` 113 | ![](效果图/11.png) 114 | 115 | 更改标签 116 | ``` 117 | [UpdateInGroup(typeof(SimulationSystemGroup))] 118 | [UpdateAfter(typeof(SequenceSystemB))] 119 | public class SequenceSystemA : ComponentSystem 120 | { 121 | protected override void OnUpdate() 122 | { 123 | Debug.Log("SequenceSystemA Updating"); 124 | } 125 | } 126 | ``` 127 | 128 | ``` 129 | [UpdateInGroup(typeof(SimulationSystemGroup))] 130 | public class SequenceSystemB : ComponentSystem 131 | { 132 | protected override void OnUpdate() 133 | { 134 | Debug.Log("SequenceSystemB Updating"); 135 | } 136 | } 137 | ``` 138 | ![](效果图/12.png) 139 | ![](效果图/13.png) 140 | 141 | 142 | ## C#任务系统 143 | * Job中数据类型只能是值类型 144 | * Job中不能使用引用类型,T[]数组属于引用类型,所以无法在job中使用 145 | * Job中使用NativeArray代替T[] 146 | 147 | ![](效果图/16.png) 148 | ![](效果图/17.png) 149 | 启动1000个Job 150 | ![](效果图/18.png) 151 | 发现各个工作线程并不是同时执行的,但有个好处是确保数据是正确的。 152 | 153 | ## IJobParallelFor(Job并行执行) 154 | * IJOB是一个一个的开县城任务,因为数据是顺序执行的所以他可以确保数据正确性。 155 | * 如果想让线程任务真正的并行,那么可以采用IJobParallelFor 156 | * 一旦线程任务并行的话,就意味着数据的执行下顺序不是线性的,每一个Job里的数据不能完全依赖上一个Job执行后的结果。 157 | * [ReadOnly]声明数据是否制度,如果数据是只读的,意味着这个数据不需要加锁。 158 | * 如果不声明默认数据是Read/Write的,数据一旦需要修改,那么Job就一定要等它。 159 | * 然而这一切Unity都已经帮我们做好,不需要自己做加解锁逻辑。 160 | 161 | ![](效果图/19.png) 162 | 163 | ![](效果图/20.png) 164 | 165 | 可以看出完全并行执行了。 166 | 167 | ## Burst编译器原理 168 | * Burst编译器是以LLVM为记住的后端编译技术 169 | * 编译器的原理会分为5个步骤:源代码->前端->优化器->后端->机器码 170 | * LLVM的定义了个抽象语言IR,前端负责将源码C#编译成IR,优化器负责优化IR,后端负责将IR生成目标语言这里就是机器码 171 | * 正是因为抽象语言IR的存在,所以LLVM支持的语言很多,而且也方便扩展C#、ActionScript、OC、Python、Swift等语言。 172 | * LLVM代码是开源了,所以Unity很适合用它来做Burst的编译。 173 | * 遗憾的是LLVM对C#的GC做的不好,所以Burst只支持值类型的数据编译,不支持引用类型的数据编译。 174 | 175 | ## Unity.Mathematics数学库 176 | * Unity.Mathematics提供了矢量类型(float4,flaot3),它可以直接银蛇到硬件SIMD寄存器。 177 | * Unity.mathematics的Math类中也提供了直接银蛇到硬件SIMD寄存器。 178 | * 这样原本CPU需要一个个计算的,有了SIMD可以一次性计算完毕。 179 | * 需要注意的是Unity之前的Math类默认是不支持映射SIMD寄存器的。 180 | 181 | ![](效果图/21.png) 182 | 183 | 184 | ## 启动BurstCompile 185 | 在Struct上添加上BurstCompile标签,Struct必须继承IJob类,否则无效。 186 | 187 | ## Component组件 188 | * 组件是一个简单的数据存储,它是struct值类型,并且实现IComponentData接口,它不能写方法,没有任何行为,比如前面提到的Position或者Rotation。 189 | * struct中建议使用float3代替Vector3、quaternion代替Quaternion,原因就是我们之前提到了Unity重写的数学库。 190 | * Unity.Mathematics的math类中也提供了直接映射到硬件SIMD寄存器。 191 | 192 | ![](效果图/22.png) 193 | 相同类型的组件会连续排布,提高cache命中率。 194 | 195 | ## Archetype原型 196 | ![](效果图/23.png) 197 | * 遍历组件之所以特别高效,得益于Archetype原型。 198 | * Archetype是一个容器,并且Unity规定每一个Archetype的大小是16kb,不够就再开一个,始终保持内存的连续性。 199 | * 如果我们在同一帧创建了100个实体,每个实体都有Position和Rotation组件,因为他们都用了相同的ArcheType所以他们在内存中都是连续的。 200 | 201 | ## System系统 202 | * System系统只关心Component组件,并不关心Component到底属于哪个Entity。 203 | * System系统中定义它所关心的组件,组件都连续的保存在ArcheType中,所以查找速度非常快。 204 | * System系统中在Update里可以统一更新自己关心的组件。 205 | ![](效果图/24.png) 206 | 207 | ## ISharedComponentData共享组件 208 | * IComponentData是结构体,结构体本身就是值类型数据,如果大量结构体中保存到 数据完全相同,那么在内存中也会产生多份。 209 | * ISharedComponentData表示共享组件,比较典型的例子就是场景中可能有很多物体渲染时的mesh和材质是相同的,如果使用IcomponentData来保存这就是内存的白白浪费。ISharedComponentData组件需要实现IEquateble接口,用于判断两个组件是否相等。 210 | ![](效果图/25.png) 211 | 212 | ## World世界 213 | * World包含EntityManager(实体管理器)、ComponentSystem(组件系统)、ArcheTypes(原型) 214 | * 注意EntityManager包含的是这个世界里所有的Entity、ComponentSystem则包含世界里所有的组件、ArcheTypes包含世界里所有的原型。 215 | * ECS默认提供了一个世界,我们也可以自己创建多个世界。 216 | * 世界与世界之间不具备互通性,每个世界都是唯一的,多个世界则可以同时并行。 217 | * World world = new World("MyWorld");可以new一个新的世界。 218 | ![](效果图/26.png) 219 | 220 | ## ECS+JOB+BURST让性能飞起来 221 | * ECS里的Component已经具有超高的Cache命中率,性能已经比传统的脚本方式快了不少。 222 | * 但是ComponentSystem知识运行在主线程中。 223 | * 这就意味着每个ComponentSystem都必须等上一个执行完毕才能执行自己的。 224 | * ECS要配合JobSystem才能让性能飞起来。 225 | ![](效果图/27.png) 226 | 227 | ## JobComponentSystem 228 | * JobComponentSystem继承ComponentSystem。 229 | * JobCompoonentSystem的Update和ComponentSystem一样都是一个执行完毕再执行喜爱一个。 230 | * 区别是JobComponentSystem的Update可以很快就返回,将复杂的计算丢给Job去完成。 231 | * 通过[ReadOnly]标志job中的数据是否为只读,只读的话Job是可以完全并行的。 232 | * 如果Job中某一个数据发声修改,那么这块数据就不能访问这块数据其他的Job并行运行。 233 | 234 | ## DOTS实践-删除游戏对象 235 | * 给一个空的GameObject绑定渲染组件和旋转组件。 236 | * 以前需要给GameObject板顶MeshFilter和MeshRender组件,现在都不需要了。 237 | * 使用ComponentDataProxy可以把一个struct绑定在游戏对象上。 238 | ![](效果图/28.png) 239 | ![](效果图/29.png) 240 | ![](效果图/30.png) 241 | 242 | ## 彻底删除游戏对象 243 | * Hierachy中现在仅有一个空的游戏对象,通过proxy将渲染、渲染组件绑定。 244 | * 进一步优化,把这个空游戏对象也彻底从Hierarchy视图中删除。 245 | ![](效果图/31.png) 246 | 247 | ## 场景导出ECS 248 | ![](效果图/32.png) 249 | 点击新生成的脚本中的Close按钮 250 | 251 | ## Prefab导出ECS 252 | 保存Prefab,通过GameObjectConversionUtility.ConvertGameObjectHierarchy直接将Prefab加载成ECS对象,注意Prefab只能是普通Mesh,如果带有谷歌动画是不能转成ECS的。 253 | ``` 254 | var manager = World.Active.EntityManager; 255 | Entity entity = GameObejctConversionUtility.ConvertGameObjectHierarchy(prefab,World.Active); 256 | Entity go = manager.Instantiate(entity); 257 | ``` 258 | 259 | ## ECS渲染 260 | * ECS本身是不包含渲染的,但是游戏的渲染其实跟实体Entity是紧密绑定的。 261 | * 原理大致是通过ECS在JOB中先准备渲染的数据,然后通过GPU Instancing一次渲染,中间不产生GameObject。 262 | * GPU Instancing是不待裁剪的,并且需要每帧在Update里调用,这样会产生额外的开销,即使物体不发生位置或者属性变化都需要强制刷新。 263 | * 建议使用CommandBuffer来渲染GPU Instancing,这样只有当物体位置或者属性发声改变再新型 264 | * 强制刷新。 265 | 266 | ##### BatchRendererGroup 267 | ![](效果图/33.png) 268 | 269 | ## GPU Instancing烘焙贴图 270 | * Lightmap红配贴图需要用到UV2 271 | * UV1是Mesh从自身贴图中采样,UV2则是Mesh从Lightmap烘焙贴图采样,最后在PS里将烘焙颜色叠加在一起,Mesh就能显示烘焙样色了。 272 | * 如果常经理大量相同的网格,但是由于红配后UV2不同,这样网格就不相同了,将大量占内存。 273 | * 所以Unity采用的方式是模型导入Unity后会统一生成相同的UV2,每个Rnederer组件需要制定Lightmap的贴图ID以及Vector4偏移量,这个偏移量需要传入shader中,GPU中根据UV2加上偏移量后再去Lightmap中采样颜色。 274 | * 这样做完网格都可以大量重用,知识每个Renderer组件增加一个id和一个vector4。 -------------------------------------------------------------------------------- /效果图/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/1.png -------------------------------------------------------------------------------- /效果图/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/10.png -------------------------------------------------------------------------------- /效果图/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/11.png -------------------------------------------------------------------------------- /效果图/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/12.png -------------------------------------------------------------------------------- /效果图/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/13.png -------------------------------------------------------------------------------- /效果图/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/14.png -------------------------------------------------------------------------------- /效果图/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/15.png -------------------------------------------------------------------------------- /效果图/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/16.png -------------------------------------------------------------------------------- /效果图/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/17.png -------------------------------------------------------------------------------- /效果图/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/18.png -------------------------------------------------------------------------------- /效果图/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/19.png -------------------------------------------------------------------------------- /效果图/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/2.png -------------------------------------------------------------------------------- /效果图/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/20.png -------------------------------------------------------------------------------- /效果图/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/21.png -------------------------------------------------------------------------------- /效果图/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/22.png -------------------------------------------------------------------------------- /效果图/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/23.png -------------------------------------------------------------------------------- /效果图/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/24.png -------------------------------------------------------------------------------- /效果图/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/25.png -------------------------------------------------------------------------------- /效果图/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/26.png -------------------------------------------------------------------------------- /效果图/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/27.png -------------------------------------------------------------------------------- /效果图/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/28.png -------------------------------------------------------------------------------- /效果图/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/29.png -------------------------------------------------------------------------------- /效果图/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/3.png -------------------------------------------------------------------------------- /效果图/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/30.png -------------------------------------------------------------------------------- /效果图/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/31.png -------------------------------------------------------------------------------- /效果图/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/32.png -------------------------------------------------------------------------------- /效果图/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/33.png -------------------------------------------------------------------------------- /效果图/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/4.png -------------------------------------------------------------------------------- /效果图/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/5.png -------------------------------------------------------------------------------- /效果图/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/6.jpg -------------------------------------------------------------------------------- /效果图/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/7.png -------------------------------------------------------------------------------- /效果图/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/8.png -------------------------------------------------------------------------------- /效果图/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dingxiaowei/Unity_ECS_HelloWorld/cb37b636fdd9ddb1b6c259c63508c43fa78e292c/效果图/9.png --------------------------------------------------------------------------------