();
-
- fontDataAsset.font = f;
-
- AssetDatabase.CreateAsset(
- fontDataAsset,
- string.Format(
- "{0}{1}{2}.asset", "Assets", SAVE_PATH, f.name)
- );
-
- AssetDatabase.SaveAssets();
-
- AssetDatabase.Refresh();
-
- Resources.UnloadUnusedAssets();
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity
index 8514e47..8710747 100644
--- a/Assets/Scenes/SampleScene.unity
+++ b/Assets/Scenes/SampleScene.unity
@@ -138,15 +138,15 @@ RectTransform:
m_GameObject: {fileID: 204619188}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 0.9999995, y: 0.9999995, z: 0.9999995}
+ m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1759118045}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
- m_AnchorMin: {x: 0, y: 0.5}
- m_AnchorMax: {x: 1, y: 0.5}
- m_AnchoredPosition: {x: 0, y: 6.169998}
- m_SizeDelta: {x: 0, y: 115.600006}
+ m_AnchorMin: {x: 0, y: 0.33}
+ m_AnchorMax: {x: 1, y: 0.55667067}
+ m_AnchoredPosition: {x: 0, y: -0.06298828}
+ m_SizeDelta: {x: 0, y: 1.1259995}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &204619190
MonoBehaviour:
@@ -160,8 +160,8 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
- m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
- m_RaycastTarget: 1
+ m_Color: {r: 0.049038816, g: 0.12940678, b: 0.3584906, a: 1}
+ m_RaycastTarget: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
@@ -172,12 +172,12 @@ MonoBehaviour:
m_FontSize: 30
m_FontStyle: 0
m_BestFit: 0
- m_MinSize: 1
+ m_MinSize: 0
m_MaxSize: 60
m_Alignment: 4
m_AlignByGeometry: 0
- m_RichText: 1
- m_HorizontalOverflow: 0
+ m_RichText: 0
+ m_HorizontalOverflow: 1
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Thing...
@@ -272,7 +272,7 @@ GameObject:
- component: {fileID: 296909621}
- component: {fileID: 296909620}
m_Layer: 5
- m_Name: Button
+ m_Name: ThisButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@@ -292,10 +292,10 @@ RectTransform:
m_Father: {fileID: 1759118045}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
- m_AnchorMin: {x: 0, y: 0.5}
- m_AnchorMax: {x: 1, y: 0.5}
- m_AnchoredPosition: {x: -0.00048828125, y: -98}
- m_SizeDelta: {x: -372, y: 59.8}
+ m_AnchorMin: {x: 0, y: 0}
+ m_AnchorMax: {x: 1, y: 0.33}
+ m_AnchoredPosition: {x: 0.49951172, y: 2.5}
+ m_SizeDelta: {x: -371, y: -39.199997}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &296909620
MonoBehaviour:
@@ -344,7 +344,7 @@ MonoBehaviour:
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 296909618}
- m_Enabled: 0
+ m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
@@ -531,10 +531,10 @@ RectTransform:
m_Father: {fileID: 1759118045}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
- m_AnchorMin: {x: 0, y: 0.5}
- m_AnchorMax: {x: 1, y: 0.5}
- m_AnchoredPosition: {x: 0.00061035156, y: 111.88}
- m_SizeDelta: {x: 0.8200073, y: 76}
+ m_AnchorMin: {x: 0, y: 0.7534661}
+ m_AnchorMax: {x: 1, y: 1}
+ m_AnchoredPosition: {x: 0.00048828125, y: -1.1199951}
+ m_SizeDelta: {x: 0.8200073, y: 2}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1277601097
MonoBehaviour:
@@ -548,8 +548,8 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
- m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
- m_RaycastTarget: 1
+ m_Color: {r: 0.049038816, g: 0.12940678, b: 0.3584906, a: 1}
+ m_RaycastTarget: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
@@ -560,14 +560,14 @@ MonoBehaviour:
m_FontSize: 60
m_FontStyle: 0
m_BestFit: 0
- m_MinSize: 1
- m_MaxSize: 60
+ m_MinSize: 0
+ m_MaxSize: 80
m_Alignment: 4
m_AlignByGeometry: 0
- m_RichText: 1
+ m_RichText: 0
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
- m_LineSpacing: 1
+ m_LineSpacing: 0
m_Text: Glass Toe Studio
--- !u!222 &1277601098
CanvasRenderer:
@@ -586,7 +586,7 @@ GameObject:
- component: {fileID: 1328994479}
- component: {fileID: 1328994478}
m_Layer: 5
- m_Name: Text
+ m_Name: Even this button.
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@@ -622,8 +622,8 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
- m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
- m_RaycastTarget: 1
+ m_Color: {r: 0.049038816, g: 0.12940678, b: 0.3584906, a: 1}
+ m_RaycastTarget: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
@@ -634,17 +634,15 @@ MonoBehaviour:
m_FontSize: 20
m_FontStyle: 0
m_BestFit: 0
- m_MinSize: 2
- m_MaxSize: 40
+ m_MinSize: 1
+ m_MaxSize: 20
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 0
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
- m_LineSpacing: 1
- m_Text: 'Even This
-
- Button'
+ m_LineSpacing: 0
+ m_Text: Even this button.
--- !u!222 &1328994479
CanvasRenderer:
m_ObjectHideFlags: 0
@@ -804,15 +802,15 @@ RectTransform:
m_GameObject: {fileID: 1866162985}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 0.9999995, y: 0.9999995, z: 0.9999995}
+ m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1759118045}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
- m_AnchorMin: {x: 0, y: 0.5}
- m_AnchorMax: {x: 1, y: 0.5}
- m_AnchoredPosition: {x: -0.00048828125, y: 52}
- m_SizeDelta: {x: 0, y: 106.5}
+ m_AnchorMin: {x: 0, y: 0.55667067}
+ m_AnchorMax: {x: 1, y: 0.7433353}
+ m_AnchoredPosition: {x: -0.00048828125, y: 0.7000122}
+ m_SizeDelta: {x: 0, y: 0.40000153}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1866162987
MonoBehaviour:
@@ -826,8 +824,8 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
- m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
- m_RaycastTarget: 1
+ m_Color: {r: 0.049038816, g: 0.12940678, b: 0.3584906, a: 1}
+ m_RaycastTarget: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
@@ -838,14 +836,14 @@ MonoBehaviour:
m_FontSize: 40
m_FontStyle: 0
m_BestFit: 0
- m_MinSize: 1
+ m_MinSize: 0
m_MaxSize: 60
m_Alignment: 4
m_AlignByGeometry: 0
- m_RichText: 1
+ m_RichText: 0
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
- m_LineSpacing: 1
+ m_LineSpacing: 0
m_Text: Global UI Font
--- !u!222 &1866162988
CanvasRenderer:
diff --git a/Images/ColorChangeRealTime.gif b/Images/ColorChangeRealTime.gif
new file mode 100644
index 0000000..b8ef6a3
Binary files /dev/null and b/Images/ColorChangeRealTime.gif differ
diff --git a/Images/CustomEditor.gif b/Images/CustomEditor.gif
new file mode 100644
index 0000000..5567a47
Binary files /dev/null and b/Images/CustomEditor.gif differ
diff --git a/Images/RealTimeColorChange.gif b/Images/RealTimeColorChange.gif
new file mode 100644
index 0000000..de9a12f
Binary files /dev/null and b/Images/RealTimeColorChange.gif differ
diff --git a/ProjectSettings/PresetManager.asset b/ProjectSettings/PresetManager.asset
index 820e662..3ff1177 100644
--- a/ProjectSettings/PresetManager.asset
+++ b/ProjectSettings/PresetManager.asset
@@ -25,3 +25,11 @@ PresetManager:
defaultPresets:
- m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9,
type: 2}
+ - type:
+ m_NativeTypeID: 114
+ m_ManagedTypePPtr: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c,
+ type: 3}
+ m_ManagedTypeFallback:
+ defaultPresets:
+ - m_Preset: {fileID: 2655988077585873504, guid: f277a7e23d96419409f7b9e38421a59d,
+ type: 2}
diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset
index 490788e..a73720b 100644
--- a/ProjectSettings/ProjectSettings.asset
+++ b/ProjectSettings/ProjectSettings.asset
@@ -12,8 +12,8 @@ PlayerSettings:
targetDevice: 2
useOnDemandResources: 0
accelerometerFrequency: 60
- companyName: DefaultCompany
- productName: Unity-Set-Global-UI-Text-Font
+ companyName: GlassToeStudio
+ productName: UnityGlobalTextSystem
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset
index b9320b3..a554813 100644
--- a/ProjectSettings/QualitySettings.asset
+++ b/ProjectSettings/QualitySettings.asset
@@ -174,17 +174,4 @@ QualitySettings:
asyncUploadBufferSize: 4
resolutionScalingFixedDPIFactor: 1
excludedTargetPlatforms: []
- m_PerPlatformDefaultQuality:
- Android: 2
- Nintendo 3DS: 5
- Nintendo Switch: 5
- PS4: 5
- PSP2: 2
- Standalone: 5
- Tizen: 2
- WebGL: 3
- WiiU: 5
- Windows Store Apps: 5
- XboxOne: 5
- iPhone: 2
- tvOS: 2
+ m_PerPlatformDefaultQuality: {}
diff --git a/README.md b/README.md
index 24d1c70..4e21245 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
-# Unity-Set-Global-UI-Text-Font
+# Unity Global Text System
+
+---
---
@@ -14,7 +16,7 @@ When a new UI Text (even if the Text is a Child, ex: Button) it will have the fo
## Getting Started
---
* Select a Font that is in your project to be the Global Font.
- * This can be set from **"Global Font/Settings"**
+ * This can be set from **"Global Text System/Settings"**
* Now, when a UI Text is added, it will have this font.
**Additional Options**
@@ -26,19 +28,49 @@ When a new UI Text (even if the Text is a Child, ex: Button) it will have the fo
- Add New Text With Your Font:
-
+ Add New Text With Your Font:
+
+
+---
+
+
+
+
+
+
+
+ Select any property to override via the custom editor:
+
+
+---
+
+
+
+
-
+
+ Update All Text
+
+---
- Update All Text
-
+
+
-
+
+
+ See changes in real-time
+
+
+---
+
+
+
+
+
### Prerequisites
@@ -55,7 +87,7 @@ If contributing, be sure to have `git` installed.
### Installing
---
-To use the project, all you need is to [Download the latest release](https://github.com/GlassToeStudio/Unity-Set-Global-UI-Text-Font/releases) and import the package into your Unity project.
+To use the project, all you need is to [Download the latest release](https://github.com/GlassToeStudio/UnityGlobalTextSystem/releases) and import the package into your Unity project.
Alternately you can Clone the repo using: