Search Unity

Physics2DRaycaster doesn't account for SortingGroup component

Discussion in 'UGUI & TextMesh Pro' started by zvinless, Oct 28, 2018.

  1. zvinless

    zvinless

    Joined:
    Oct 6, 2014
    Posts:
    18
    Are there any plans to update it to do so? SortingGroups are really helpful for sprite layering, and since the raycaster already considers the sorting order of SpriteRenderers, it'd make sense to handle groups, too. I've made a subclass to post-process the raycast results, but it's less than ideal since I can't easily access some of the internal code. Thanks!
     
  2. waitix

    waitix

    Joined:
    Sep 29, 2016
    Posts:
    8