Skip to content

Commit

Permalink
Adds option to hide fps
Browse files Browse the repository at this point in the history
  • Loading branch information
KingOfCactus committed Dec 12, 2024
1 parent cffd0a8 commit bbb13bb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
4 changes: 3 additions & 1 deletion Assets/2D Assets/Image Targets/ReferenceImageLibrary.asset

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Assets/Scripts/ImageTrackingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class ImageTrackingTest : MonoBehaviour
GameObject mask, model;

float frameRate;
bool inDebugMode;
float elapsedTime, elapsedFrames;


Expand Down Expand Up @@ -64,6 +65,9 @@ public void UpdateModelHeight()

void Update()
{
if (Input.GetKeyDown("f"))
inDebugMode = !inDebugMode;

if (elapsedTime >= 1f)
{
frameRate = elapsedFrames / elapsedTime;
Expand All @@ -77,6 +81,8 @@ void Update()

void OnGUI()
{
if (!inDebugMode)
return;
var labelStyle = GUI.skin.label;
labelStyle.fontSize = 24;

Expand Down
2 changes: 1 addition & 1 deletion Assets/XR/XRGeneralSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ MonoBehaviour:
m_AutomaticLoading: 0
m_AutomaticRunning: 0
m_Loaders:
- {fileID: 11400000, guid: 9bbad5e01f31d348a849246abe45931b, type: 2}
- {fileID: 11400000, guid: bbf1bbcc68185fe41b723ad39ec4d68e, type: 2}
--- !u!114 &-6011607661423633505
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down
6 changes: 3 additions & 3 deletions ProjectSettings/EditorBuildSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ EditorBuildSettings:
serializedVersion: 2
m_Scenes:
- enabled: 1
path: "Assets/Scenes/Apresenta\xE7\xE3o 360.unity"
guid: be3bd4e3a25858ca285e1ec39154e251
- enabled: 0
path: "Assets/Scenes/Apresenta\xE7\xE3o Esta\xE7\xF5es.unity"
guid: 50d80f2e8867bf935b4d813772779f37
- enabled: 0
path: "Assets/Scenes/Apresenta\xE7\xE3o 360.unity"
guid: be3bd4e3a25858ca285e1ec39154e251
m_configObjects:
UnityEditor.XR.ARCore.ARCoreSettings: {fileID: 11400000, guid: 6ee72d15cf39dd748a13eac57397b9af,
type: 2}
Expand Down
8 changes: 5 additions & 3 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PlayerSettings:
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: KingOfCactus
productName: "[VR]] Apresenta\xE7\xE3o Malha Ferroviaria"
productName: "[AR] Apresenta\xE7\xE3o Malha Ferroviaria"
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
Expand Down Expand Up @@ -144,6 +144,8 @@ PlayerSettings:
preloadedAssets:
- {fileID: 7409956309476867576, guid: 3fd4fc0127790db4bae83f7b77da8d45, type: 2}
- {fileID: 11400000, guid: c199e683398494f32b4cde18e73ab731, type: 2}
- {fileID: 4800000, guid: c9f956787b1d945e7b36e0516201fc76, type: 3}
- {fileID: 4800000, guid: 0945859e5a1034c2cb6dce53cb4fb899, type: 3}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand All @@ -164,7 +166,7 @@ PlayerSettings:
androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1
applicationIdentifier:
Android: com.KingOfCactus.VRApresentaoMalhaFerroviaria
Android: com.KingOfCactus.ARApresentaoMalhaFerroviaria
Standalone: com.DefaultCompany.My-project
buildNumber:
Standalone: 0
Expand Down Expand Up @@ -679,7 +681,7 @@ PlayerSettings:
additionalCompilerArguments: {}
platformArchitecture: {}
scriptingBackend:
Android: 0
Android: 1
Standalone: 1
il2cppCompilerConfiguration:
Android: 1
Expand Down

0 comments on commit bbb13bb

Please sign in to comment.