Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview 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.