Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Way to visualize Ray Perception Sensor

Discussion in 'ML-Agents' started by seboz123, Sep 28, 2020.

  1. seboz123

    seboz123

    Joined:
    Mar 7, 2020
    Posts:
    24
    Hi,

    I was wondering, if there is an easy way to draw the Debug gizmos of the Ray Perception Sensor ingame for demonstration purposes?

    Thanks!
     
  2. hamik166

    hamik166

    Joined:
    Oct 19, 2019
    Posts:
    31
  3. m4l4

    m4l4

    Joined:
    Jul 28, 2020
    Posts:
    81
    depending on what you want to achieve, the silliest solution is to select the agent from the gameobjects list and press play. among the other things (like agent colliders, child camera etc.) it will show the rays of the sensor. Make sure you have Gizmos activated on the game windows. might be enough for a simple demonstration.