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

RaycastCommand for 2D?

Discussion in '2D' started by RandyGD, Mar 5, 2021.

  1. RandyGD

    RandyGD

    Joined:
    Mar 10, 2019
    Posts:
    1
    Hi everyone

    I'm working on a very raycast-heavy 2D project and would like to use RaycastCommand, but unfortunately RaycastCommand only supports RaycastHit, not RaycastHit2D.

    Is there an alternative I can use for a 2D project? Or a way for me to create a job to handle 2D raycasts?

    Thanks!