Search Unity

Resolved Access the cameraSensor?

Discussion in 'ML-Agents' started by ValBis, Feb 4, 2021.

  1. ValBis

    ValBis

    Joined:
    Jul 9, 2017
    Posts:
    50
    Hello. Is there any way to access the cameraSensor? As far as I understand the CameraSensorComponent creates a sensor which is however _not_ hold in the cameraSensorComponent itself but in the Agent, in the _sensor_ List. However, this seems to be inaccessible.
    Is there any way a user can access it?

    Use case: I want to call GetCompressedObservation directly in order to save the camera frames on disk instead of running them in real time.

    Thanks! :)
     
  2. awjuliani

    awjuliani

    Unity Technologies

    Joined:
    Mar 1, 2017
    Posts:
    69
  3. ValBis

    ValBis

    Joined:
    Jul 9, 2017
    Posts:
    50
    Makes sense, thanks!