Method ObservationToTexture
ObservationToTexture(Camera, Texture2D, int, int)
Renders a Camera instance to a 2D texture at the corresponding resolution.
Declaration
public static void ObservationToTexture(Camera obsCamera, Texture2D texture2D, int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| Camera | obsCamera | Camera. |
| Texture2D | texture2D | Texture2D to render to. |
| int | width | Width of resulting 2D texture. |
| int | height | Height of resulting 2D texture. |