Skip to content

Commit ff667e7

Browse files
author
Ervin T
authored
Merge pull request #4331 from Unity-Technologies/develop-add-fire-mm2
[add-fire] Merge post-0.19.0 master into add-fire (ver. 2)
2 parents 1bae38e + f54bf42 commit ff667e7

File tree

91 files changed

+2526
-344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+2526
-344
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ repos:
4444
hooks:
4545
- id: pyupgrade
4646
args: [--py3-plus, --py36-plus]
47-
exclude: .*barracuda.py
47+
exclude: >
48+
(?x)^(
49+
.*barracuda.py|
50+
.*_pb2.py|
51+
.*_pb2_grpc.py
52+
)$
4853
4954
- repo: https://github.com/pre-commit/pre-commit-hooks
5055
rev: v2.5.0

.yamato/com.unity.ml-agents-performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Run_Mac_Perfomance_Tests{{ editor.version }}:
1212
variables:
1313
UNITY_VERSION: {{ editor.version }}
1414
commands:
15-
- python -m pip install unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple
15+
- python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1616
- unity-downloader-cli -u {{ editor.version }} -c editor --wait --fast
1717
- curl -s https://artifactory.internal.unity3d.com/core-automation/tools/utr-standalone/utr --output utr
1818
- chmod +x ./utr

.yamato/com.unity.ml-agents-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ test_{{ package.name }}_{{ platform.name }}_trunk:
113113
image: {{ platform.image }}
114114
flavor: {{ platform.flavor}}
115115
commands:
116-
- python -m pip install unity-downloader-cli --extra-index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/unity-pypi-local/simple --upgrade
116+
- python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
117117
- unity-downloader-cli -u trunk -c editor --wait --fast
118118
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
119119
- upm-ci project test -u {{ editor.version }} --project-path Project --package-filter {{ package.name }} {{ coverageOptions }}

