GitHub
4 年前
当前提交
a2f9a513
共有 121 个文件被更改,包括 11495 次插入 和 0 次删除
-
70ML-Agents-Input-Example/.gitignore
-
33ML-Agents-Input-Example/Assets/InputSystem.inputsettings.asset
-
8ML-Agents-Input-Example/Assets/InputSystem.inputsettings.asset.meta
-
8ML-Agents-Input-Example/Assets/ML-Agents.meta
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples.meta
-
10ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock.meta
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Meshes.meta
-
1001ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Meshes/PushBlockCourt.fbx
-
120ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Meshes/PushBlockCourt.fbx.meta
-
10ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Prefabs.meta
-
1001ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Prefabs/PushBlockArea.prefab
-
10ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Prefabs/PushBlockArea.prefab.meta
-
179ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/PushBlockActions.inputactions
-
14ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/PushBlockActions.inputactions.meta
-
10ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scenes.meta
-
1001ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scenes/PushBlock.unity
-
9ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scenes/PushBlock.unity.meta
-
10ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts.meta
-
26ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/GoalDetect.cs
-
13ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/GoalDetect.cs.meta
-
192ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs
-
12ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentBasic.cs.meta
-
316ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockActions.cs
-
11ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockActions.cs.meta
-
112ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockPlayerController.cs
-
11ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockPlayerController.cs.meta
-
39ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockSettings.cs
-
11ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockSettings.cs.meta
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/TFModels.meta
-
1001ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/TFModels/PushBlock.onnx
-
14ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/TFModels/PushBlock.onnx.meta
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets.meta
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials.meta
-
80ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/AgentBlue.mat
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/AgentBlue.mat.meta
-
76ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/Green.mat
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/Green.mat.meta
-
90ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/GridMat.mat
-
9ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/GridMat.mat.meta
-
90ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/GridMatFloor.mat
-
9ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/GridMatFloor.mat.meta
-
162ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/GridPatternShader.shader
-
9ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/GridPatternShader.shader.meta
-
76ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/Headband.mat
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/Headband.mat.meta
-
76ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/LightGreen.mat
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/LightGreen.mat.meta
-
76ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/LightRed.mat
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/LightRed.mat.meta
-
76ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/Red.mat
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/Red.mat.meta
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/Textures.meta
-
10ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/Textures/UnityLogo.png
-
121ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/Textures/UnityLogo.png.meta
-
84ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/UIDefault.mat
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/UIDefault.mat.meta
-
76ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/White.mat
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Materials/White.mat.meta
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Meshes.meta
-
1001ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Meshes/AgentCube.fbx
-
96ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Meshes/AgentCube.fbx.meta
-
1001ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Meshes/LongNarrowPlatform.fbx
-
99ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Meshes/LongNarrowPlatform.fbx.meta
-
1001ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Meshes/LongPlatform.fbx
-
109ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Meshes/LongPlatform.fbx.meta
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Prefabs.meta
-
438ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Prefabs/AgentCube_Blue.prefab
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Prefabs/AgentCube_Blue.prefab.meta
-
175ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Prefabs/Canvas_Watermark.prefab
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Prefabs/Canvas_Watermark.prefab.meta
-
78ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Prefabs/Directional_Light.prefab
-
8ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Prefabs/Directional_Light.prefab.meta
-
10ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Scripts.meta
-
322ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Scripts/ModelOverrider.cs
-
3ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Scripts/ModelOverrider.cs.meta
-
69ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Scripts/ProjectSettingsOverrides.cs
-
3ML-Agents-Input-Example/Assets/ML-Agents/Examples/SharedAssets/Scripts/ProjectSettingsOverrides.cs.meta
-
59ML-Agents-Input-Example/Packages/manifest.json
-
467ML-Agents-Input-Example/Packages/packages-lock.json
-
19ML-Agents-Input-Example/ProjectSettings/AudioManager.asset
-
15ML-Agents-Input-Example/ProjectSettings/BurstAotSettings_StandaloneOSX.json
-
6ML-Agents-Input-Example/ProjectSettings/ClusterInputManager.asset
|
|||
/[Ll]ibrary/ |
|||
/Logs/ |
|||
/[Tt]emp/ |
|||
/[Oo]bj/ |
|||
/[Bb]uild/ |
|||
/[Bb]uilds/ |
|||
/Assets/AssetStoreTools* |
|||
/Assets/Plugins* |
|||
/Assets/Demonstrations* |
|||
/Assets/ML-Agents/Timers* |
|||
/*_timers.json |
|||
|
|||
# Environemnt logfile |
|||
*Project.log |
|||
|
|||
# Visual Studio 2015 cache directory |
|||
/.vs/ |
|||
|
|||
# Autogenerated VS/MD/Consulo solution and project files |
|||
/ProjectExportedObj/ |
|||
/Project.consulo/ |
|||
*.csproj |
|||
*.unityproj |
|||
*.sln |
|||
*.suo |
|||
*.tmp |
|||
*.user |
|||
*.userprefs |
|||
*.pidb |
|||
*.booproj |
|||
*.svd |
|||
*.pdb |
|||
|
|||
# Unity3D generated meta files |
|||
*.pidb.meta |
|||
|
|||
# Unity3D Generated File On Crash Reports |
|||
/sysinfo.txt |
|||
|
|||
# Builds |
|||
*.apk |
|||
*.unitypackage |
|||
*.app |
|||
*.exe |
|||
*.x86_64 |
|||
*.x86 |
|||
|
|||
# Plugins |
|||
/Assets/VideoRecorder* |
|||
|
|||
# Mac hidden files |
|||
*.DS_Store |
|||
*/.ipynb_checkpoints |
|||
*/.idea |
|||
*.pyc |
|||
*.idea/misc.xml |
|||
*.idea/modules.xml |
|||
*.idea/ |
|||
*.iml |
|||
*.cache |
|||
*/build/ |
|||
*/dist/ |
|||
*.egg-info* |
|||
*.eggs* |
|||
*.gitignore.swp |
|||
|
|||
# VSCode hidden files |
|||
*.vscode/ |
|||
|
|||
.DS_Store |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: c46f07b5ed07e4e92aa78254188d3d10, type: 3} |
|||
m_Name: InputSystem.inputsettings |
|||
m_EditorClassIdentifier: |
|||
m_SupportedDevices: |
|||
- Keyboard |
|||
- Gamepad |
|||
m_UpdateMode: 2 |
|||
m_CompensateForScreenOrientation: 0 |
|||
m_FilterNoiseOnCurrent: 0 |
|||
m_DefaultDeadzoneMin: 0.125 |
|||
m_DefaultDeadzoneMax: 0.925 |
|||
m_DefaultButtonPressPoint: 0.5 |
|||
m_ButtonReleaseThreshold: 0.75 |
|||
m_DefaultTapTime: 0.2 |
|||
m_DefaultSlowTapTime: 0.5 |
|||
m_DefaultHoldTime: 0.4 |
|||
m_TapRadius: 5 |
|||
m_MultiTapDelayTime: 0.75 |
|||
m_iOSSettings: |
|||
m_MotionUsage: |
|||
m_Enabled: 0 |
|||
m_Description: |
|
|||
fileFormatVersion: 2 |
|||
guid: 778a63fac82734ee1b70a0b7c3e975c0 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 0 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 11630fa83cc8b4194b94352e3e6cdb9d |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 6584f096f53dc43eeb32803b91f36c5c |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 4197ece8ca6d74a00adc6bafbabda158 |
|||
folderAsset: yes |
|||
timeCreated: 1506303336 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: e806d68316eff0e46a3fda372ae42c44 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
1001
ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Meshes/PushBlockCourt.fbx
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
fileFormatVersion: 2 |
|||
guid: c639386c12f5f7841892163a199dfacc |
|||
ModelImporter: |
|||
serializedVersion: 22 |
|||
fileIDToRecycleName: |
|||
100000: GoalArea |
|||
100002: Ground |
|||
100004: //RootNode |
|||
100006: WallsOuter |
|||
400000: GoalArea |
|||
400002: Ground |
|||
400004: //RootNode |
|||
400006: WallsOuter |
|||
2100000: rep_WhiteWalls |
|||
2100002: rep_Floor |
|||
2100004: rep_Checkers |
|||
2300000: GoalArea |
|||
2300002: Ground |
|||
2300004: WallsOuter |
|||
3300000: GoalArea |
|||
3300002: Ground |
|||
3300004: WallsOuter |
|||
4300000: WallsOuter |
|||
4300002: Ground |
|||
4300004: GoalArea |
|||
externalObjects: |
|||
- first: |
|||
type: UnityEngine:Material |
|||
assembly: UnityEngine.CoreModule |
|||
name: rep_Checkers |
|||
second: {fileID: 2100000, guid: 36c7baa347d68f347a9aa9698aa1bcdd, type: 2} |
|||
- first: |
|||
type: UnityEngine:Material |
|||
assembly: UnityEngine.CoreModule |
|||
name: rep_Floor |
|||
second: {fileID: 2100000, guid: bc723809e6ff3174fad3e774cae1aed0, type: 2} |
|||
- first: |
|||
type: UnityEngine:Material |
|||
assembly: UnityEngine.CoreModule |
|||
name: rep_WhiteWalls |
|||
second: {fileID: 2100000, guid: 6a39c0407dd85684384bf0277294e9b6, type: 2} |
|||
materials: |
|||
importMaterials: 1 |
|||
materialName: 0 |
|||
materialSearch: 1 |
|||
materialLocation: 1 |
|||
animations: |
|||
legacyGenerateAnimations: 4 |
|||
bakeSimulation: 0 |
|||
resampleCurves: 1 |
|||
optimizeGameObjects: 0 |
|||
motionNodeName: |
|||
rigImportErrors: |
|||
rigImportWarnings: |
|||
animationImportErrors: |
|||
animationImportWarnings: |
|||
animationRetargetingWarnings: |
|||
animationDoRetargetingWarnings: 0 |
|||
importAnimatedCustomProperties: 0 |
|||
animationCompression: 1 |
|||
animationRotationError: 0.5 |
|||
animationPositionError: 0.5 |
|||
animationScaleError: 0.5 |
|||
animationWrapMode: 0 |
|||
extraExposedTransformPaths: [] |
|||
extraUserProperties: [] |
|||
clipAnimations: [] |
|||
isReadable: 1 |
|||
meshes: |
|||
lODScreenPercentages: [] |
|||
globalScale: 1 |
|||
meshCompression: 0 |
|||
addColliders: 0 |
|||
importVisibility: 1 |
|||
importBlendShapes: 1 |
|||
importCameras: 1 |
|||
importLights: 1 |
|||
swapUVChannels: 0 |
|||
generateSecondaryUV: 1 |
|||
useFileUnits: 1 |
|||
optimizeMeshForGPU: 1 |
|||
keepQuads: 0 |
|||
weldVertices: 1 |
|||
preserveHierarchy: 0 |
|||
indexFormat: 0 |
|||
secondaryUVAngleDistortion: 8 |
|||
secondaryUVAreaDistortion: 15.000001 |
|||
secondaryUVHardAngle: 88 |
|||
secondaryUVPackMargin: 4 |
|||
useFileScale: 1 |
|||
tangentSpace: |
|||
normalSmoothAngle: 60 |
|||
normalImportMode: 0 |
|||
tangentImportMode: 3 |
|||
normalCalculationMode: 4 |
|||
importAnimation: 1 |
|||
copyAvatar: 0 |
|||
humanDescription: |
|||
serializedVersion: 2 |
|||
human: [] |
|||
skeleton: [] |
|||
armTwist: 0.5 |
|||
foreArmTwist: 0.5 |
|||
upperLegTwist: 0.5 |
|||
legTwist: 0.5 |
|||
armStretch: 0.05 |
|||
legStretch: 0.05 |
|||
feetSpacing: 0 |
|||
rootMotionBoneName: |
|||
rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
hasTranslationDoF: 0 |
|||
hasExtraRoot: 0 |
|||
skeletonHasParents: 1 |
|||
lastHumanDescriptionAvatarSource: {instanceID: 0} |
|||
animationType: 0 |
|||
humanoidOversampling: 1 |
|||
additionalBone: 0 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 3d2b9d5547d934200a786212743850c4 |
|||
folderAsset: yes |
|||
timeCreated: 1514922259 |
|||
licenseType: Free |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
1001
ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Prefabs/PushBlockArea.prefab
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
fileFormatVersion: 2 |
|||
guid: 03bcc81e249714a22bb411dddcc5d15e |
|||
timeCreated: 1515023875 |
|||
licenseType: Free |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 100100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
{ |
|||
"name": "PushBlockActions", |
|||
"maps": [ |
|||
{ |
|||
"name": "Movement", |
|||
"id": "03a2e5d4-ae81-47f1-a575-0779fb7da538", |
|||
"actions": [ |
|||
{ |
|||
"name": "movement", |
|||
"type": "Value", |
|||
"id": "5f47cbc6-de46-4d33-93e2-2b1af4f5996d", |
|||
"expectedControlType": "Vector2", |
|||
"processors": "", |
|||
"interactions": "" |
|||
}, |
|||
{ |
|||
"name": "jump", |
|||
"type": "Button", |
|||
"id": "ca5eb833-5dfb-4b7c-880d-6118bd5d1378", |
|||
"expectedControlType": "Button", |
|||
"processors": "", |
|||
"interactions": "" |
|||
} |
|||
], |
|||
"bindings": [ |
|||
{ |
|||
"name": "gamepad_move", |
|||
"id": "477500ef-6d32-4b84-b9f8-158f18bcb906", |
|||
"path": "2DVector", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "", |
|||
"action": "movement", |
|||
"isComposite": true, |
|||
"isPartOfComposite": false |
|||
}, |
|||
{ |
|||
"name": "up", |
|||
"id": "6d2537b8-2266-4a50-8575-fb0fe310daa5", |
|||
"path": "<Gamepad>/dpad/up", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "movement", |
|||
"isComposite": false, |
|||
"isPartOfComposite": true |
|||
}, |
|||
{ |
|||
"name": "down", |
|||
"id": "50584c83-beb6-4e90-a453-a635c03a761e", |
|||
"path": "<Gamepad>/dpad/down", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "movement", |
|||
"isComposite": false, |
|||
"isPartOfComposite": true |
|||
}, |
|||
{ |
|||
"name": "left", |
|||
"id": "44408b8f-27e7-4c6d-b078-7536ba020d1a", |
|||
"path": "<Gamepad>/dpad/left", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "movement", |
|||
"isComposite": false, |
|||
"isPartOfComposite": true |
|||
}, |
|||
{ |
|||
"name": "right", |
|||
"id": "f5681423-d3e3-41a5-b85e-0a7642c774aa", |
|||
"path": "<Gamepad>/dpad/right", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "movement", |
|||
"isComposite": false, |
|||
"isPartOfComposite": true |
|||
}, |
|||
{ |
|||
"name": "keyboard_move", |
|||
"id": "6bcba4bf-5ce0-4005-9e6a-0de2487211b0", |
|||
"path": "2DVector", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "", |
|||
"action": "movement", |
|||
"isComposite": true, |
|||
"isPartOfComposite": false |
|||
}, |
|||
{ |
|||
"name": "up", |
|||
"id": "63da699e-b354-4e63-b0f8-26fb92abea41", |
|||
"path": "<Keyboard>/w", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "movement", |
|||
"isComposite": false, |
|||
"isPartOfComposite": true |
|||
}, |
|||
{ |
|||
"name": "down", |
|||
"id": "39409748-9002-4aff-9a09-cdc05b9708ad", |
|||
"path": "<Keyboard>/s", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "movement", |
|||
"isComposite": false, |
|||
"isPartOfComposite": true |
|||
}, |
|||
{ |
|||
"name": "left", |
|||
"id": "0afe45fc-dc45-4310-9c73-7dc3c503addf", |
|||
"path": "<Keyboard>/a", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "movement", |
|||
"isComposite": false, |
|||
"isPartOfComposite": true |
|||
}, |
|||
{ |
|||
"name": "right", |
|||
"id": "69fe0335-9e0c-495d-a90d-4b0fcbfd2b34", |
|||
"path": "<Keyboard>/d", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "movement", |
|||
"isComposite": false, |
|||
"isPartOfComposite": true |
|||
}, |
|||
{ |
|||
"name": "", |
|||
"id": "ab696218-63cd-4eb8-9fe1-48a68e32e92f", |
|||
"path": "<Keyboard>/space", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "jump", |
|||
"isComposite": false, |
|||
"isPartOfComposite": false |
|||
}, |
|||
{ |
|||
"name": "", |
|||
"id": "7adcb138-5175-4cc4-addc-d2b02cb5f0de", |
|||
"path": "<Gamepad>/buttonSouth", |
|||
"interactions": "", |
|||
"processors": "", |
|||
"groups": "Keyboard", |
|||
"action": "jump", |
|||
"isComposite": false, |
|||
"isPartOfComposite": false |
|||
} |
|||
] |
|||
} |
|||
], |
|||
"controlSchemes": [ |
|||
{ |
|||
"name": "Keyboard", |
|||
"bindingGroup": "Keyboard", |
|||
"devices": [ |
|||
{ |
|||
"devicePath": "<Keyboard>", |
|||
"isOptional": true, |
|||
"isOR": false |
|||
}, |
|||
{ |
|||
"devicePath": "<Gamepad>", |
|||
"isOptional": true, |
|||
"isOR": false |
|||
} |
|||
] |
|||
} |
|||
] |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: fcfa5a3b2c4254b2baad1ae474fc4b93 |
|||
ScriptedImporter: |
|||
internalIDToNameTable: [] |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|||
script: {fileID: 11500000, guid: 8404be70184654265930450def6a9037, type: 3} |
|||
generateWrapperCode: 1 |
|||
wrapperCodePath: Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockActions.cs |
|||
wrapperClassName: |
|||
wrapperCodeNamespace: |
|
|||
fileFormatVersion: 2 |
|||
guid: 9da26ec059778432080bf5fa24374960 |
|||
folderAsset: yes |
|||
timeCreated: 1516234013 |
|||
licenseType: Free |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
1001
ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/Scenes/PushBlock.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
fileFormatVersion: 2 |
|||
guid: ae8cc75939e3e4d07a79c8c6a08b54f4 |
|||
timeCreated: 1506808980 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: ca44e3d53154a4ff0a1279be30b23bdf |
|||
folderAsset: yes |
|||
timeCreated: 1514922284 |
|||
licenseType: Free |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
//Detect when the orange block has touched the goal.
|
|||
//Detect when the orange block has touched an obstacle.
|
|||
//Put this script onto the orange block. There's nothing you need to set in the editor.
|
|||
//Make sure the goal is tagged with "goal" in the editor.
|
|||
|
|||
using UnityEngine; |
|||
|
|||
public class GoalDetect : MonoBehaviour |
|||
{ |
|||
/// <summary>
|
|||
/// The associated agent.
|
|||
/// This will be set by the agent script on Initialization.
|
|||
/// Don't need to manually set.
|
|||
/// </summary>
|
|||
[HideInInspector] |
|||
public PushAgentBasic agent; //
|
|||
|
|||
void OnCollisionEnter(Collision col) |
|||
{ |
|||
// Touched goal.
|
|||
if (col.gameObject.CompareTag("goal")) |
|||
{ |
|||
agent.ScoredAGoal(); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 7d079d09ceed84ff49cf6841c66cf7ec |
|||
timeCreated: 1513645763 |
|||
licenseType: Free |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
//Put this script on your blue cube.
|
|||
|
|||
using System; |
|||
using System.Collections; |
|||
using UnityEngine; |
|||
using Unity.MLAgents; |
|||
using Unity.MLAgents.Actuators; |
|||
using Random = UnityEngine.Random; |
|||
|
|||
public class PushAgentBasic : Agent |
|||
{ |
|||
/// <summary>
|
|||
/// The ground. The bounds are used to spawn the elements.
|
|||
/// </summary>
|
|||
public GameObject ground; |
|||
|
|||
public GameObject area; |
|||
|
|||
/// <summary>
|
|||
/// The area bounds.
|
|||
/// </summary>
|
|||
[HideInInspector] |
|||
public Bounds areaBounds; |
|||
|
|||
PushBlockSettings m_PushBlockSettings; |
|||
|
|||
/// <summary>
|
|||
/// The block to be pushed to the goal.
|
|||
/// </summary>
|
|||
public GameObject block; |
|||
|
|||
/// <summary>
|
|||
/// Detects when the block touches the goal.
|
|||
/// </summary>
|
|||
[HideInInspector] |
|||
public GoalDetect goalDetect; |
|||
|
|||
Rigidbody m_BlockRb; //cached on initialization
|
|||
Rigidbody m_AgentRb; //cached on initialization
|
|||
Material m_GroundMaterial; //cached on Awake()
|
|||
|
|||
/// <summary>
|
|||
/// We will be changing the ground material based on success/failue
|
|||
/// </summary>
|
|||
Renderer m_GroundRenderer; |
|||
|
|||
EnvironmentParameters m_ResetParams; |
|||
|
|||
void Awake() |
|||
{ |
|||
m_PushBlockSettings = FindObjectOfType<PushBlockSettings>(); |
|||
|
|||
goalDetect = block.GetComponent<GoalDetect>(); |
|||
goalDetect.agent = this; |
|||
|
|||
// Cache the agent rigidbody
|
|||
m_AgentRb = GetComponent<Rigidbody>(); |
|||
// Cache the block rigidbody
|
|||
m_BlockRb = block.GetComponent<Rigidbody>(); |
|||
// Get the ground's bounds
|
|||
areaBounds = ground.GetComponent<Collider>().bounds; |
|||
// Get the ground renderer so we can change the material when a goal is scored
|
|||
m_GroundRenderer = ground.GetComponent<Renderer>(); |
|||
// Starting material
|
|||
m_GroundMaterial = m_GroundRenderer.material; |
|||
} |
|||
|
|||
public override void Initialize() |
|||
{ |
|||
m_ResetParams = Academy.Instance.EnvironmentParameters; |
|||
|
|||
SetResetParameters(); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Use the ground's bounds to pick a random spawn position.
|
|||
/// </summary>
|
|||
public Vector3 GetRandomSpawnPos() |
|||
{ |
|||
var foundNewSpawnLocation = false; |
|||
var randomSpawnPos = Vector3.zero; |
|||
var tries = 0; |
|||
while (foundNewSpawnLocation == false && tries < 50) |
|||
{ |
|||
var randomPosX = Random.Range(-areaBounds.extents.x * m_PushBlockSettings.spawnAreaMarginMultiplier, |
|||
areaBounds.extents.x * m_PushBlockSettings.spawnAreaMarginMultiplier); |
|||
|
|||
var randomPosZ = Random.Range(-areaBounds.extents.z * m_PushBlockSettings.spawnAreaMarginMultiplier, |
|||
areaBounds.extents.z * m_PushBlockSettings.spawnAreaMarginMultiplier); |
|||
randomSpawnPos = ground.transform.position + new Vector3(randomPosX, 1f, randomPosZ); |
|||
if (Physics.CheckBox(randomSpawnPos, new Vector3(2.5f, 0.01f, 2.5f)) == false) |
|||
{ |
|||
foundNewSpawnLocation = true; |
|||
} |
|||
tries++; |
|||
} |
|||
return randomSpawnPos; |
|||
} |
|||
|
|||
|
|||
/// <summary>
|
|||
/// Called when the agent moves the block into the goal.
|
|||
/// </summary>
|
|||
public void ScoredAGoal() |
|||
{ |
|||
// We use a reward of 5.
|
|||
AddReward(5f); |
|||
|
|||
// By marking an agent as done AgentReset() will be called automatically.
|
|||
EndEpisode(); |
|||
|
|||
// Swap ground material for a bit to indicate we scored.
|
|||
StartCoroutine(GoalScoredSwapGroundMaterial(m_PushBlockSettings.goalScoredMaterial, 0.5f)); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Swap ground material, wait time seconds, then swap back to the regular material.
|
|||
/// </summary>
|
|||
IEnumerator GoalScoredSwapGroundMaterial(Material mat, float time) |
|||
{ |
|||
m_GroundRenderer.material = mat; |
|||
yield return new WaitForSeconds(time); // Wait for 2 sec
|
|||
m_GroundRenderer.material = m_GroundMaterial; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Called every step of the engine. Here the agent takes an action.
|
|||
/// </summary>
|
|||
public override void OnActionReceived(ActionBuffers actionBuffers) |
|||
{ |
|||
// Penalty given each step to encourage agent to finish task quickly.
|
|||
AddReward(-1f / MaxStep); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Resets the block position and velocities.
|
|||
/// </summary>
|
|||
void ResetBlock() |
|||
{ |
|||
// Get a random position for the block.
|
|||
block.transform.position = GetRandomSpawnPos(); |
|||
|
|||
// Reset block velocity back to zero.
|
|||
m_BlockRb.velocity = Vector3.zero; |
|||
|
|||
// Reset block angularVelocity back to zero.
|
|||
m_BlockRb.angularVelocity = Vector3.zero; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// In the editor, if "Reset On Done" is checked then AgentReset() will be
|
|||
/// called automatically anytime we mark done = true in an agent script.
|
|||
/// </summary>
|
|||
public override void OnEpisodeBegin() |
|||
{ |
|||
var rotation = Random.Range(0, 4); |
|||
var rotationAngle = rotation * 90f; |
|||
area.transform.Rotate(new Vector3(0f, rotationAngle, 0f)); |
|||
|
|||
ResetBlock(); |
|||
transform.position = GetRandomSpawnPos(); |
|||
m_AgentRb.velocity = Vector3.zero; |
|||
m_AgentRb.angularVelocity = Vector3.zero; |
|||
|
|||
SetResetParameters(); |
|||
} |
|||
|
|||
public void SetGroundMaterialFriction() |
|||
{ |
|||
var groundCollider = ground.GetComponent<Collider>(); |
|||
|
|||
groundCollider.material.dynamicFriction = m_ResetParams.GetWithDefault("dynamic_friction", 0); |
|||
groundCollider.material.staticFriction = m_ResetParams.GetWithDefault("static_friction", 0); |
|||
} |
|||
|
|||
public void SetBlockProperties() |
|||
{ |
|||
var scale = m_ResetParams.GetWithDefault("block_scale", 2); |
|||
//Set the scale of the block
|
|||
m_BlockRb.transform.localScale = new Vector3(scale, 0.75f, scale); |
|||
|
|||
// Set the drag of the block
|
|||
m_BlockRb.drag = m_ResetParams.GetWithDefault("block_drag", 0.5f); |
|||
} |
|||
|
|||
void SetResetParameters() |
|||
{ |
|||
SetGroundMaterialFriction(); |
|||
SetBlockProperties(); |
|||
} |
|||
|
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: dea8c4f2604b947e6b7b97750dde87ca |
|||
timeCreated: 1506829537 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
|||
// version 1.1.0
|
|||
// from Assets/ML-Agents/Examples/PushBlock/PushBlockActions.inputactions
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine.InputSystem; |
|||
using UnityEngine.InputSystem.Utilities; |
|||
|
|||
public partial class @PushBlockActions : IInputActionCollection2, IDisposable |
|||
{ |
|||
public InputActionAsset asset { get; } |
|||
public @PushBlockActions() |
|||
{ |
|||
asset = InputActionAsset.FromJson(@"{
|
|||
""name"": ""PushBlockActions"", |
|||
""maps"": [ |
|||
{ |
|||
""name"": ""Movement"", |
|||
""id"": ""03a2e5d4-ae81-47f1-a575-0779fb7da538"", |
|||
""actions"": [ |
|||
{ |
|||
""name"": ""movement"", |
|||
""type"": ""Value"", |
|||
""id"": ""5f47cbc6-de46-4d33-93e2-2b1af4f5996d"", |
|||
""expectedControlType"": ""Vector2"", |
|||
""processors"": """", |
|||
""interactions"": """" |
|||
}, |
|||
{ |
|||
""name"": ""jump"", |
|||
""type"": ""Button"", |
|||
""id"": ""ca5eb833-5dfb-4b7c-880d-6118bd5d1378"", |
|||
""expectedControlType"": ""Button"", |
|||
""processors"": """", |
|||
""interactions"": """" |
|||
} |
|||
], |
|||
""bindings"": [ |
|||
{ |
|||
""name"": ""gamepad_move"", |
|||
""id"": ""477500ef-6d32-4b84-b9f8-158f18bcb906"", |
|||
""path"": ""2DVector"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": """", |
|||
""action"": ""movement"", |
|||
""isComposite"": true, |
|||
""isPartOfComposite"": false |
|||
}, |
|||
{ |
|||
""name"": ""up"", |
|||
""id"": ""6d2537b8-2266-4a50-8575-fb0fe310daa5"", |
|||
""path"": ""<Gamepad>/dpad/up"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""movement"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": true |
|||
}, |
|||
{ |
|||
""name"": ""down"", |
|||
""id"": ""50584c83-beb6-4e90-a453-a635c03a761e"", |
|||
""path"": ""<Gamepad>/dpad/down"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""movement"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": true |
|||
}, |
|||
{ |
|||
""name"": ""left"", |
|||
""id"": ""44408b8f-27e7-4c6d-b078-7536ba020d1a"", |
|||
""path"": ""<Gamepad>/dpad/left"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""movement"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": true |
|||
}, |
|||
{ |
|||
""name"": ""right"", |
|||
""id"": ""f5681423-d3e3-41a5-b85e-0a7642c774aa"", |
|||
""path"": ""<Gamepad>/dpad/right"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""movement"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": true |
|||
}, |
|||
{ |
|||
""name"": ""keyboard_move"", |
|||
""id"": ""6bcba4bf-5ce0-4005-9e6a-0de2487211b0"", |
|||
""path"": ""2DVector"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": """", |
|||
""action"": ""movement"", |
|||
""isComposite"": true, |
|||
""isPartOfComposite"": false |
|||
}, |
|||
{ |
|||
""name"": ""up"", |
|||
""id"": ""63da699e-b354-4e63-b0f8-26fb92abea41"", |
|||
""path"": ""<Keyboard>/w"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""movement"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": true |
|||
}, |
|||
{ |
|||
""name"": ""down"", |
|||
""id"": ""39409748-9002-4aff-9a09-cdc05b9708ad"", |
|||
""path"": ""<Keyboard>/s"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""movement"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": true |
|||
}, |
|||
{ |
|||
""name"": ""left"", |
|||
""id"": ""0afe45fc-dc45-4310-9c73-7dc3c503addf"", |
|||
""path"": ""<Keyboard>/a"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""movement"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": true |
|||
}, |
|||
{ |
|||
""name"": ""right"", |
|||
""id"": ""69fe0335-9e0c-495d-a90d-4b0fcbfd2b34"", |
|||
""path"": ""<Keyboard>/d"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""movement"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": true |
|||
}, |
|||
{ |
|||
""name"": """", |
|||
""id"": ""ab696218-63cd-4eb8-9fe1-48a68e32e92f"", |
|||
""path"": ""<Keyboard>/space"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""jump"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": false |
|||
}, |
|||
{ |
|||
""name"": """", |
|||
""id"": ""7adcb138-5175-4cc4-addc-d2b02cb5f0de"", |
|||
""path"": ""<Gamepad>/buttonSouth"", |
|||
""interactions"": """", |
|||
""processors"": """", |
|||
""groups"": ""Keyboard"", |
|||
""action"": ""jump"", |
|||
""isComposite"": false, |
|||
""isPartOfComposite"": false |
|||
} |
|||
] |
|||
} |
|||
], |
|||
""controlSchemes"": [ |
|||
{ |
|||
""name"": ""Keyboard"", |
|||
""bindingGroup"": ""Keyboard"", |
|||
""devices"": [ |
|||
{ |
|||
""devicePath"": ""<Keyboard>"", |
|||
""isOptional"": true, |
|||
""isOR"": false |
|||
}, |
|||
{ |
|||
""devicePath"": ""<Gamepad>"", |
|||
""isOptional"": true, |
|||
""isOR"": false |
|||
} |
|||
] |
|||
} |
|||
] |
|||
}");
|
|||
// Movement
|
|||
m_Movement = asset.FindActionMap("Movement", throwIfNotFound: true); |
|||
m_Movement_movement = m_Movement.FindAction("movement", throwIfNotFound: true); |
|||
m_Movement_jump = m_Movement.FindAction("jump", throwIfNotFound: true); |
|||
} |
|||
|
|||
public void Dispose() |
|||
{ |
|||
UnityEngine.Object.Destroy(asset); |
|||
} |
|||
|
|||
public InputBinding? bindingMask |
|||
{ |
|||
get => asset.bindingMask; |
|||
set => asset.bindingMask = value; |
|||
} |
|||
|
|||
public ReadOnlyArray<InputDevice>? devices |
|||
{ |
|||
get => asset.devices; |
|||
set => asset.devices = value; |
|||
} |
|||
|
|||
public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes; |
|||
|
|||
public bool Contains(InputAction action) |
|||
{ |
|||
return asset.Contains(action); |
|||
} |
|||
|
|||
public IEnumerator<InputAction> GetEnumerator() |
|||
{ |
|||
return asset.GetEnumerator(); |
|||
} |
|||
|
|||
IEnumerator IEnumerable.GetEnumerator() |
|||
{ |
|||
return GetEnumerator(); |
|||
} |
|||
|
|||
public void Enable() |
|||
{ |
|||
asset.Enable(); |
|||
} |
|||
|
|||
public void Disable() |
|||
{ |
|||
asset.Disable(); |
|||
} |
|||
public IEnumerable<InputBinding> bindings => asset.bindings; |
|||
|
|||
public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) |
|||
{ |
|||
return asset.FindAction(actionNameOrId, throwIfNotFound); |
|||
} |
|||
public int FindBinding(InputBinding bindingMask, out InputAction action) |
|||
{ |
|||
return asset.FindBinding(bindingMask, out action); |
|||
} |
|||
|
|||
// Movement
|
|||
private readonly InputActionMap m_Movement; |
|||
private IMovementActions m_MovementActionsCallbackInterface; |
|||
private readonly InputAction m_Movement_movement; |
|||
private readonly InputAction m_Movement_jump; |
|||
public struct MovementActions |
|||
{ |
|||
private @PushBlockActions m_Wrapper; |
|||
public MovementActions(@PushBlockActions wrapper) { m_Wrapper = wrapper; } |
|||
public InputAction @movement => m_Wrapper.m_Movement_movement; |
|||
public InputAction @jump => m_Wrapper.m_Movement_jump; |
|||
public InputActionMap Get() { return m_Wrapper.m_Movement; } |
|||
public void Enable() { Get().Enable(); } |
|||
public void Disable() { Get().Disable(); } |
|||
public bool enabled => Get().enabled; |
|||
public static implicit operator InputActionMap(MovementActions set) { return set.Get(); } |
|||
public void SetCallbacks(IMovementActions instance) |
|||
{ |
|||
if (m_Wrapper.m_MovementActionsCallbackInterface != null) |
|||
{ |
|||
@movement.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovement; |
|||
@movement.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovement; |
|||
@movement.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnMovement; |
|||
@jump.started -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump; |
|||
@jump.performed -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump; |
|||
@jump.canceled -= m_Wrapper.m_MovementActionsCallbackInterface.OnJump; |
|||
} |
|||
m_Wrapper.m_MovementActionsCallbackInterface = instance; |
|||
if (instance != null) |
|||
{ |
|||
@movement.started += instance.OnMovement; |
|||
@movement.performed += instance.OnMovement; |
|||
@movement.canceled += instance.OnMovement; |
|||
@jump.started += instance.OnJump; |
|||
@jump.performed += instance.OnJump; |
|||
@jump.canceled += instance.OnJump; |
|||
} |
|||
} |
|||
} |
|||
public MovementActions @Movement => new MovementActions(this); |
|||
private int m_KeyboardSchemeIndex = -1; |
|||
public InputControlScheme KeyboardScheme |
|||
{ |
|||
get |
|||
{ |
|||
if (m_KeyboardSchemeIndex == -1) m_KeyboardSchemeIndex = asset.FindControlSchemeIndex("Keyboard"); |
|||
return asset.controlSchemes[m_KeyboardSchemeIndex]; |
|||
} |
|||
} |
|||
public interface IMovementActions |
|||
{ |
|||
void OnMovement(InputAction.CallbackContext context); |
|||
void OnJump(InputAction.CallbackContext context); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: d6f125a5c899346259be7aac2df8daa0 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using Unity.MLAgents.Extensions.Input; |
|||
using UnityEngine; |
|||
using UnityEngine.InputSystem; |
|||
|
|||
/// <summary>
|
|||
/// This class handles the input for the PushBlock Cube character in the PushBlock scene.
|
|||
/// Note that the only ML-Agents code here is the implementation of the <see cref="IInputActionAssetProvider"/>.
|
|||
/// The <see cref="InputActuatorComponent"/> looks for a component that implements that interface in order to
|
|||
/// rebind actions to virtual controllers when training agents or running inference. This means that you can
|
|||
/// keep your input handling code separate from ML-Agents, and have your agent's action space defined by the
|
|||
/// actions defined in your project's <see cref="GetInputActionAsset"/>.
|
|||
///
|
|||
/// If you don't implement <see cref="IInputActionAssetProvider"/> the <see cref="InputActuatorComponent"/> will
|
|||
/// look for a <see cref="PlayerInput"/> component on the GameObject it live on. It will rebind the actions of that
|
|||
/// instance of the asset.
|
|||
///
|
|||
/// It is important to note that if you have multiple components on the same GameObject handling input, you will
|
|||
/// need to share the instance of the generated C# <see cref="IInputActionCollection2"/> (named <see cref="m_PushBlockActions"/>
|
|||
/// here) in order to ensure that all of your actions are bound correctly for ml-agents training and inference.
|
|||
/// </summary>
|
|||
public class PushBlockPlayerController : MonoBehaviour, IInputActionAssetProvider |
|||
{ |
|||
|
|||
PushBlockSettings m_PushBlockSettings; |
|||
public float JumpTime = 0.5f; |
|||
float m_JumpTimeRemaining; |
|||
Rigidbody m_PlayerRb; //cached on initialization
|
|||
PushBlockActions m_PushBlockActions; |
|||
float m_JumpCoolDownStart; |
|||
|
|||
void Awake() |
|||
{ |
|||
m_PushBlockSettings = FindObjectOfType<PushBlockSettings>(); |
|||
LazyInitializeActions(); |
|||
|
|||
// Cache the agent rigidbody
|
|||
m_PlayerRb = GetComponent<Rigidbody>(); |
|||
} |
|||
|
|||
void LazyInitializeActions() |
|||
{ |
|||
if (m_PushBlockActions != null) |
|||
{ |
|||
return; |
|||
} |
|||
m_PushBlockActions = new PushBlockActions(); |
|||
m_PushBlockActions.Enable(); |
|||
|
|||
// You can listen to C# events.
|
|||
m_PushBlockActions.Movement.jump.performed += JumpOnperformed; |
|||
} |
|||
|
|||
void JumpOnperformed(InputAction.CallbackContext callbackContext) |
|||
{ |
|||
InnerJump(gameObject.transform); |
|||
} |
|||
|
|||
void FixedUpdate() |
|||
{ |
|||
// Or you can poll the action itself like we do here.
|
|||
InnerMove(gameObject.transform, m_PushBlockActions.Movement.movement.ReadValue<Vector2>()); |
|||
if (m_JumpTimeRemaining < 0) |
|||
{ |
|||
m_PlayerRb.AddForce(-transform.up * (m_PushBlockSettings.agentJumpForce * 3), ForceMode.Acceleration); |
|||
} |
|||
m_JumpTimeRemaining -= Time.fixedDeltaTime; |
|||
} |
|||
|
|||
void InnerJump(Transform t) |
|||
{ |
|||
if (Time.realtimeSinceStartup - m_JumpCoolDownStart > m_PushBlockSettings.agentJumpCoolDown) |
|||
{ |
|||
m_JumpTimeRemaining = JumpTime; |
|||
m_PlayerRb.AddForce(t.up * m_PushBlockSettings.agentJumpForce, ForceMode.VelocityChange); |
|||
m_JumpCoolDownStart = Time.realtimeSinceStartup; |
|||
} |
|||
} |
|||
|
|||
void InnerMove(Transform t, Vector2 v) |
|||
{ |
|||
var forward = CreateForwardVector(v); |
|||
var up = CreateUpVector(v); |
|||
var dirToGo = t.forward * forward; |
|||
var rotateDir = t.up * up; |
|||
t.Rotate(rotateDir, Time.deltaTime * 200f); |
|||
m_PlayerRb.AddForce(dirToGo * m_PushBlockSettings.agentRunSpeed, |
|||
ForceMode.VelocityChange); |
|||
} |
|||
|
|||
static float CreateUpVector(Vector2 move) |
|||
{ |
|||
return Mathf.Abs(move.x) > Mathf.Abs(move.y) ? move.x : 0f; |
|||
} |
|||
|
|||
static float CreateForwardVector(Vector2 move) |
|||
{ |
|||
return Mathf.Abs(move.y) > Mathf.Abs(move.x) ? move.y : 0f; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// This is the implementation of the <see cref="IInputActionAssetProvider"/> for this class. We need
|
|||
/// both the <see cref="GetInputActionAsset"/> and the <see cref="IInputActionCollection2"/> if you are
|
|||
/// listening to C# events, Unity Events, or receiving Messages from the Input System Package as those callbacks
|
|||
/// are set up through the generated <see cref="IInputActionCollection2"/>.
|
|||
/// </summary>
|
|||
/// <returns></returns>
|
|||
public (InputActionAsset, IInputActionCollection2) GetInputActionAsset() |
|||
{ |
|||
LazyInitializeActions(); |
|||
return (m_PushBlockActions.asset, m_PushBlockActions); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: bb9a2d951ffa44f53ba04a31f2712f5f |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
|
|||
public class PushBlockSettings : MonoBehaviour |
|||
{ |
|||
/// <summary>
|
|||
/// The "walking speed" of the agents in the scene.
|
|||
/// </summary>
|
|||
public float agentRunSpeed; |
|||
|
|||
/// <summary>
|
|||
/// The agent rotation speed.
|
|||
/// Every agent will use this setting.
|
|||
/// </summary>
|
|||
public float agentRotationSpeed; |
|||
|
|||
public float agentJumpForce; |
|||
|
|||
public float agentJumpCoolDown; |
|||
|
|||
/// <summary>
|
|||
/// The spawn area margin multiplier.
|
|||
/// ex: .9 means 90% of spawn area will be used.
|
|||
/// .1 margin will be left (so players don't spawn off of the edge).
|
|||
/// The higher this value, the longer training time required.
|
|||
/// </summary>
|
|||
public float spawnAreaMarginMultiplier; |
|||
|
|||
/// <summary>
|
|||
/// When a goal is scored the ground will switch to this
|
|||
/// material for a few seconds.
|
|||
/// </summary>
|
|||
public Material goalScoredMaterial; |
|||
|
|||
/// <summary>
|
|||
/// When an agent fails, the ground will turn this material for a few seconds.
|
|||
/// </summary>
|
|||
public Material failMaterial; |
|||
|
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: e5ed63dbfa25542ecb8bc013adfba183 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 5855121f0ded74dad8e1dd15a8bcdca1 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
1001
ML-Agents-Input-Example/Assets/ML-Agents/Examples/PushBlock/TFModels/PushBlock.onnx
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
fileFormatVersion: 2 |
|||
guid: bee50ae7fd03e4e16a4ac45db4d96f6e |
|||
ScriptedImporter: |
|||
internalIDToNameTable: [] |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|||
script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} |
|||
optimizeModel: 1 |
|||
forceArbitraryBatchSize: 1 |
|||
treatErrorsAsWarnings: 0 |
|||
importMode: 1 |
|
|||
fileFormatVersion: 2 |
|||
guid: 0f83c851cdce246a0b97472ec6d35622 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 9b6abdaf6376c42e5acce313e3a7ed94 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!21 &2100000 |
|||
Material: |
|||
serializedVersion: 6 |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: AgentBlue |
|||
m_Shader: {fileID: 47, guid: 0000000000000000f000000000000000, type: 0} |
|||
m_ShaderKeywords: _GLOSSYREFLECTIONS_OFF _SPECULARHIGHLIGHTS_OFF |
|||
m_LightmapFlags: 4 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: -1 |
|||
stringTagMap: {} |
|||
disabledShaderPasses: [] |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _BumpMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailAlbedoMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailMask: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailNormalMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _EmissionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MainTex: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MetallicGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _OcclusionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _ParallaxMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _SpecGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _BumpScale: 1 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 0 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0.5 |
|||
- _GlossyReflections: 0 |
|||
- _Metallic: 0 |
|||
- _Mode: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _Parallax: 0.02 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SpecularHighlights: 0 |
|||
- _SrcBlend: 1 |
|||
- _UVSec: 0 |
|||
- _ZWrite: 1 |
|||
m_Colors: |
|||
- _Color: {r: 0.12941177, g: 0.5882353, b: 0.9529412, a: 1} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|
|||
fileFormatVersion: 2 |
|||
guid: c9fa44c2c3f8ce74ca39a3355ea42631 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!21 &2100000 |
|||
Material: |
|||
serializedVersion: 6 |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: Green |
|||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} |
|||
m_ShaderKeywords: _GLOSSYREFLECTIONS_OFF _SPECULARHIGHLIGHTS_OFF |
|||
m_LightmapFlags: 4 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: -1 |
|||
stringTagMap: {} |
|||
disabledShaderPasses: [] |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _BumpMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailAlbedoMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailMask: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailNormalMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _EmissionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MainTex: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MetallicGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _OcclusionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _ParallaxMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _BumpScale: 1 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 0 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0.5 |
|||
- _GlossyReflections: 0 |
|||
- _Metallic: 0 |
|||
- _Mode: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _Parallax: 0.02 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SpecularHighlights: 0 |
|||
- _SrcBlend: 1 |
|||
- _UVSec: 0 |
|||
- _ZWrite: 1 |
|||
m_Colors: |
|||
- _Color: {r: 0.40392157, g: 0.7372549, b: 0.41960785, a: 1} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|
|||
fileFormatVersion: 2 |
|||
guid: c67450f290f3e4897bc40276a619e78d |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 0 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!21 &2100000 |
|||
Material: |
|||
serializedVersion: 6 |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: GridMat |
|||
m_Shader: {fileID: 4800000, guid: bbecf177c38d84ff08d7c683c116affd, type: 3} |
|||
m_ShaderKeywords: |
|||
m_LightmapFlags: 4 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: -1 |
|||
stringTagMap: {} |
|||
disabledShaderPasses: [] |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _BumpMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailAlbedoMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailMask: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailNormalMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _EmissionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MainTex: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MetallicGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _OcclusionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _ParallaxMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _BumpScale: 1 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DrawU: 1 |
|||
- _DrawV: 1 |
|||
- _DstBlend: 0 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0 |
|||
- _GlossyReflections: 1 |
|||
- _GridSize: 3 |
|||
- _LineOffset: 0.5 |
|||
- _LineSize: 0.01 |
|||
- _Metallic: 0 |
|||
- _Mode: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _Offset: 0 |
|||
- _Parallax: 0.02 |
|||
- _RepeatCount: 5 |
|||
- _SelectCell: 0 |
|||
- _SelectedCellX: 0 |
|||
- _SelectedCellY: 0 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _Spacing: 0.5 |
|||
- _SpecularHighlights: 1 |
|||
- _SrcBlend: 1 |
|||
- _UVSec: 0 |
|||
- _ZWrite: 1 |
|||
m_Colors: |
|||
- _CellColor: {r: 0.23529412, g: 0.23529412, b: 0.23529412, a: 1} |
|||
- _Color: {r: 0.935151, g: 0.9705882, b: 0.3282872, a: 0} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|||
- _LineColor: {r: 0.39215687, g: 0.39215687, b: 0.39215687, a: 1} |
|||
- _SelectedColor: {r: 0.1586206, g: 1, b: 0, a: 1} |
|
|||
fileFormatVersion: 2 |
|||
guid: dc7340babc47c45c987fee58e013ed3f |
|||
timeCreated: 1527928195 |
|||
licenseType: Store |
|||
NativeFormatImporter: |
|||
mainObjectFileID: 0 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!21 &2100000 |
|||
Material: |
|||
serializedVersion: 6 |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: GridMatFloor |
|||
m_Shader: {fileID: 4800000, guid: bbecf177c38d84ff08d7c683c116affd, type: 3} |
|||
m_ShaderKeywords: |
|||
m_LightmapFlags: 4 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: -1 |
|||
stringTagMap: {} |
|||
disabledShaderPasses: [] |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _BumpMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailAlbedoMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailMask: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailNormalMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _EmissionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MainTex: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MetallicGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _OcclusionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _ParallaxMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _BumpScale: 1 |
|||