Skip to content

Commit

Permalink
[RLlib] Unity3D adapter: Disable env pre-checking (agent IDs not know…
Browse files Browse the repository at this point in the history
…n before connection to Unity editor). (ray-project#35167)
  • Loading branch information
sven1977 authored and architkulkarni committed May 16, 2023
1 parent fdb79a2 commit 63eab90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rllib/env/wrappers/unity3d_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def __init__(
Note: The game itself may contain its own episode length
limits, which are always obeyed (on top of this value here).
"""
# Skip env checking as the nature of the agent IDs depends on the game
# running in the connected Unity editor.
self._skip_env_checking = True

super().__init__()

Expand Down

0 comments on commit 63eab90

Please sign in to comment.