Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Deciding collider priority

Discussion in 'Getting Started' started by pod11, Oct 23, 2020.

  1. pod11

    pod11

    Joined:
    Jan 6, 2019
    Posts:
    60
    In my simple project i decided against using unityUi, and not as im doing a game menu , that pops up after pressing " esc" i encountered a problem:

    Game tiles under buttons in this menu have a collider that activate "onMouse enter"
    so do the buttons in the game menu, and apperently despite menu being on different layer Game is not hiding those Tile colliders that are under menu button coliders and button activation is obscured.

    Is there a way to layer different colliders so one of them hide under another and is not triggered by MouseEnter?