Skip to content

Commit 1bf7816

Browse files
author
Chris Elion
authored
add migration notes on Behavior Type (#3008)
1 parent 1f0d212 commit 1bf7816

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/Migrating.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
### Important Changes
66
* Text actions and observations, and custom action and observation protos have been removed.
77
* RayPerception3D and RayPerception2D are marked deprecated, and will be removed in a future release. They can be replaced by RayPerceptionSensorComponent3D and RayPerceptionSensorComponent2D.
8+
* The `Use Heuristic` checkbox in Behavior Parameters has been replaced with a `Behavior Type` dropdown menu. This has the following options:
9+
* `Default` corresponds to the previous unchecked behavior, meaning that Agents will train if they connect to a python trainer, otherwise they will performance inference.
10+
* `Heuristic Only` means the Agent will always use the `Heuristic()` method. This corresponds to having "Use Heuristic" selected in 0.11.0.
11+
* `Inference Only` means the Agent will always perform inference.
812

913
### Steps to Migrate
1014
* We [fixed a bug](https://github.com/Unity-Technologies/ml-agents/pull/2823) in `RayPerception3d.Perceive()` that was causing the `endOffset` to be used incorrectly. However this may produce different behavior from previous versions if you use a non-zero `startOffset`. To reproduce the old behavior, you should increase the the value of `endOffset` by `startOffset`. You can verify your raycasts are performing as expected in scene view using the debug rays.

0 commit comments

Comments
 (0)