浏览代码

Update Creating-Custom-Protobuf-Messages.md

- Note to use the windows batch file on windows
/develop-generalizationTraining-TrainerController
rsfutch77 6 年前
当前提交
412dbe92
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      docs/Creating-Custom-Protobuf-Messages.md

2
docs/Creating-Custom-Protobuf-Messages.md


## Implementing a Custom Message
Assume the ml-agents repository is checked out to a folder named $MLAGENTS_ROOT. Whenever you change the fields of a custom message, you must run `$MLAGENTS_ROOT/protobuf-definitions/make.bat` to create C# and Python files corresponding to the new message. Follow the directions in [this file](../protobuf-definitions/README.md) for guidance. After running `$MLAGENTS_ROOT/protobuf-definitions/make.bat`, reinstall the Python package by running `pip install $MLAGENTS_ROOT/ml-agents` and make sure your Unity project is using the newly-generated version of `$MLAGENTS_ROOT/UnitySDK`.
Assume the ml-agents repository is checked out to a folder named $MLAGENTS_ROOT. Whenever you change the fields of a custom message, you must run `$MLAGENTS_ROOT/protobuf-definitions/make.bat` (for Windows, use `make_for_win.bat`) to create C# and Python files corresponding to the new message. Follow the directions in [this file](../protobuf-definitions/README.md) for guidance. After running `$MLAGENTS_ROOT/protobuf-definitions/make.bat`, reinstall the Python package by running `pip install $MLAGENTS_ROOT/ml-agents` and make sure your Unity project is using the newly-generated version of `$MLAGENTS_ROOT/UnitySDK`.
## Custom Message Types

正在加载...
取消
保存