diff --git a/Changelog.txt b/Changelog.txt index 5fbc1c8..b9b9bbd 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,3 +1,10 @@ +----------------------------- +v3.0.3 + +- Fixed some comments and removed unused using statements. +- Fixed Resolution.refreshRate is obsolete warning for Unity 2022.2 and newer. +- Increased minimum version to recommended Unity 2019.4 LTS. + ----------------------------- v3.0.2 diff --git a/Graphy_CustomizationScene.unitypackage b/Graphy_CustomizationScene.unitypackage index 154987f..825a569 100644 Binary files a/Graphy_CustomizationScene.unitypackage and b/Graphy_CustomizationScene.unitypackage differ diff --git a/Prefab/[Graphy] VR.prefab b/Prefab/[Graphy] VR.prefab index 8411006..5f7dde5 100644 --- a/Prefab/[Graphy] VR.prefab +++ b/Prefab/[Graphy] VR.prefab @@ -263,5 +263,16 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} - m_RemovedComponents: [] + - target: {fileID: 6658570366365034085, guid: 0abab5bb77339e4428787a870eb31bd3, + type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 6658570366365034085, guid: 0abab5bb77339e4428787a870eb31bd3, + type: 3} + propertyPath: m_SizeDelta.y + value: 1080 + objectReference: {fileID: 0} + m_RemovedComponents: + - {fileID: 6760672456574371718, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3} diff --git a/Runtime/Advanced/G_AdvancedData.cs b/Runtime/Advanced/G_AdvancedData.cs index eb519a7..fd0ccd7 100644 --- a/Runtime/Advanced/G_AdvancedData.cs +++ b/Runtime/Advanced/G_AdvancedData.cs @@ -327,7 +327,11 @@ private void Init() + "x" + res.height + "@" +#if UNITY_2022_2_OR_NEWER + + res.refreshRateRatio.value.ToString("F2") +#else + res.refreshRate +#endif + "Hz"; m_operatingSystemText.text diff --git a/Runtime/Audio/G_AudioGraph.cs b/Runtime/Audio/G_AudioGraph.cs index f8b9411..453b116 100644 --- a/Runtime/Audio/G_AudioGraph.cs +++ b/Runtime/Audio/G_AudioGraph.cs @@ -253,8 +253,8 @@ protected override void CreatePoints() m_shaderGraphHighestValues.UpdateThresholds(); // Update Array - m_shaderGraph.UpdateArray(); - m_shaderGraphHighestValues.UpdateArray(); + m_shaderGraph.UpdateArrayValuesLength(); + m_shaderGraphHighestValues.UpdateArrayValuesLength(); // Average m_shaderGraph.Average = 0; diff --git a/Runtime/Fps/G_FpsGraph.cs b/Runtime/Fps/G_FpsGraph.cs index da1cc2f..1cb9275 100644 --- a/Runtime/Fps/G_FpsGraph.cs +++ b/Runtime/Fps/G_FpsGraph.cs @@ -169,7 +169,7 @@ protected override void CreatePoints() m_shaderGraph.UpdateColors(); - m_shaderGraph.UpdateArray(); + m_shaderGraph.UpdateArrayValuesLength(); } #endregion diff --git a/Runtime/Fps/G_FpsMonitor.cs b/Runtime/Fps/G_FpsMonitor.cs index 3ab4883..5481146 100644 --- a/Runtime/Fps/G_FpsMonitor.cs +++ b/Runtime/Fps/G_FpsMonitor.cs @@ -12,9 +12,7 @@ * -------------------------------------*/ using System; -using System.Xml.Linq; using UnityEngine; -using Random = UnityEngine.Random; namespace Tayx.Graphy.Fps { diff --git a/Runtime/Ram/G_RamGraph.cs b/Runtime/Ram/G_RamGraph.cs index 63f482f..de6ce13 100644 --- a/Runtime/Ram/G_RamGraph.cs +++ b/Runtime/Ram/G_RamGraph.cs @@ -14,7 +14,6 @@ using Tayx.Graphy.Graph; using UnityEngine; using UnityEngine.UI; -using UnityEngine.Profiling; namespace Tayx.Graphy.Ram { @@ -222,9 +221,9 @@ protected override void CreatePoints() m_shaderGraphMono.CautionThreshold = 0; m_shaderGraphMono.UpdateThresholds(); - m_shaderGraphAllocated.UpdateArray(); - m_shaderGraphReserved.UpdateArray(); - m_shaderGraphMono.UpdateArray(); + m_shaderGraphAllocated.UpdateArrayValuesLength(); + m_shaderGraphReserved.UpdateArrayValuesLength(); + m_shaderGraphMono.UpdateArrayValuesLength(); // Average diff --git a/Runtime/Shader/G_GraphShader.cs b/Runtime/Shader/G_GraphShader.cs index 22e3d66..d740598 100644 --- a/Runtime/Shader/G_GraphShader.cs +++ b/Runtime/Shader/G_GraphShader.cs @@ -73,9 +73,10 @@ public void InitializeShader() } /// - /// Updates the material linked with this shader graph with the values in the float[] array. + /// Updates the GraphValuesLength parameter in the material with the current length of the + /// ShaderArrayValues float[] array. /// - public void UpdateArray() + public void UpdateArrayValuesLength() { Image.material.SetInt( GraphValuesLength, ShaderArrayValues.Length ); } diff --git a/Runtime/UI/SafeArea.cs b/Runtime/UI/G_SafeArea.cs similarity index 98% rename from Runtime/UI/SafeArea.cs rename to Runtime/UI/G_SafeArea.cs index 6602344..f45e6db 100644 --- a/Runtime/UI/SafeArea.cs +++ b/Runtime/UI/G_SafeArea.cs @@ -6,7 +6,7 @@ namespace Graphy.Runtime.UI /// Component that matches the size of the RectTransform to the safe area. /// [ExecuteAlways] - public sealed class SafeArea : MonoBehaviour + public sealed class G_SafeArea : MonoBehaviour { [SerializeField] [HideInInspector] private RectTransform rectTransform; [SerializeField] [HideInInspector] private Canvas canvas; diff --git a/Runtime/UI/SafeArea.cs.meta b/Runtime/UI/G_SafeArea.cs.meta similarity index 100% rename from Runtime/UI/SafeArea.cs.meta rename to Runtime/UI/G_SafeArea.cs.meta diff --git a/package.json b/package.json index 8b095b2..0f4b053 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "com.tayx.graphy", - "version": "3.0.2", + "version": "3.0.3", "displayName": "Graphy - Ultimate FPS Counter", "description": "Graphy is the ultimate, easy to use, feature packed FPS Counter, stats monitor and debugger for your Unity project.", - "unity": "2019.3", + "unity": "2019.4", "license": "MIT", "keywords": [ "fps",