From 48d6653020b9062f50dde9180c47593283721572 Mon Sep 17 00:00:00 2001 From: DAIKI Date: Wed, 24 Jul 2024 21:16:06 +0900 Subject: [PATCH 1/2] Changed the glyph image generation to use GlyphLayoutData struct instead of GlyphLayout. --- .../InputGlyphs/Samples/DuoPlayerSample.unity | 32 ++++++++++++---- .../Samples/Scripts/InputCheckSample.cs | 7 +++- .../Samples/SoloPlayerSample.unity | 20 +++++++--- .../Samples/SteamworksSample.unity | 16 ++++++-- .../Scripts/Editor/GlyphsLayoutDataDrawer.cs | 37 +++++++++++++++++++ .../Editor/GlyphsLayoutDataDrawer.cs.meta | 11 ++++++ .../Display/DisplayGlyphTextureGenerator.cs | 19 ++++++++-- .../Scripts/Runtime/Display/GlyphsLayout.cs | 8 ---- .../Runtime/Display/GlyphsLayoutData.cs | 23 ++++++++++++ ...ayout.cs.meta => GlyphsLayoutData.cs.meta} | 0 .../Display/Sprite/InputGlyphSprite.cs | 4 +- .../Display/TextMeshPro/InputGlyphText.cs | 4 +- .../Runtime/Display/UI/InputGlyphImage.cs | 4 +- 13 files changed, 149 insertions(+), 36 deletions(-) create mode 100644 InputGlyphs/Assets/InputGlyphs/Scripts/Editor/GlyphsLayoutDataDrawer.cs create mode 100644 InputGlyphs/Assets/InputGlyphs/Scripts/Editor/GlyphsLayoutDataDrawer.cs.meta delete mode 100644 InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayout.cs create mode 100644 InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayoutData.cs rename InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/{GlyphsLayout.cs.meta => GlyphsLayoutData.cs.meta} (100%) diff --git a/InputGlyphs/Assets/InputGlyphs/Samples/DuoPlayerSample.unity b/InputGlyphs/Assets/InputGlyphs/Samples/DuoPlayerSample.unity index 6a4d552..c095fc4 100644 --- a/InputGlyphs/Assets/InputGlyphs/Samples/DuoPlayerSample.unity +++ b/InputGlyphs/Assets/InputGlyphs/Samples/DuoPlayerSample.unity @@ -525,7 +525,9 @@ MonoBehaviour: InputActionReferences: - {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - {fileID: -6609880655223600665, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!1 &275803797 GameObject: m_ObjectHideFlags: 0 @@ -694,7 +696,9 @@ MonoBehaviour: SpriteRenderer: {fileID: 284746040} PlayerInput: {fileID: 1837572673} InputActionReference: {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!212 &284746040 SpriteRenderer: m_ObjectHideFlags: 0 @@ -795,7 +799,9 @@ MonoBehaviour: SpriteRenderer: {fileID: 303118346} PlayerInput: {fileID: 1847320111} InputActionReference: {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!212 &303118346 SpriteRenderer: m_ObjectHideFlags: 0 @@ -1009,7 +1015,9 @@ MonoBehaviour: Image: {fileID: 456206386} PlayerInput: {fileID: 1837572673} InputActionReference: {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!114 &456206386 MonoBehaviour: m_ObjectHideFlags: 0 @@ -1861,7 +1869,9 @@ MonoBehaviour: Image: {fileID: 1086219417} PlayerInput: {fileID: 1837572673} InputActionReference: {fileID: -6609880655223600665, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!114 &1086219417 MonoBehaviour: m_ObjectHideFlags: 0 @@ -2122,7 +2132,9 @@ MonoBehaviour: Image: {fileID: 1347461810} PlayerInput: {fileID: 1847320111} InputActionReference: {fileID: -6609880655223600665, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!1 &1830157632 GameObject: m_ObjectHideFlags: 0 @@ -2215,7 +2227,9 @@ MonoBehaviour: Image: {fileID: 1830157634} PlayerInput: {fileID: 1847320111} InputActionReference: {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!1 &1837572672 GameObject: m_ObjectHideFlags: 0 @@ -2413,7 +2427,9 @@ MonoBehaviour: InputActionReferences: - {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - {fileID: -6609880655223600665, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!114 &1878454138 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/InputGlyphs/Assets/InputGlyphs/Samples/Scripts/InputCheckSample.cs b/InputGlyphs/Assets/InputGlyphs/Samples/Scripts/InputCheckSample.cs index 19b2389..4a38a11 100644 --- a/InputGlyphs/Assets/InputGlyphs/Samples/Scripts/InputCheckSample.cs +++ b/InputGlyphs/Assets/InputGlyphs/Samples/Scripts/InputCheckSample.cs @@ -20,6 +20,11 @@ public class InputCheckSample : MonoBehaviour private List _controlBuffer = new List(); private List _deviceBuffer = new List(); private List _pathBuffer = new List(); + private readonly GlyphsLayoutData _layoutData = new GlyphsLayoutData + { + Layout = GlyphsLayout.Horizontal, + MaxCount = 4, + }; private void Start() { @@ -51,7 +56,7 @@ private void DrawGlyphs(IReadOnlyList controls) _pathBuffer.Add(control.path); } - if (DisplayGlyphTextureGenerator.GenerateGlyphTexture(_texture, _deviceBuffer, _pathBuffer, GlyphsLayout.Horizontal)) + if (DisplayGlyphTextureGenerator.GenerateGlyphTexture(_texture, _deviceBuffer, _pathBuffer, _layoutData)) { Destroy(_spriteRenderer.sprite); _spriteRenderer.sprite = Sprite.Create(_texture, new Rect(0, 0, _texture.width, _texture.height), new Vector2(0.5f, 0.5f), Mathf.Min(_texture.width, _texture.height)); diff --git a/InputGlyphs/Assets/InputGlyphs/Samples/SoloPlayerSample.unity b/InputGlyphs/Assets/InputGlyphs/Samples/SoloPlayerSample.unity index 15976ab..988cb15 100644 --- a/InputGlyphs/Assets/InputGlyphs/Samples/SoloPlayerSample.unity +++ b/InputGlyphs/Assets/InputGlyphs/Samples/SoloPlayerSample.unity @@ -523,7 +523,9 @@ MonoBehaviour: InputActionReferences: - {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - {fileID: -6609880655223600665, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!1 &275803797 GameObject: m_ObjectHideFlags: 0 @@ -692,7 +694,9 @@ MonoBehaviour: SpriteRenderer: {fileID: 303118346} PlayerInput: {fileID: 1847320111} InputActionReference: {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!212 &303118346 SpriteRenderer: m_ObjectHideFlags: 0 @@ -1172,7 +1176,9 @@ MonoBehaviour: InputActionReferences: - {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - {fileID: -6609880655223600665, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!1 &933883783 GameObject: m_ObjectHideFlags: 0 @@ -1624,7 +1630,9 @@ MonoBehaviour: Image: {fileID: 1347461810} PlayerInput: {fileID: 1847320111} InputActionReference: {fileID: -6609880655223600665, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!1 &1830157632 GameObject: m_ObjectHideFlags: 0 @@ -1717,7 +1725,9 @@ MonoBehaviour: Image: {fileID: 1830157634} PlayerInput: {fileID: 1847320111} InputActionReference: {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!1 &1847320110 GameObject: m_ObjectHideFlags: 0 diff --git a/InputGlyphs/Assets/InputGlyphs/Samples/SteamworksSample.unity b/InputGlyphs/Assets/InputGlyphs/Samples/SteamworksSample.unity index e883fc2..dc25bfb 100644 --- a/InputGlyphs/Assets/InputGlyphs/Samples/SteamworksSample.unity +++ b/InputGlyphs/Assets/InputGlyphs/Samples/SteamworksSample.unity @@ -377,7 +377,9 @@ MonoBehaviour: InputActionReferences: - {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - {fileID: -6609880655223600665, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!114 &278394324 MonoBehaviour: m_ObjectHideFlags: 0 @@ -552,7 +554,9 @@ MonoBehaviour: SpriteRenderer: {fileID: 643438429} PlayerInput: {fileID: 1795501703} InputActionReference: {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!212 &643438429 SpriteRenderer: m_ObjectHideFlags: 0 @@ -882,7 +886,9 @@ MonoBehaviour: Image: {fileID: 989226477} PlayerInput: {fileID: 1795501703} InputActionReference: {fileID: -6609880655223600665, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!1 &1411641333 GameObject: m_ObjectHideFlags: 0 @@ -1401,7 +1407,9 @@ MonoBehaviour: Image: {fileID: 1576210592} PlayerInput: {fileID: 1795501703} InputActionReference: {fileID: 1942945179757384036, guid: 1b9bb0cc544975040b6fa735b8e5fcf7, type: 3} - GlyphsLayout: 2 + GlyphsLayoutData: + Layout: 2 + MaxCount: 4 --- !u!114 &1576210592 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/InputGlyphs/Assets/InputGlyphs/Scripts/Editor/GlyphsLayoutDataDrawer.cs b/InputGlyphs/Assets/InputGlyphs/Scripts/Editor/GlyphsLayoutDataDrawer.cs new file mode 100644 index 0000000..ec4b5ac --- /dev/null +++ b/InputGlyphs/Assets/InputGlyphs/Scripts/Editor/GlyphsLayoutDataDrawer.cs @@ -0,0 +1,37 @@ +using UnityEditor; +using UnityEngine; + +namespace InputGlyphs.Display.Editor +{ + [CustomPropertyDrawer(typeof(GlyphsLayoutData))] + public class GlyphsLayoutDataDrawer : PropertyDrawer + { + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) + { + using (new EditorGUI.PropertyScope(position, label, property)) + { + var rect = position; + rect.height = EditorGUIUtility.singleLineHeight; + + var layoutProperty = property.FindPropertyRelative(nameof(GlyphsLayoutData.Layout)); + EditorGUI.PropertyField(rect, layoutProperty, new GUIContent($"Glyphs {layoutProperty.displayName}")); + rect.y += EditorGUIUtility.singleLineHeight; + + var layout = (GlyphsLayout)layoutProperty.intValue; + if (layout == GlyphsLayout.Horizontal) + { + var maxCountProperty = property.FindPropertyRelative(nameof(GlyphsLayoutData.MaxCount)); + EditorGUI.PropertyField(rect, maxCountProperty, new GUIContent($"Glyphs {maxCountProperty.displayName}")); + } + } + } + + public override float GetPropertyHeight(SerializedProperty property, GUIContent label) + { + var layoutProperty = property.FindPropertyRelative(nameof(GlyphsLayoutData.Layout)); + var layout = (GlyphsLayout)layoutProperty.intValue; + var lineCount = layout == GlyphsLayout.Horizontal ? 2 : 1; + return EditorGUIUtility.singleLineHeight * lineCount; + } + } +} diff --git a/InputGlyphs/Assets/InputGlyphs/Scripts/Editor/GlyphsLayoutDataDrawer.cs.meta b/InputGlyphs/Assets/InputGlyphs/Scripts/Editor/GlyphsLayoutDataDrawer.cs.meta new file mode 100644 index 0000000..0e0ac31 --- /dev/null +++ b/InputGlyphs/Assets/InputGlyphs/Scripts/Editor/GlyphsLayoutDataDrawer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 87cd1c8a1af9d634586a137da48e39c2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/DisplayGlyphTextureGenerator.cs b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/DisplayGlyphTextureGenerator.cs index a94c3b3..c598423 100644 --- a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/DisplayGlyphTextureGenerator.cs +++ b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/DisplayGlyphTextureGenerator.cs @@ -16,7 +16,7 @@ public static class DisplayGlyphTextureGenerator /// /// Generates glyph texture for the specified inputLayoutPaths and writes it to the texture. The glyph textures are arranged according to the layout. /// - public static bool GenerateGlyphTexture(Texture2D texture, IReadOnlyList activeDevices, IReadOnlyList inputLayoutPaths, GlyphsLayout layout) + public static bool GenerateGlyphTexture(Texture2D texture, IReadOnlyList activeDevices, IReadOnlyList inputLayoutPaths, GlyphsLayoutData layoutData) { if (texture == null) { @@ -29,13 +29,13 @@ public static bool GenerateGlyphTexture(Texture2D texture, IReadOnlyList activeDevices, IReadOnlyList inputLayoutPaths) + private static bool GenerateMultipleGlyphsTexture(Texture2D texture, IReadOnlyList activeDevices, IReadOnlyList inputLayoutPaths, int maxCount) { + if (inputLayoutPaths.Count == 1) + { + return GenerateSingleGlyphTexture(texture, activeDevices, inputLayoutPaths); + } + _textureBuffer.Clear(); + var loadedCount = 0; for (int i = 0; i < inputLayoutPaths.Count; i++) { var texTemp = new Texture2D(2, 2); if (InputGlyphManager.LoadGlyph(texTemp, activeDevices, inputLayoutPaths[i])) { _textureBuffer.Add(texTemp); + loadedCount++; + if (loadedCount >= maxCount) + { + break; + } } else { diff --git a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayout.cs b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayout.cs deleted file mode 100644 index 9005958..0000000 --- a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayout.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace InputGlyphs.Display -{ - public enum GlyphsLayout - { - Single = 1, - Horizontal = 2, - } -} diff --git a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayoutData.cs b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayoutData.cs new file mode 100644 index 0000000..12012da --- /dev/null +++ b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayoutData.cs @@ -0,0 +1,23 @@ +using System; + +namespace InputGlyphs.Display +{ + [Serializable] + public struct GlyphsLayoutData + { + public GlyphsLayout Layout; + public int MaxCount; + + public static GlyphsLayoutData Default => new GlyphsLayoutData + { + Layout = GlyphsLayout.Horizontal, + MaxCount = 4, + }; + } + + public enum GlyphsLayout + { + Single = 1, + Horizontal = 2, + } +} diff --git a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayout.cs.meta b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayoutData.cs.meta similarity index 100% rename from InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayout.cs.meta rename to InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/GlyphsLayoutData.cs.meta diff --git a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/Sprite/InputGlyphSprite.cs b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/Sprite/InputGlyphSprite.cs index 55703f5..45b0c31 100644 --- a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/Sprite/InputGlyphSprite.cs +++ b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/Sprite/InputGlyphSprite.cs @@ -19,7 +19,7 @@ public class InputGlyphSprite : MonoBehaviour public InputActionReference InputActionReference = null; [SerializeField] - public GlyphsLayout GlyphsLayout = GlyphsLayout.Horizontal; + public GlyphsLayoutData GlyphsLayoutData = GlyphsLayoutData.Default; private PlayerInput _lastPlayerInput; private List _pathBuffer = new List(); @@ -138,7 +138,7 @@ private void UpdateGlyphs(PlayerInput playerInput) if (InputLayoutPathUtility.TryGetActionBindingPath(InputActionReference?.action, PlayerInput.currentControlScheme, _pathBuffer)) { - if (DisplayGlyphTextureGenerator.GenerateGlyphTexture(_texture, devices, _pathBuffer, GlyphsLayout)) + if (DisplayGlyphTextureGenerator.GenerateGlyphTexture(_texture, devices, _pathBuffer, GlyphsLayoutData)) { Destroy(SpriteRenderer.sprite); SpriteRenderer.sprite = Sprite.Create(_texture, new Rect(0, 0, _texture.width, _texture.height), new Vector2(0.5f, 0.5f), Mathf.Min(_texture.width, _texture.height)); diff --git a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/TextMeshPro/InputGlyphText.cs b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/TextMeshPro/InputGlyphText.cs index 0a1fae0..3fdb97d 100644 --- a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/TextMeshPro/InputGlyphText.cs +++ b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/TextMeshPro/InputGlyphText.cs @@ -28,7 +28,7 @@ public class InputGlyphText : MonoBehaviour public InputActionReference[] InputActionReferences = null; [SerializeField] - public GlyphsLayout GlyphsLayout = GlyphsLayout.Horizontal; + public GlyphsLayoutData GlyphsLayoutData = GlyphsLayoutData.Default; private PlayerInput _lastPlayerInput; private List _pathBuffer = new List(); @@ -178,7 +178,7 @@ private void UpdateGlyphs(PlayerInput playerInput) texture = new Texture2D(2, 2); _actionTextureBuffer.Add(texture); } - if (DisplayGlyphTextureGenerator.GenerateGlyphTexture(texture, devices, _pathBuffer, GlyphsLayout)) + if (DisplayGlyphTextureGenerator.GenerateGlyphTexture(texture, devices, _pathBuffer, GlyphsLayoutData)) { _actionTextureIndexes.Add(Tuple.Create(actionReference.action.name, i)); } diff --git a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/UI/InputGlyphImage.cs b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/UI/InputGlyphImage.cs index c05c018..2b73b41 100644 --- a/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/UI/InputGlyphImage.cs +++ b/InputGlyphs/Assets/InputGlyphs/Scripts/Runtime/Display/UI/InputGlyphImage.cs @@ -20,7 +20,7 @@ public class InputGlyphImage : MonoBehaviour public InputActionReference InputActionReference = null; [SerializeField] - public GlyphsLayout GlyphsLayout = GlyphsLayout.Horizontal; + public GlyphsLayoutData GlyphsLayoutData = GlyphsLayoutData.Default; private Vector2 _defaultSizeDelta; private PlayerInput _lastPlayerInput; @@ -141,7 +141,7 @@ private void UpdateGlyphs(PlayerInput playerInput) if (InputLayoutPathUtility.TryGetActionBindingPath(InputActionReference?.action, PlayerInput.currentControlScheme, _pathBuffer)) { - if (DisplayGlyphTextureGenerator.GenerateGlyphTexture(_texture, devices, _pathBuffer, GlyphsLayout)) + if (DisplayGlyphTextureGenerator.GenerateGlyphTexture(_texture, devices, _pathBuffer, GlyphsLayoutData)) { Destroy(Image.sprite); Image.sprite = Sprite.Create(_texture, new Rect(0, 0, _texture.width, _texture.height), new Vector2(0.5f, 0.5f), Mathf.Min(_texture.width, _texture.height)); From 3668a29d77d20841dc618f232718c109ac695eaa Mon Sep 17 00:00:00 2001 From: DAIKI Date: Wed, 24 Jul 2024 21:20:46 +0900 Subject: [PATCH 2/2] Update docs --- InputGlyphs/Assets/InputGlyphs/CHANGELOG.md | 4 ++++ InputGlyphs/Assets/InputGlyphs/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/InputGlyphs/Assets/InputGlyphs/CHANGELOG.md b/InputGlyphs/Assets/InputGlyphs/CHANGELOG.md index e835a2d..db87d31 100644 --- a/InputGlyphs/Assets/InputGlyphs/CHANGELOG.md +++ b/InputGlyphs/Assets/InputGlyphs/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.1.1] - 2024-07-24 +### Changed +- Changed the glyph image generation to use GlyphLayoutData struct instead of GlyphLayout. + ## [1.1.0] - 2024-07-16 ### Changed - [GlyphLoader](https://github.com/eviltwo/UnitySteamInputGlyphLoader) package has been integrated into this package. diff --git a/InputGlyphs/Assets/InputGlyphs/package.json b/InputGlyphs/Assets/InputGlyphs/package.json index f777fa1..e268ccd 100644 --- a/InputGlyphs/Assets/InputGlyphs/package.json +++ b/InputGlyphs/Assets/InputGlyphs/package.json @@ -1,7 +1,7 @@ { "name": "com.eviltwo.input-glyphs", "displayName": "Input Glyphs", - "version": "1.1.0", + "version": "1.1.1", "unity": "2022.3", "description": "Displays glyphs (icons) of keyboard & mouse or controller buttons recognized by Unity's InputSystem.", "author": {