浏览代码

Adding automatic Screenshots when running with --benchmark argument (#11)

* Fix small sign error that causes division by zero (#8)

* Added Events and Scripts for Screenshots

* Updated Screenshots, Added FPS Manager in benchmark + Fixes in packages

Co-authored-by: Ludovic Theobald <ludovic.theobald@unity3d.com>
Co-authored-by: Thomas ICHÉ <peeweek@gmail.com>
/main
GitHub Enterprise 4 年前
当前提交
11cb4326
共有 9 个文件被更改,包括 1697 次插入15 次删除
  1. 999
      Assets/Animation/Benchmark/BenchmarkWalkthroughPart01Timeline.playable
  2. 445
      Assets/Animation/Benchmark/BenchmarkWalkthroughPart02Timeline.playable
  3. 189
      Assets/Prefabs/Benchmark/Benchmark.prefab
  4. 2
      LocalPackages/net.peeweek.build-frontend/Editor/Assets/BuildTemplate.cs
  5. 5
      LocalPackages/net.peeweek.gameplay-ingredients/Runtime/LevelScripting/Actions/TakeScreenshotAction.cs
  6. 22
      Assets/BuildSettings/SpaceshipDemo/PC-Win64-Benchmark.asset
  7. 8
      Assets/BuildSettings/SpaceshipDemo/PC-Win64-Benchmark.asset.meta
  8. 31
      Assets/Scripts/Debug/FPSManagerToggleAction.cs
  9. 11
      Assets/Scripts/Debug/FPSManagerToggleAction.cs.meta

999
Assets/Animation/Benchmark/BenchmarkWalkthroughPart01Timeline.playable
文件差异内容过多而无法显示
查看文件

445
Assets/Animation/Benchmark/BenchmarkWalkthroughPart02Timeline.playable


template:
StartMessage: BCK-WRECKED-WAKEUP
Instigator: {fileID: 0}
--- !u!114 &-4704024726607773436
MonoBehaviour:
m_ObjectHideFlags: 1
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: cb58c39ec6569f44f80a61f5c3cf164f, type: 3}
m_Name: SendMessageClip(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)
m_EditorClassIdentifier:
template:
StartMessage: REF_SHOT
Instigator: {fileID: 0}
--- !u!114 &-3304346089280695756
MonoBehaviour:
m_ObjectHideFlags: 1
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: cb58c39ec6569f44f80a61f5c3cf164f, type: 3}
m_Name: SendMessageClip(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)
m_EditorClassIdentifier:
template:
StartMessage: REF_SHOT
Instigator: {fileID: 0}
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0

- {fileID: 8027498295817344513}
- {fileID: 8789062899216404600}
- {fileID: 6515283023949330146}
- {fileID: 6972952928908864483}
m_ScenePreview: 1
--- !u!114 &750258757167924855
MonoBehaviour:
m_ObjectHideFlags: 1
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: cb58c39ec6569f44f80a61f5c3cf164f, type: 3}
m_Name: SendMessageClip(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)
m_EditorClassIdentifier:
template:
StartMessage: REF_SHOT
Instigator: {fileID: 0}
--- !u!74 &1415503543179230014
AnimationClip:
m_ObjectHideFlags: 0

m_HasGenericRootTransform: 1
m_HasMotionFloatCurves: 0
m_Events: []
--- !u!114 &6104530788551791091
MonoBehaviour:
m_ObjectHideFlags: 1
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: cb58c39ec6569f44f80a61f5c3cf164f, type: 3}
m_Name: SendMessageClip(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)
m_EditorClassIdentifier:
template:
StartMessage: REF_SHOT
Instigator: {fileID: 0}
--- !u!114 &6515283023949330146
MonoBehaviour:
m_ObjectHideFlags: 1

