Search Unity

Unity Layers naming and categorization example

Discussion in 'General Discussion' started by potuzhna, May 13, 2021.

  1. potuzhna

    potuzhna

    Joined:
    May 13, 2021
    Posts:
    2
    Hi, everyone!

    I am looking for a layers categorization example for a Unity project. It must be somewhat universal for almost all gameplays and situations. The type of games we are working on relates to a Half-Life Alyx (game mechanics, environment, VR).

    Can you help by giving me a full possible list of layers that can be developed here?
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,570
    "LevelGeometry" - level geometry that blocks the player
    "PlayerBlockers" - Blocks player movement.
    "EnemyBlockers" - Blocks enemy movement.
    "PlayerTriggers" - triggers for player character
    "EnemyTriggers" - triggers for enemy characters.
    "Projectiles" - Any bullet that is not a raycast
    "CharacterColliders" - Capsules attached to characters
    "BodyColliders" - if a character has detiled body to, say, detect a headshot or hit in the elimbs, that's where it goes.
    "Environmental bodies".

    You could also split projectiles into "playerprojectiles" and "enemyprojectiles" if you want to, or combine "Player/Enemy Blockers" into "Blockers and "Player/Enemy triggers" into "triggers" or eliminate "body colliders". Depending on the project.

    In this scenario, for example, Player would collider with LevelGeometry,PlayerBlockers,PlayerTriggers,CharacterColliders, but not with EnemyBlockers, EnemyTriggers, etc.
     
    stain2319 and potuzhna like this.
  3. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    Here are some layers from a actual VR shooter

    upload_2021-5-13_17-50-19.png

    edit: some of those are no longer used though, like Ragdoll and AI
     
    potuzhna likes this.
  4. potuzhna

    potuzhna

    Joined:
    May 13, 2021
    Posts:
    2
    Thank you so much for your help!
    We used this list to create our own.