Skip to content
Merged
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
4 changes: 3 additions & 1 deletion gym-unity/gym_unity/envs/unity_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(
uint8_visual=False,
multiagent=False,
flatten_branched=False,
no_graphics=False
):
"""
Environment initialization
Expand All @@ -42,8 +43,9 @@ def __init__(
:param uint8_visual: Return visual observations as uint8 (0-255) matrices instead of float (0.0-1.0).
:param multiagent: Whether to run in multi-agent mode (lists of obs, reward, done).
:param flatten_branched: If True, turn branched discrete action spaces into a Discrete space rather than MultiDiscrete.
:param no_graphics: Whether to run the Unity simulator in no-graphics mode
"""
self._env = UnityEnvironment(environment_filename, worker_id)
self._env = UnityEnvironment(environment_filename, worker_id, no_graphics=no_graphics)
self.name = self._env.academy_name
self.visual_obs = None
self._current_state = None
Expand Down