.yamato/gym-interface-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test_gym_interface_{{ editor.version }}:
1111
variables:
1212
UNITY_VERSION: {{ editor.version }}
1313
commands:
14-
- pip install pyyaml
14+
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1515
- python -u -m ml-agents.tests.yamato.setup_venv
1616
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_gym.py --env=artifacts/testPlayer-Basic
1717
dependencies:
@@ -21,12 +21,12 @@ test_gym_interface_{{ editor.version }}:
2121
expression: |
2222
(pull_request.target eq "master" OR
2323
pull_request.target match "release.+") AND
24-
NOT pull_request.draft AND
25-
(pull_request.changes.any match "com.unity.ml-agents/**" OR
26-
pull_request.changes.any match "Project/**" OR
27-
pull_request.changes.any match "ml-agents/**" OR
28-
pull_request.changes.any match "ml-agents-envs/**" OR
29-
pull_request.changes.any match "gym-unity/**" OR
24+
NOT pull_request.draft AND
25+
(pull_request.changes.any match "com.unity.ml-agents/**" OR
26+
pull_request.changes.any match "Project/**" OR
27+
pull_request.changes.any match "ml-agents/**" OR
28+
pull_request.changes.any match "ml-agents-envs/**" OR
29+
pull_request.changes.any match "gym-unity/**" OR
3030
pull_request.changes.any match ".yamato/gym-interface-test.yml") AND
3131
NOT pull_request.changes.all match "**/*.md"
3232
{% endfor %}

.yamato/protobuf-generation-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ test_mac_protobuf_generation:
1313
nuget install Grpc.Tools -Version $GRPC_VERSION -OutputDirectory protobuf-definitions/
1414
python3 -m venv venv
1515
. venv/bin/activate
16-
pip install --upgrade pip
17-
pip install grpcio-tools==1.13.0 --progress-bar=off
18-
pip install mypy-protobuf==1.16.0 --progress-bar=off
16+
pip install --upgrade pip --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
17+
pip install grpcio==1.28.1 grpcio-tools==1.13.0 protobuf==3.11.3 six==1.14.0 mypy-protobuf==1.16.0 --progress-bar=off --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1918
cd protobuf-definitions
2019
chmod +x Grpc.Tools.$GRPC_VERSION/tools/macosx_x64/protoc
2120
chmod +x Grpc.Tools.$GRPC_VERSION/tools/macosx_x64/grpc_csharp_plugin

.yamato/python-ll-api-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ test_mac_ll_api_{{ editor.version }}:
1111
variables:
1212
UNITY_VERSION: {{ editor.version }}
1313
commands:
14-
- pip install pyyaml
14+
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1515
- python -u -m ml-agents.tests.yamato.setup_venv
16-
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py
16+
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py
1717
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py --env=artifacts/testPlayer-Basic
1818
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py --env=artifacts/testPlayer-WallJump
1919
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py --env=artifacts/testPlayer-Bouncer
@@ -24,11 +24,11 @@ test_mac_ll_api_{{ editor.version }}:
2424
expression: |
2525
(pull_request.target eq "master" OR
2626
pull_request.target match "release.+") AND
27-
NOT pull_request.draft AND
28-
(pull_request.changes.any match "com.unity.ml-agents/**" OR
29-
pull_request.changes.any match "Project/**" OR
30-
pull_request.changes.any match "ml-agents/**" OR
31-
pull_request.changes.any match "ml-agents-envs/**" OR
27+
NOT pull_request.draft AND
28+
(pull_request.changes.any match "com.unity.ml-agents/**" OR
29+
pull_request.changes.any match "Project/**" OR
30+
pull_request.changes.any match "ml-agents/**" OR
31+
pull_request.changes.any match "ml-agents-envs/**" OR
3232
pull_request.changes.any match ".yamato/python-ll-api-test.yml") AND
3333
NOT pull_request.changes.all match "**/*.md"
3434
{% endfor %}

.yamato/standalone-build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_mac_standalone_{{ editor.version }}:
1212
variables:
1313
UNITY_VERSION: {{ editor.version }}
1414
commands:
15-
- pip install pyyaml
15+
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1616
- python -u -m ml-agents.tests.yamato.standalone_build_tests
1717
- python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Basic/Scenes/Basic.unity
1818
- python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Bouncer/Scenes/Bouncer.unity

.yamato/training-int-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_mac_training_int_{{ editor.version }}:
1212
variables:
1313
UNITY_VERSION: {{ editor.version }}
1414
commands:
15-
- pip install pyyaml
15+
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1616
- python -u -m ml-agents.tests.yamato.training_int_tests
1717
# Backwards-compatibility tests.
1818
# If we make a breaking change to the communication protocol, these will need

Project/Assets/ML-Agents/Examples/Crawler/Prefabs/Crawler.prefab

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,6 +2742,7 @@ GameObject:
27422742
- component: {fileID: 4845971001715176662}
27432743
- component: {fileID: 4845971001715176663}
27442744
- component: {fileID: 4845971001715176660}
2745+
- component: {fileID: 4622120667686875944}
27452746
m_Layer: 0
27462747
m_Name: Crawler
27472748
m_TagString: Untagged
@@ -2779,7 +2780,7 @@ MonoBehaviour:
27792780
m_Name:
27802781
m_EditorClassIdentifier:
27812782
m_BrainParameters:
2782-
VectorObservationSize: 138
2783+
VectorObservationSize: 21
27832784
NumStackedVectorObservations: 1
27842785
VectorActionSize: 14000000
27852786
VectorActionDescriptions: []
@@ -2872,6 +2873,30 @@ MonoBehaviour:
28722873
m_Name:
28732874
m_EditorClassIdentifier:
28742875
debugCommandLineOverride:
2876+
--- !u!114 &4622120667686875944
2877+
MonoBehaviour:
2878+
m_ObjectHideFlags: 0
2879+
m_CorrespondingSourceObject: {fileID: 0}
2880+
m_PrefabInstance: {fileID: 0}
2881+
m_PrefabAsset: {fileID: 0}
2882+
m_GameObject: {fileID: 4845971001715176661}
2883+
m_Enabled: 1
2884+
m_EditorHideFlags: 0
2885+
m_Script: {fileID: 11500000, guid: df0f8be9a37d6486498061e2cbc4cd94, type: 3}
2886+
m_Name:
2887+
m_EditorClassIdentifier:
2888+
RootBody: {fileID: 4845971001588102145}
2889+
VirtualRoot: {fileID: 2270141184585723037}
2890+
Settings:
2891+
UseModelSpaceTranslations: 1
2892+
UseModelSpaceRotations: 1
2893+
UseLocalSpaceTranslations: 0
2894+
UseLocalSpaceRotations: 1
2895+
UseModelSpaceLinearVelocity: 1
2896+
UseLocalSpaceLinearVelocity: 0
2897+
UseJointPositionsAndAngles: 0
2898+
UseJointForces: 0
2899+
sensorName:
28752900
--- !u!1 &4845971001730692034
28762901
GameObject:
28772902
m_ObjectHideFlags: 0
@@ -3018,6 +3043,12 @@ PrefabInstance:
30183043
objectReference: {fileID: 0}
30193044
m_RemovedComponents: []
30203045
m_SourcePrefab: {fileID: 100100000, guid: 72f745913c5a34df5aaadd5c1f0024cb, type: 3}
3046+
--- !u!1 &2270141184585723037 stripped
3047+
GameObject:
3048+
m_CorrespondingSourceObject: {fileID: 2591864627249999519, guid: 72f745913c5a34df5aaadd5c1f0024cb,
3049+
type: 3}
3050+
m_PrefabInstance: {fileID: 4357529801223143938}
3051+
m_PrefabAsset: {fileID: 0}
30213052
--- !u!4 &2270141184585723026 stripped
30223053
Transform:
30233054
m_CorrespondingSourceObject: {fileID: 2591864627249999504, guid: 72f745913c5a34df5aaadd5c1f0024cb,
@@ -3030,7 +3061,7 @@ MonoBehaviour:
30303061
type: 3}
30313062
m_PrefabInstance: {fileID: 4357529801223143938}
30323063
m_PrefabAsset: {fileID: 0}
3033-
m_GameObject: {fileID: 0}
3064+
m_GameObject: {fileID: 2270141184585723037}
30343065
m_Enabled: 1
30353066
m_EditorHideFlags: 0
30363067
m_Script: {fileID: 11500000, guid: 771e78c5e980e440e8cd19716b55075f, type: 3}

Project/Assets/ML-Agents/Examples/Crawler/Prefabs/FixedPlatform.prefab

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,11 @@ PrefabInstance:
392392
propertyPath: targetToLookAt
393393
value:
394394
objectReference: {fileID: 2673081981996998229}
395+
- target: {fileID: 4622120667686875944, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
396+
type: 3}
397+
propertyPath: Settings.UseLocalSpaceLinearVelocity
398+
value: 1
399+
objectReference: {fileID: 0}
395400
- target: {fileID: 4845971000000621469, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
396401
type: 3}
397402
propertyPath: m_ConnectedAnchor.x

0 commit comments

Comments
 (0)