浏览代码

Update to documentation (#1872)

* Update to documentation

* Update Custom-Protos.md
/develop-generalizationTraining-TrainerController
GitHub 6 年前
当前提交
65ba0eb7
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      docs/Custom-Protos.md
  2. 2
      protobuf-definitions/README.md

2
docs/Custom-Protos.md


Unity and Python communicate by sending protobuf messages to and from each other. You can create custom protobuf messages if you want to exchange structured data beyond what is included by default.
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 that file for guidance. After running it, 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` 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 it, 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

2
protobuf-definitions/README.md


## Requirements
* grpc 1.10.1
* grpc 1.14.1
* protobuf 3.6.0
## Set-up & Installation

正在加载...
取消
保存