-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Co-authored-by: Thomas ICHÉ <[email protected]>
- Loading branch information
1 parent
75ab087
commit e5d2c5f
Showing
9 changed files
with
4,094 additions
and
26 deletions.
There are no files selected for viewing
3,407 changes: 3,396 additions & 11 deletions
3,407
Assets/Animation/Benchmark/BenchmarkWalkthroughPart01Timeline.playable
Large diffs are not rendered by default.
Oops, something went wrong.
445 changes: 445 additions & 0 deletions
445
Assets/Animation/Benchmark/BenchmarkWalkthroughPart02Timeline.playable
Large diffs are not rendered by default.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
Assets/BuildSettings/SpaceshipDemo/PC-Win64-Benchmark.asset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
%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 changes: 8 additions & 0 deletions
8
Assets/BuildSettings/SpaceshipDemo/PC-Win64-Benchmark.asset.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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; | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters