Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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!