Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Boxcollider 2D blocks world space canvas

Discussion in 'UGUI & TextMesh Pro' started by Westy661, Nov 1, 2015.

  1. Westy661

    Westy661

    Joined:
    Sep 13, 2015
    Posts:
    14
    Hi guys,
    i have a problem which it seems i'am unable to solve.
    • I'am developing a 2.5D point and click game. Point and click works with Box Collider 2D-s on the clickable surface, then ITween from Playmaker.
    • I want to display a context menu with a world space canvas above it.
    The problem is, that i cant click on the context menu. The collider picks up the raycast, and the character starts to move. On the other hand, if i turn of the collider, everything works fine.
     
    Last edited: Nov 1, 2015
  2. Westy661

    Westy661

    Joined:
    Sep 13, 2015
    Posts:
    14
    Few minutes after i posted this, half of the problem already solved:
    - If i block the BoxCollider's layer with the Blocking Mask on my Graphics raycaster, i can mouse over and click the context menu. It still doesnt block the rays tough - the character moves to the clicked point.
     
  3. Westy661

    Westy661

    Joined:
    Sep 13, 2015
    Posts:
    14
    Second half of the Question also solved. I built into my Point&Click Playmaker system an action which checks if a menu was clicked. (Ecosystem, Is Pointer Over UI Object, Pointer id = -1)