Project Settings
Layers
When importing the asset into your project, it is shipped with the following Project Settings including layers already set up. Some of the following layers are provided for convenience and not actually used anywhere.
Layer | Number | Description |
---|---|---|
Unit | 10 | Assigned to all enemies, set as LayerMask in WaveManager. |
Tower | 11 | Assigned to all towers, set as LayerMask in TowerManager, used for selecting towers. |
Defense | 12 | Assigned to all DefensePoints, set as LayerMask in DefensePointManager. |
Grid | 13 | Assigned to all GridPlacements, set as LayerMask in GridManager, used for selecting grids. |
Minimap | 14 | Assigned to all Icon meshes on Units, for rendering them in the Minimap. |
Spawn | 15 | Assigned to all Player Spawn icons, for rendering them in the Minimap. |
Physics Collision Matrix
In the game scenes, different layers are used for the environment, scene and player objects (see above). However, if you look at the Physics Collision Matrix by navigating to Edit > Project Settings > Physics
, you will see that no physics collisions are used in this asset at all, except Raycasting! This is because we use distance checks instead of collisions, which can easily be jobified and spread across multiple CPU cores to save even more performance in the long run.
Package Dependencies
Name | Technical | Used by |
---|---|---|
2D Sprite | com.unity.2d.sprite | UI, FX |
Advertisement Legacy | com.unity.ads | (Optional) Ads |
Authentication | com.unity.services.authentication | (Netcode) Relay and Lobby |
Burst | com.unity.burst | Netcode, Jobs |
Collections | com.unity.collections | Netcode |
Core RP Library | com.unity.render-pipelines.core | Render Pipeline |
In App Purchasing | com.unity.purchasing | (Optional) IAPs |
Lobby | com.unity.services.lobby | (Netcode) Matchmaking |
Mathematics | com.unity.mathematics | Burst, Netcode, Splines |
Mono Cecil | com.unity.nuget.mono-cecil | Netcode |
Netcode for GameObjects | com.unity.netcode.gameobjects | (Netcode) Networking |
Newtonsoft Json | com.unity.nuget.newtonsoft-json | IAP, Netcode |
QoS | com.unity.services.qos | (Netcode) Server Pings |
Relay | com.unity.services.relay | (Netcode) Player Connection |
Searcher | com.unity.searcher | Render Pipeline |
Services Core | com.unity.services.core | Unity Services |
Settings Manager | com.unity.settings-manager | Splines |
Shader Graph | com.unity.shadergraph | Render Pipeline, FX |
Splines | com.unity.splines | Unit Movement |
Unity Transport | com.unity.transport | Netcode |
Unity UI | com.unity.ugui | UI |
Universal RP | com.unity.render-pipelines.universal | Render Pipeline |