Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gym-unity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ The returned environment `env` will function as a gym.
be accessed from the `info` provided by `env.step(action)`.
- Stacked vector observations are not supported.
- Environment registration for use with `gym.make()` is currently not supported.
- Calling env.render() will not render a new frame of the environment. It will
return the latest visual observation if using visual observations.

## Running OpenAI Baselines Algorithms

Expand Down
4 changes: 4 additions & 0 deletions gym-unity/gym_unity/envs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ def _get_vec_obs_size(self) -> int:
return result

def render(self, mode="rgb_array"):
"""
Return the latest visual observations.
Note that it will not render a new frame of the environment.
"""
return self.visual_obs

def close(self) -> None:
Expand Down