template:
StartMessage: BCK-WRECKED-END
Instigator: {fileID: 0}
--- !u!114 &6972952928908864483
MonoBehaviour:
m_ObjectHideFlags: 1
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: 7d750ab4465e67c4d87e45dee6734baf, type: 3}
m_Name: BENCHMARK-SCREENSHOTS
m_EditorClassIdentifier:
m_Version: 3
m_AnimClip: {fileID: 0}
m_Locked: 0
m_Muted: 0
m_CustomPlayableFullTypename:
m_Curves: {fileID: 0}
m_Parent: {fileID: 11400000}
m_Children: []
m_Clips:
- m_Version: 1
m_Start: 1.8000000000000007
m_ClipIn: 0
m_Asset: {fileID: -4704024726607773436}
m_Duration: 0.6333333333333346
m_TimeScale: 1
m_ParentTrack: {fileID: 6972952928908864483}
m_EaseInDuration: 0
m_EaseOutDuration: 0
m_BlendInDuration: 0
m_BlendOutDuration: 0
m_MixInCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_MixOutCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_BlendInCurveMode: 0
m_BlendOutCurveMode: 0
m_ExposedParameterNames: []
m_AnimationCurves: {fileID: 0}
m_Recordable: 0
m_PostExtrapolationMode: 0
m_PreExtrapolationMode: 0
m_PostExtrapolationTime: 0
m_PreExtrapolationTime: 0
m_DisplayName: REF_SHOT
- m_Version: 1
m_Start: 7.383333333333334
m_ClipIn: 0
m_Asset: {fileID: 750258757167924855}
m_Duration: 0.6333333333333346
m_TimeScale: 1
m_ParentTrack: {fileID: 6972952928908864483}
m_EaseInDuration: 0
m_EaseOutDuration: 0
m_BlendInDuration: 0
m_BlendOutDuration: 0
m_MixInCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_MixOutCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_BlendInCurveMode: 0
m_BlendOutCurveMode: 0
m_ExposedParameterNames: []
m_AnimationCurves: {fileID: 0}
m_Recordable: 0
m_PostExtrapolationMode: 0
m_PreExtrapolationMode: 0
m_PostExtrapolationTime: 0
m_PreExtrapolationTime: 0
m_DisplayName: REF_SHOT
- m_Version: 1
m_Start: 11.366666666666667
m_ClipIn: 0
m_Asset: {fileID: 8148282488544283967}
m_Duration: 0.6333333333333346
m_TimeScale: 1
m_ParentTrack: {fileID: 6972952928908864483}
m_EaseInDuration: 0
m_EaseOutDuration: 0
m_BlendInDuration: 0
m_BlendOutDuration: 0
m_MixInCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_MixOutCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_BlendInCurveMode: 0
m_BlendOutCurveMode: 0
m_ExposedParameterNames: []
m_AnimationCurves: {fileID: 0}
m_Recordable: 0
m_PostExtrapolationMode: 0
m_PreExtrapolationMode: 0
m_PostExtrapolationTime: 0
m_PreExtrapolationTime: 0
m_DisplayName: REF_SHOT
- m_Version: 1
m_Start: 16.433333333333334
m_ClipIn: 0
m_Asset: {fileID: 6104530788551791091}
m_Duration: 0.6333333333333346
m_TimeScale: 1
m_ParentTrack: {fileID: 6972952928908864483}
m_EaseInDuration: 0
m_EaseOutDuration: 0
m_BlendInDuration: 0
m_BlendOutDuration: 0
m_MixInCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_MixOutCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_BlendInCurveMode: 0
m_BlendOutCurveMode: 0
m_ExposedParameterNames: []
m_AnimationCurves: {fileID: 0}
m_Recordable: 0
m_PostExtrapolationMode: 0
m_PreExtrapolationMode: 0
m_PostExtrapolationTime: 0
m_PreExtrapolationTime: 0
m_DisplayName: REF_SHOT
- m_Version: 1
m_Start: 19.85
m_ClipIn: 0
m_Asset: {fileID: -3304346089280695756}
m_Duration: 0.6333333333333346
m_TimeScale: 1
m_ParentTrack: {fileID: 6972952928908864483}
m_EaseInDuration: 0
m_EaseOutDuration: 0
m_BlendInDuration: 0
m_BlendOutDuration: 0
m_MixInCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_MixOutCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_BlendInCurveMode: 0
m_BlendOutCurveMode: 0
m_ExposedParameterNames: []
m_AnimationCurves: {fileID: 0}
m_Recordable: 0
m_PostExtrapolationMode: 0
m_PreExtrapolationMode: 0
m_PostExtrapolationTime: 0
m_PreExtrapolationTime: 0
m_DisplayName: REF_SHOT
m_Markers:
m_Objects: []
--- !u!114 &7807222420511646518
MonoBehaviour:
m_ObjectHideFlags: 1

