Skip to content

Commit da329a9

Browse files
authored
Update unity_env.py
using multiple observations
1 parent e82450a commit da329a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gym-unity/gym_unity/envs/unity_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, environment_filename: str, worker_id=0, use_visual=False, mul
4444
if use_visual and brain.number_visual_observations == 0:
4545
raise UnityGymException("`use_visual` was set to True, however there are no"
4646
" visual observations as part of this environment.")
47-
self.use_visual = brain.number_visual_observations == 1 and use_visual
47+
self.use_visual = brain.number_visual_observations >= 1 and use_visual
4848

4949
if brain.num_stacked_vector_observations != 1:
5050
raise UnityGymException(

0 commit comments

Comments
 (0)