Skip to content

Commit d15d5c6

Browse files
authored
Merge pull request #1262 from xiaodi-faith/patch-1
Update unity_env.py
2 parents d10a2f8 + da329a9 commit d15d5c6

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)