m_OpenClipOffsetRotation: {x: 0, y: 0, z: 0, w: 1}
m_Rotation: {x: 0, y: 0, z: 0, w: 1}
m_ApplyOffsets: 0
--- !u!114 &8148282488544283967
MonoBehaviour:
m_ObjectHideFlags: 1
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: cb58c39ec6569f44f80a61f5c3cf164f, type: 3}
m_Name: SendMessageClip(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)
m_EditorClassIdentifier:
template:
StartMessage: REF_SHOT
Instigator: {fileID: 0}
--- !u!114 &8789062899216404600
MonoBehaviour:
m_ObjectHideFlags: 1

189
Assets/Prefabs/Benchmark/Benchmark.prefab


- {fileID: 2844759636163112434}
- {fileID: 2844759635811244993}
m_Father: {fileID: 2844759637480249415}
m_RootOrder: 0
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2844759636631124796
MonoBehaviour:

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2844759637480249415}
m_RootOrder: 1
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2844759636876101696
MonoBehaviour:

m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 7434618925055714561}
- {fileID: 4263160497459758845}
- {fileID: 2844759636631124739}
- {fileID: 2844759636876101700}
m_Father: {fileID: 0}

m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!1 &4943446557949318664
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4263160497459758845}
- component: {fileID: 3010867476013172579}
- component: {fileID: 1172881653651875030}
- component: {fileID: 2644557470996910844}
m_Layer: 0
m_Name: On BENCHMARK_TAKESCREENSHOT
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4263160497459758845
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4943446557949318664}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2844759637480249415}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &3010867476013172579
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4943446557949318664}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4a42a87995c7dd1418e01c581ec175f1, type: 3}
m_Name:
m_EditorClassIdentifier:
MessageName: REF_SHOT
OnMessageRecieved:
- {fileID: 1172881653651875030}
--- !u!114 &1172881653651875030
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4943446557949318664}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ebc2b0ba75ae08f46b7de01892c0fdf9, type: 3}
m_Name:
m_EditorClassIdentifier:
Name: if --benchmark
Option: --benchmark
OnArgumentPresent:
- {fileID: 2644557470996910844}
OnArgumentAbsent: []
--- !u!114 &2644557470996910844
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4943446557949318664}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 243cd724bfb1cdd45986699812abcbe1, type: 3}
m_Name:
m_EditorClassIdentifier:
Name: Take Screenshot
supersampleRate: 1
fileName: ../Spaceship-REF
figureCount: 3
--- !u!1 &5005771225792427721
GameObject:
m_ObjectHideFlags: 0

m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!1 &5609648839956752477
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7434618925055714561}
- component: {fileID: 9119108623488123060}
- component: {fileID: 6247321215698336170}
- component: {fileID: 6832814332853416876}
m_Layer: 0
m_Name: 'OnStart : if --benchmark'
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7434618925055714561
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5609648839956752477}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2844759637480249415}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &9119108623488123060
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5609648839956752477}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 718c1945292acbd4497cd28bcaa94f8d, type: 3}
m_Name:
m_EditorClassIdentifier:
OnStart:
- {fileID: 6247321215698336170}
--- !u!114 &6247321215698336170
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5609648839956752477}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ebc2b0ba75ae08f46b7de01892c0fdf9, type: 3}
m_Name:
m_EditorClassIdentifier:
Name: if --benchmark
Option: --benchmark
OnArgumentPresent:
- {fileID: 6832814332853416876}
OnArgumentAbsent: []
--- !u!114 &6832814332853416876
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5609648839956752477}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fb7550328a1a2854dbb17d655187a381, type: 3}
m_Name:
m_EditorClassIdentifier:
Name: Enable FPS Manager
Toggle: 1
--- !u!1 &6517450252798828125
GameObject:
m_ObjectHideFlags: 0

objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 9f634f86068ede4438eadd4e55c7c49a, type: 3}
--- !u!95 &1084765432219353402 stripped
Animator:
m_CorrespondingSourceObject: {fileID: 2915871545750405836, guid: 9f634f86068ede4438eadd4e55c7c49a,
type: 3}
m_PrefabInstance: {fileID: 2844759635663094774}
m_PrefabAsset: {fileID: 0}
type: 3}
m_PrefabInstance: {fileID: 2844759635663094774}
m_PrefabAsset: {fileID: 0}
--- !u!95 &1084765432219353402 stripped
Animator:
m_CorrespondingSourceObject: {fileID: 2915871545750405836, guid: 9f634f86068ede4438eadd4e55c7c49a,
type: 3}
m_PrefabInstance: {fileID: 2844759635663094774}
m_PrefabAsset: {fileID: 0}

objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 9f634f86068ede4438eadd4e55c7c49a, type: 3}
--- !u!95 &85982992156205319 stripped
Animator:
m_CorrespondingSourceObject: {fileID: 2915871545750405836, guid: 9f634f86068ede4438eadd4e55c7c49a,
type: 3}
m_PrefabInstance: {fileID: 2974126913820124107}
m_PrefabAsset: {fileID: 0}
--- !u!4 &30793230800794719 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 2966569147669108628, guid: 9f634f86068ede4438eadd4e55c7c49a,

--- !u!95 &85982992156205319 stripped
Animator:
m_CorrespondingSourceObject: {fileID: 2915871545750405836, guid: 9f634f86068ede4438eadd4e55c7c49a,
type: 3}
m_PrefabInstance: {fileID: 2974126913820124107}
m_PrefabAsset: {fileID: 0}

2
LocalPackages/net.peeweek.build-frontend/Editor/Assets/BuildTemplate.cs


public string BuildPath;
public string ExecutableName;
public bool CleanupBeforeBuild = true;
public string RunWithArguments;
public BuildProfile Profile;
public SceneList SceneList;

ProcessStartInfo info = new ProcessStartInfo();
string path = Application.dataPath + "/../" + BuildPath;
info.FileName = path + ExecutableName;
info.Arguments = RunWithArguments;
info.WorkingDirectory = path;
info.UseShellExecute = false;

5
LocalPackages/net.peeweek.gameplay-ingredients/Runtime/LevelScripting/Actions/TakeScreenshotAction.cs


{
public class TakeScreenshotAction : ActionBase
{
[Tooltip("Super Sampling multiplier")]
[Tooltip("Base Filename (will be numbered) ")]
[Tooltip("How many digits in the sequence numbers.")]
ScreenCapture.CaptureScreenshot(name + screenshotNumber.ToString().PadLeft(figureCount, '0') + ".png", supersampleRate);
ScreenCapture.CaptureScreenshot(fileName + screenshotNumber.ToString().PadLeft(figureCount, '0') + ".png", supersampleRate);
screenshotNumber += 1;
}
}

22
Assets/BuildSettings/SpaceshipDemo/PC-Win64-Benchmark.asset


%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: c7d5bb3f971603247917785e7ea66453, type: 3}
m_Name: PC-Win64-Benchmark
m_EditorClassIdentifier:
Name: Automated Benchmark (Release)
Category: PC
BuildPath: Build/Win64/Benchmark/
ExecutableName: Spaceship.exe
CleanupBeforeBuild: 1
RunWithArguments: --benchmark
Profile: {fileID: 11400000, guid: e4477d07ca6209547874cb1be39ae63d, type: 2}
SceneList: {fileID: 11400000, guid: dd790fd6ec20f15478b7a5c9a4052538, type: 2}

8
Assets/BuildSettings/SpaceshipDemo/PC-Win64-Benchmark.asset.meta


fileFormatVersion: 2
guid: f9272a898a2b00e439b2528b5503fe18
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

31
Assets/Scripts/Debug/FPSManagerToggleAction.cs


using GameplayIngredients;
using GameplayIngredients.Actions;
using UnityEngine;
public class FPSManagerToggleAction : ActionBase
{
public ToggleGameObjectAction.GameObjectToggle.GameObjectToggleState Toggle;
public override void Execute(GameObject instigator = null)
{
if(Manager.Has<FPSManager>())
{
var manager = Manager.Get<FPSManager>();
switch (Toggle)
{
case ToggleGameObjectAction.GameObjectToggle.GameObjectToggleState.Disable:
manager.FPSRoot.SetActive(false);
break;
case ToggleGameObjectAction.GameObjectToggle.GameObjectToggleState.Enable:
manager.FPSRoot.SetActive(true);
break;
case ToggleGameObjectAction.GameObjectToggle.GameObjectToggleState.Toggle:
manager.FPSRoot.SetActive(!manager.FPSRoot.activeInHierarchy);
break;
default:
break;
}
}
}
}

11
Assets/Scripts/Debug/FPSManagerToggleAction.cs.meta


fileFormatVersion: 2
guid: fb7550328a1a2854dbb17d655187a381
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存