Project Settings
Layers
When importing the asset into your project, it is shipped with the following Project Settings including layers already set up.
Layer | Number | Description |
---|---|---|
Player | 8 | Assigned to the user-controlled Player and Bot prefabs. |
HUD | 9 | Player names, health and shield bars. Hidden in the Camera's culling mask on death and game over. |
Bullet | 10 | Assigned to all Bullet prefabs. |
Physics Collision Matrix
In the game scenes, different layers are used for the environment, scene and player objects. This is done so that our customized physics collision matrix ensures collisions between certain objects only occur where we want them to. To change the collision matrix, navigate to Edit > Project Settings > Physics
.
Layer | Description |
---|---|
Default | Static environment with colliders to create game world boundaries. |
TransparentFX | Team spawn area boundaries, should not collide with anything. |
Ignore Raycast | Collectibles, should collide with players and collectible-zones. |
UI | All visual game elements on the canvas, no collision. |
Player | Collides with environment, collectibles or bullets, not with other players. |
HUD | Visual player elements, hidden on player death, no collision. |
Bullet | Only collides with environment or players, not with other bullets. |