浏览代码
Adding automatic Screenshots when running with --benchmark argument (#11)
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 次删除
-
999Assets/Animation/Benchmark/BenchmarkWalkthroughPart01Timeline.playable
-
445Assets/Animation/Benchmark/BenchmarkWalkthroughPart02Timeline.playable
-
189Assets/Prefabs/Benchmark/Benchmark.prefab
-
2LocalPackages/net.peeweek.build-frontend/Editor/Assets/BuildTemplate.cs
-
5LocalPackages/net.peeweek.gameplay-ingredients/Runtime/LevelScripting/Actions/TakeScreenshotAction.cs
-
22Assets/BuildSettings/SpaceshipDemo/PC-Win64-Benchmark.asset
-
8Assets/BuildSettings/SpaceshipDemo/PC-Win64-Benchmark.asset.meta
-
31Assets/Scripts/Debug/FPSManagerToggleAction.cs
-
11Assets/Scripts/Debug/FPSManagerToggleAction.cs.meta
999
Assets/Animation/Benchmark/BenchmarkWalkthroughPart01Timeline.playable
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
%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} |
|
|||
fileFormatVersion: 2 |
|||
guid: f9272a898a2b00e439b2528b5503fe18 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 11400000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
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; |
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: fb7550328a1a2854dbb17d655187a381 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue