├── .gitignore ├── Assets ├── Items.meta ├── Items │ ├── Item_Consumable_HealthPotion.asset │ ├── Item_Consumable_HealthPotion.asset.meta │ ├── Item_Consumable_ManaPotion.asset │ └── Item_Consumable_ManaPotion.asset.meta ├── Prefabs.meta ├── Prefabs │ ├── ItemCanvas.prefab │ ├── ItemCanvas.prefab.meta │ ├── TooltipPopup.prefab │ └── TooltipPopup.prefab.meta ├── Rarities.meta ├── Rarities │ ├── Rarity_Epic.asset │ ├── Rarity_Epic.asset.meta │ ├── Rarity_Rare.asset │ └── Rarity_Rare.asset.meta ├── Scenes.meta ├── Scenes │ ├── Scene_Main.unity │ └── Scene_Main.unity.meta ├── Scripts.meta ├── Scripts │ ├── Consumable.cs │ ├── Consumable.cs.meta │ ├── Item.cs │ ├── Item.cs.meta │ ├── ItemButton.cs │ ├── ItemButton.cs.meta │ ├── Rarity.cs │ ├── Rarity.cs.meta │ ├── TooltipPopup.cs │ └── TooltipPopup.cs.meta ├── TextMesh Pro.meta └── TextMesh Pro │ ├── Documentation.meta │ ├── Documentation │ ├── TextMesh Pro User Guide 2016.pdf │ └── TextMesh Pro User Guide 2016.pdf.meta │ ├── Fonts.meta │ ├── Fonts │ ├── LiberationSans - OFL.txt │ ├── LiberationSans - OFL.txt.meta │ ├── LiberationSans.ttf │ └── LiberationSans.ttf.meta │ ├── Resources.meta │ ├── Resources │ ├── Fonts & Materials.meta │ ├── Fonts & Materials │ │ ├── LiberationSans SDF - Drop Shadow.mat │ │ ├── LiberationSans SDF - Drop Shadow.mat.meta │ │ ├── LiberationSans SDF - Fallback.asset │ │ ├── LiberationSans SDF - Fallback.asset.meta │ │ ├── LiberationSans SDF - Outline.mat │ │ ├── LiberationSans SDF - Outline.mat.meta │ │ ├── LiberationSans SDF.asset │ │ └── LiberationSans SDF.asset.meta │ ├── LineBreaking Following Characters.txt │ ├── LineBreaking Following Characters.txt.meta │ ├── LineBreaking Leading Characters.txt │ ├── LineBreaking Leading Characters.txt.meta │ ├── Shaders.meta │ ├── Shaders │ │ ├── TMP_Bitmap-Custom-Atlas.shader │ │ ├── TMP_Bitmap-Custom-Atlas.shader.meta │ │ ├── TMP_Bitmap-Mobile.shader │ │ ├── TMP_Bitmap-Mobile.shader.meta │ │ ├── TMP_Bitmap.shader │ │ ├── TMP_Bitmap.shader.meta │ │ ├── TMP_SDF Overlay.shader │ │ ├── TMP_SDF Overlay.shader.meta │ │ ├── TMP_SDF-Mobile Masking.shader │ │ ├── TMP_SDF-Mobile Masking.shader.meta │ │ ├── TMP_SDF-Mobile Overlay.shader │ │ ├── TMP_SDF-Mobile Overlay.shader.meta │ │ ├── TMP_SDF-Mobile.shader │ │ ├── TMP_SDF-Mobile.shader.meta │ │ ├── TMP_SDF-Surface-Mobile.shader │ │ ├── TMP_SDF-Surface-Mobile.shader.meta │ │ ├── TMP_SDF-Surface.shader │ │ ├── TMP_SDF-Surface.shader.meta │ │ ├── TMP_SDF.shader │ │ ├── TMP_SDF.shader.meta │ │ ├── TMP_Sprite.shader │ │ ├── TMP_Sprite.shader.meta │ │ ├── TMPro.cginc │ │ ├── TMPro.cginc.meta │ │ ├── TMPro_Properties.cginc │ │ ├── TMPro_Properties.cginc.meta │ │ ├── TMPro_Surface.cginc │ │ └── TMPro_Surface.cginc.meta │ ├── Sprite Assets.meta │ ├── Sprite Assets │ │ ├── EmojiOne.asset │ │ └── EmojiOne.asset.meta │ ├── Style Sheets.meta │ ├── Style Sheets │ │ ├── Default Style Sheet.asset │ │ └── Default Style Sheet.asset.meta │ ├── TMP Settings.asset │ └── TMP Settings.asset.meta │ ├── Sprites.meta │ └── Sprites │ ├── EmojiOne Attribution.txt │ ├── EmojiOne Attribution.txt.meta │ ├── EmojiOne.json │ ├── EmojiOne.json.meta │ ├── EmojiOne.png │ └── EmojiOne.png.meta ├── LICENSE ├── Logs └── Packages-Update.log ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | # Visual Studio cache directory 9 | .vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | *.opendb 26 | 27 | # Unity3D generated meta files 28 | *.pidb.meta 29 | *.pdb.meta 30 | 31 | # Unity3D Generated File On Crash Reports 32 | sysinfo.txt 33 | 34 | # Builds 35 | *.apk 36 | *.unitypackage 37 | -------------------------------------------------------------------------------- /Assets/Items.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2ae9f7c041a22544b5dd1a80fe79624 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Items/Item_Consumable_HealthPotion.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 7ed9f560f02ab2b4894d356dd3a10343, type: 3} 13 | m_Name: Item_Consumable_HealthPotion 14 | m_EditorClassIdentifier: 15 | name: Health Potion 16 | sellPrice: 10 17 | rarity: {fileID: 11400000, guid: a5cfab54d6abfd242b0372b281eb602b, type: 2} 18 | useText: Heals the player. 19 | -------------------------------------------------------------------------------- /Assets/Items/Item_Consumable_HealthPotion.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 577cf2632954fde44968ff81b4d81df8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Items/Item_Consumable_ManaPotion.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 7ed9f560f02ab2b4894d356dd3a10343, type: 3} 13 | m_Name: Item_Consumable_ManaPotion 14 | m_EditorClassIdentifier: 15 | name: Mana Potion 16 | sellPrice: 300 17 | rarity: {fileID: 11400000, guid: 35f08bce9e62807488cb1932e2a0174e, type: 2} 18 | useText: Something else. 19 | -------------------------------------------------------------------------------- /Assets/Items/Item_Consumable_ManaPotion.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1dfb8f6ffff441345ab328046e56d45a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80fdc76db67a1ca4d947e9f9f6c77471 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/ItemCanvas.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &7598714679162978202 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 7598714679162978206} 12 | - component: {fileID: 7598714679162978205} 13 | - component: {fileID: 7598714679162978204} 14 | - component: {fileID: 7598714679162978203} 15 | m_Layer: 5 16 | m_Name: ItemCanvas 17 | m_TagString: Untagged 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!224 &7598714679162978206 23 | RectTransform: 24 | m_ObjectHideFlags: 0 25 | m_CorrespondingSourceObject: {fileID: 0} 26 | m_PrefabInstance: {fileID: 0} 27 | m_PrefabAsset: {fileID: 0} 28 | m_GameObject: {fileID: 7598714679162978202} 29 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 30 | m_LocalPosition: {x: 0, y: 0, z: 0} 31 | m_LocalScale: {x: 0, y: 0, z: 0} 32 | m_Children: [] 33 | m_Father: {fileID: 0} 34 | m_RootOrder: 0 35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 36 | m_AnchorMin: {x: 0, y: 0} 37 | m_AnchorMax: {x: 0, y: 0} 38 | m_AnchoredPosition: {x: 0, y: 0} 39 | m_SizeDelta: {x: 0, y: 0} 40 | m_Pivot: {x: 0, y: 0} 41 | --- !u!223 &7598714679162978205 42 | Canvas: 43 | m_ObjectHideFlags: 0 44 | m_CorrespondingSourceObject: {fileID: 0} 45 | m_PrefabInstance: {fileID: 0} 46 | m_PrefabAsset: {fileID: 0} 47 | m_GameObject: {fileID: 7598714679162978202} 48 | m_Enabled: 1 49 | serializedVersion: 3 50 | m_RenderMode: 0 51 | m_Camera: {fileID: 0} 52 | m_PlaneDistance: 100 53 | m_PixelPerfect: 0 54 | m_ReceivesEvents: 1 55 | m_OverrideSorting: 0 56 | m_OverridePixelPerfect: 0 57 | m_SortingBucketNormalizedSize: 0 58 | m_AdditionalShaderChannelsFlag: 0 59 | m_SortingLayerID: 0 60 | m_SortingOrder: 250 61 | m_TargetDisplay: 0 62 | --- !u!114 &7598714679162978204 63 | MonoBehaviour: 64 | m_ObjectHideFlags: 0 65 | m_CorrespondingSourceObject: {fileID: 0} 66 | m_PrefabInstance: {fileID: 0} 67 | m_PrefabAsset: {fileID: 0} 68 | m_GameObject: {fileID: 7598714679162978202} 69 | m_Enabled: 1 70 | m_EditorHideFlags: 0 71 | m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} 72 | m_Name: 73 | m_EditorClassIdentifier: 74 | m_UiScaleMode: 1 75 | m_ReferencePixelsPerUnit: 100 76 | m_ScaleFactor: 1 77 | m_ReferenceResolution: {x: 1920, y: 1080} 78 | m_ScreenMatchMode: 0 79 | m_MatchWidthOrHeight: 1 80 | m_PhysicalUnit: 3 81 | m_FallbackScreenDPI: 96 82 | m_DefaultSpriteDPI: 96 83 | m_DynamicPixelsPerUnit: 1 84 | --- !u!114 &7598714679162978203 85 | MonoBehaviour: 86 | m_ObjectHideFlags: 0 87 | m_CorrespondingSourceObject: {fileID: 0} 88 | m_PrefabInstance: {fileID: 0} 89 | m_PrefabAsset: {fileID: 0} 90 | m_GameObject: {fileID: 7598714679162978202} 91 | m_Enabled: 1 92 | m_EditorHideFlags: 0 93 | m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} 94 | m_Name: 95 | m_EditorClassIdentifier: 96 | m_IgnoreReversedGraphics: 1 97 | m_BlockingObjects: 0 98 | m_BlockingMask: 99 | serializedVersion: 2 100 | m_Bits: 4294967295 101 | -------------------------------------------------------------------------------- /Assets/Prefabs/ItemCanvas.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3683cb690c686d147a933828e657ee39 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/TooltipPopup.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 599fc18ab47d2de4f944bc0b111cfb77 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Rarities.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 682faff30d134f34083cf3fa1e839f49 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Rarities/Rarity_Epic.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 931570338521e2f47bd71085d740e70c, type: 3} 13 | m_Name: Rarity_Epic 14 | m_EditorClassIdentifier: 15 | name: Epic 16 | textColour: {r: 0.73223996, g: 0.007843137, b: 0.94509804, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/Rarities/Rarity_Epic.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35f08bce9e62807488cb1932e2a0174e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Rarities/Rarity_Rare.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 931570338521e2f47bd71085d740e70c, type: 3} 13 | m_Name: Rarity_Rare 14 | m_EditorClassIdentifier: 15 | name: Rare 16 | textColour: {r: 0.007843137, g: 0.30301324, b: 0.94509804, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/Rarities/Rarity_Rare.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5cfab54d6abfd242b0372b281eb602b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 090f5edd06a91b145bf806f34b98d1a7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Scene_Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37c5e68c8c01c304aac3b4162edc687d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Consumable.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | using UnityEngine; 3 | 4 | namespace DapperDino.TooltipUI 5 | { 6 | [CreateAssetMenu(fileName = "New Consumable", menuName = "Items/Consumable")] 7 | public class Consumable : Item 8 | { 9 | [SerializeField] private Rarity rarity; 10 | [SerializeField] private string useText = "Something"; 11 | 12 | public Rarity Rarity { get { return rarity; } } 13 | 14 | public override string ColouredName 15 | { 16 | get 17 | { 18 | string hexColour = ColorUtility.ToHtmlStringRGB(rarity.TextColour); 19 | return $"{Name}"; 20 | } 21 | } 22 | 23 | public override string GetTooltipInfoText() 24 | { 25 | StringBuilder builder = new StringBuilder(); 26 | 27 | builder.Append(Rarity.Name).AppendLine(); 28 | builder.Append("Use: ").Append(useText).Append("").AppendLine(); 29 | builder.Append("Sell Price: ").Append(SellPrice).Append(" Gold"); 30 | 31 | return builder.ToString(); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Assets/Scripts/Consumable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ed9f560f02ab2b4894d356dd3a10343 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Item.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.TooltipUI 4 | { 5 | public abstract class Item : ScriptableObject 6 | { 7 | [SerializeField] private new string name; 8 | [SerializeField] private int sellPrice; 9 | 10 | public string Name { get { return name; } } 11 | public abstract string ColouredName { get; } 12 | public int SellPrice { get { return sellPrice; } } 13 | 14 | public abstract string GetTooltipInfoText(); 15 | } 16 | } -------------------------------------------------------------------------------- /Assets/Scripts/Item.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15c4e74a2d1b8da42b8a5e741d3542c8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/ItemButton.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.EventSystems; 5 | 6 | namespace DapperDino.TooltipUI 7 | { 8 | public class ItemButton : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler 9 | { 10 | [SerializeField] private TooltipPopup tooltipPopup; 11 | [SerializeField] private Item item; 12 | 13 | public void OnPointerEnter(PointerEventData eventData) 14 | { 15 | tooltipPopup.DisplayInfo(item); 16 | } 17 | 18 | public void OnPointerExit(PointerEventData eventData) 19 | { 20 | tooltipPopup.HideInfo(); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/Scripts/ItemButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b477e4a70f81bda42bb5ceb344346987 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Rarity.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.TooltipUI 4 | { 5 | [CreateAssetMenu] 6 | public class Rarity : ScriptableObject 7 | { 8 | [SerializeField] private new string name; 9 | [SerializeField] private Color textColour; 10 | 11 | public string Name { get { return name; } } 12 | public Color TextColour { get { return textColour; } } 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/Scripts/Rarity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 931570338521e2f47bd71085d740e70c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/TooltipPopup.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using TMPro; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | 8 | namespace DapperDino.TooltipUI 9 | { 10 | public class TooltipPopup : MonoBehaviour 11 | { 12 | [SerializeField] private GameObject popupCanvasObject; 13 | [SerializeField] private RectTransform popupObject; 14 | [SerializeField] private TextMeshProUGUI infoText; 15 | [SerializeField] private Vector3 offset; 16 | [SerializeField] private float padding; 17 | 18 | private Canvas popupCanvas; 19 | 20 | private void Awake() 21 | { 22 | popupCanvas = popupCanvasObject.GetComponent(); 23 | } 24 | 25 | private void Update() 26 | { 27 | FollowCursor(); 28 | } 29 | 30 | private void FollowCursor() 31 | { 32 | if (!popupCanvasObject.activeSelf) { return; } 33 | 34 | Vector3 newPos = Input.mousePosition + offset; 35 | newPos.z = 0f; 36 | float rightEdgeToScreenEdgeDistance = Screen.width - (newPos.x + popupObject.rect.width * popupCanvas.scaleFactor / 2) - padding; 37 | if (rightEdgeToScreenEdgeDistance < 0) 38 | { 39 | newPos.x += rightEdgeToScreenEdgeDistance; 40 | } 41 | float leftEdgeToScreenEdgeDistance = 0 - (newPos.x - popupObject.rect.width * popupCanvas.scaleFactor / 2) + padding; 42 | if (leftEdgeToScreenEdgeDistance > 0) 43 | { 44 | newPos.x += leftEdgeToScreenEdgeDistance; 45 | } 46 | float topEdgeToScreenEdgeDistance = Screen.height - (newPos.y + popupObject.rect.height * popupCanvas.scaleFactor) - padding; 47 | if (topEdgeToScreenEdgeDistance < 0) 48 | { 49 | newPos.y += topEdgeToScreenEdgeDistance; 50 | } 51 | popupObject.transform.position = newPos; 52 | } 53 | 54 | public void DisplayInfo(Item item) 55 | { 56 | StringBuilder builder = new StringBuilder(); 57 | 58 | builder.Append("").Append(item.ColouredName).Append("").AppendLine(); 59 | builder.Append(item.GetTooltipInfoText()); 60 | 61 | infoText.text = builder.ToString(); 62 | 63 | popupCanvasObject.SetActive(true); 64 | LayoutRebuilder.ForceRebuildLayoutImmediate(popupObject); 65 | } 66 | 67 | public void HideInfo() 68 | { 69 | popupCanvasObject.SetActive(false); 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /Assets/Scripts/TooltipPopup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fef1ee8234fcf74daf478440a98cdba 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f54d1bd14bd3ca042bd867b519fee8cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e7e8f5a82a3a134e91c54efd2274ea9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/Tooltip-UI-Tutorial/6302f16ab109db88637b05f1c5bf0e9fd3d02e94/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b8d251f9af63b746bf2f7ffe00ebb9b 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ab70aee4d56447429c680537fbf93ed 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt: -------------------------------------------------------------------------------- 1 | Digitized data copyright (c) 2010 Google Corporation 2 | with Reserved Font Arimo, Tinos and Cousine. 3 | Copyright (c) 2012 Red Hat, Inc. 4 | with Reserved Font Name Liberation. 5 | 6 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 7 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 8 | 9 | ----------------------------------------------------------- 10 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 11 | ----------------------------------------------------------- 12 | 13 | PREAMBLE 14 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 15 | 16 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 17 | 18 | DEFINITIONS 19 | "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 20 | 21 | "Reserved Font Name" refers to any names specified as such after the copyright statement(s). 22 | 23 | "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). 24 | 25 | "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 26 | 27 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 28 | 29 | PERMISSION & CONDITIONS 30 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 31 | 32 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 33 | 34 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 35 | 36 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 37 | 38 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 39 | 40 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 41 | 42 | TERMINATION 43 | This license becomes null and void if any of the above conditions are not met. 44 | 45 | DISCLAIMER 46 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e59c59b81ab47f9b6ec5781fa725d2c 3 | timeCreated: 1484171296 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/Tooltip-UI-Tutorial/6302f16ab109db88637b05f1c5bf0e9fd3d02e94/Assets/TextMesh Pro/Fonts/LiberationSans.ttf -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3265ab4bf004d28a9537516768c1c75 3 | timeCreated: 1484171297 4 | licenseType: Pro 5 | TrueTypeFontImporter: 6 | serializedVersion: 2 7 | fontSize: 16 8 | forceTextureCase: -2 9 | characterSpacing: 1 10 | characterPadding: 0 11 | includeFontData: 1 12 | use2xBehaviour: 0 13 | fontNames: [] 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 0 17 | userData: 18 | assetBundleName: 19 | assetBundleVariant: 20 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 243e06394e614e5d99fab26083b707fa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 731f1baa9d144a9897cb1d341c2092b8 3 | folderAsset: yes 4 | timeCreated: 1442040525 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Drop Shadow 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON UNDERLAY_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _DiffusePower: 1 55 | - _FaceDilate: 0.1 56 | - _FaceUVSpeedX: 0 57 | - _FaceUVSpeedY: 0 58 | - _GlowInner: 0.05 59 | - _GlowOffset: 0 60 | - _GlowOuter: 0.05 61 | - _GlowPower: 0.75 62 | - _GradientScale: 10 63 | - _LightAngle: 3.1416 64 | - _MaskSoftnessX: 0 65 | - _MaskSoftnessY: 0 66 | - _OutlineSoftness: 0 67 | - _OutlineUVSpeedX: 0 68 | - _OutlineUVSpeedY: 0 69 | - _OutlineWidth: 0.1 70 | - _PerspectiveFilter: 0.875 71 | - _Reflectivity: 10 72 | - _ScaleRatioA: 0.9 73 | - _ScaleRatioB: 0.73125 74 | - _ScaleRatioC: 0.64125 75 | - _ScaleX: 1 76 | - _ScaleY: 1 77 | - _ShaderFlags: 0 78 | - _Sharpness: 0 79 | - _SpecularPower: 2 80 | - _Stencil: 0 81 | - _StencilComp: 8 82 | - _StencilOp: 0 83 | - _StencilReadMask: 255 84 | - _StencilWriteMask: 255 85 | - _TextureHeight: 1024 86 | - _TextureWidth: 1024 87 | - _UnderlayDilate: 0 88 | - _UnderlayOffsetX: 0.5 89 | - _UnderlayOffsetY: -0.5 90 | - _UnderlaySoftness: 0.05 91 | - _VertexOffsetX: 0 92 | - _VertexOffsetY: 0 93 | - _WeightBold: 0.75 94 | - _WeightNormal: 0 95 | m_Colors: 96 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 97 | - _Color: {r: 1, g: 1, b: 1, a: 1} 98 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 99 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 100 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 101 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 102 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 104 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 105 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 106 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 107 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e73a58f6e2794ae7b1b7e50b7fb811b0 3 | timeCreated: 1484172806 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2180264 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF Material 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 1 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailAlbedoMap: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailMask: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _DetailNormalMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _EmissionMap: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _FaceTex: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _MainTex: 51 | m_Texture: {fileID: 28268798066460806} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _MetallicGlossMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | - _OcclusionMap: 59 | m_Texture: {fileID: 0} 60 | m_Scale: {x: 1, y: 1} 61 | m_Offset: {x: 0, y: 0} 62 | - _OutlineTex: 63 | m_Texture: {fileID: 0} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - _ParallaxMap: 67 | m_Texture: {fileID: 0} 68 | m_Scale: {x: 1, y: 1} 69 | m_Offset: {x: 0, y: 0} 70 | m_Floats: 71 | - _Ambient: 0.5 72 | - _Bevel: 0.5 73 | - _BevelClamp: 0 74 | - _BevelOffset: 0 75 | - _BevelRoundness: 0 76 | - _BevelWidth: 0 77 | - _BumpFace: 0 78 | - _BumpOutline: 0 79 | - _BumpScale: 1 80 | - _ColorMask: 15 81 | - _Cutoff: 0.5 82 | - _DetailNormalMapScale: 1 83 | - _Diffuse: 0.5 84 | - _DstBlend: 0 85 | - _FaceDilate: 0 86 | - _FaceUVSpeedX: 0 87 | - _FaceUVSpeedY: 0 88 | - _GlossMapScale: 1 89 | - _Glossiness: 0.5 90 | - _GlossyReflections: 1 91 | - _GlowInner: 0.05 92 | - _GlowOffset: 0 93 | - _GlowOuter: 0.05 94 | - _GlowPower: 0.75 95 | - _GradientScale: 10 96 | - _LightAngle: 3.1416 97 | - _MaskSoftnessX: 0 98 | - _MaskSoftnessY: 0 99 | - _Metallic: 0 100 | - _Mode: 0 101 | - _OcclusionStrength: 1 102 | - _OutlineSoftness: 0 103 | - _OutlineUVSpeedX: 0 104 | - _OutlineUVSpeedY: 0 105 | - _OutlineWidth: 0 106 | - _Parallax: 0.02 107 | - _PerspectiveFilter: 0.875 108 | - _Reflectivity: 10 109 | - _ScaleRatioA: 0.90909094 110 | - _ScaleRatioB: 0.73125 111 | - _ScaleRatioC: 0.7386364 112 | - _ScaleX: 1 113 | - _ScaleY: 1 114 | - _ShaderFlags: 0 115 | - _Sharpness: 0 116 | - _SmoothnessTextureChannel: 0 117 | - _SpecularHighlights: 1 118 | - _SpecularPower: 2 119 | - _SrcBlend: 1 120 | - _Stencil: 0 121 | - _StencilComp: 8 122 | - _StencilOp: 0 123 | - _StencilReadMask: 255 124 | - _StencilWriteMask: 255 125 | - _TextureHeight: 512 126 | - _TextureWidth: 512 127 | - _UVSec: 0 128 | - _UnderlayDilate: 0 129 | - _UnderlayOffsetX: 0 130 | - _UnderlayOffsetY: 0 131 | - _UnderlaySoftness: 0 132 | - _VertexOffsetX: 0 133 | - _VertexOffsetY: 0 134 | - _WeightBold: 0.75 135 | - _WeightNormal: 0 136 | - _ZWrite: 1 137 | m_Colors: 138 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 139 | - _Color: {r: 1, g: 1, b: 1, a: 1} 140 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 141 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 142 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 143 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 144 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 145 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 146 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 147 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 148 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 149 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 150 | --- !u!114 &11400000 151 | MonoBehaviour: 152 | m_ObjectHideFlags: 0 153 | m_CorrespondingSourceObject: {fileID: 0} 154 | m_PrefabInstance: {fileID: 0} 155 | m_PrefabAsset: {fileID: 0} 156 | m_GameObject: {fileID: 0} 157 | m_Enabled: 1 158 | m_EditorHideFlags: 0 159 | m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3} 160 | m_Name: LiberationSans SDF - Fallback 161 | m_EditorClassIdentifier: 162 | hashCode: -1699145518 163 | material: {fileID: 2180264} 164 | materialHashCode: -1183942120 165 | m_Version: 1.1.0 166 | m_SourceFontFileGUID: e3265ab4bf004d28a9537516768c1c75 167 | m_SourceFontFile_EditorRef: {fileID: 12800000, guid: e3265ab4bf004d28a9537516768c1c75, 168 | type: 3} 169 | m_SourceFontFile: {fileID: 12800000, guid: e3265ab4bf004d28a9537516768c1c75, type: 3} 170 | m_AtlasPopulationMode: 1 171 | m_FaceInfo: 172 | m_FamilyName: Liberation Sans 173 | m_StyleName: Regular 174 | m_PointSize: 86 175 | m_Scale: 1 176 | m_LineHeight: 98.8916 177 | m_AscentLine: 77.853516 178 | m_CapLine: 59 179 | m_MeanLine: 45 180 | m_Baseline: 0 181 | m_DescentLine: -18.22461 182 | m_SuperscriptOffset: 77.853516 183 | m_SuperscriptSize: 0.5 184 | m_SubscriptOffset: -18.22461 185 | m_SubscriptSize: 0.5 186 | m_UnderlineOffset: -12.261719 187 | m_UnderlineThickness: 6.298828 188 | m_StrikethroughOffset: 18 189 | m_StrikethroughThickness: 6.298828 190 | m_TabWidth: 24 191 | m_GlyphTable: [] 192 | m_CharacterTable: [] 193 | m_AtlasTextures: 194 | - {fileID: 28268798066460806} 195 | m_AtlasTextureIndex: 0 196 | m_UsedGlyphRects: [] 197 | m_FreeGlyphRects: 198 | - m_X: 0 199 | m_Y: 0 200 | m_Width: 511 201 | m_Height: 511 202 | m_fontInfo: 203 | Name: Liberation Sans 204 | PointSize: 86 205 | Scale: 1 206 | CharacterCount: 250 207 | LineHeight: 98.90625 208 | Baseline: 0 209 | Ascender: 77.84375 210 | CapHeight: 59.1875 211 | Descender: -18.21875 212 | CenterLine: 0 213 | SuperscriptOffset: 77.84375 214 | SubscriptOffset: -12.261719 215 | SubSize: 0.5 216 | Underline: -12.261719 217 | UnderlineThickness: 6.298828 218 | strikethrough: 23.675 219 | strikethroughThickness: 0 220 | TabWidth: 239.0625 221 | Padding: 9 222 | AtlasWidth: 1024 223 | AtlasHeight: 1024 224 | atlas: {fileID: 0} 225 | m_AtlasWidth: 512 226 | m_AtlasHeight: 512 227 | m_AtlasPadding: 9 228 | m_AtlasRenderMode: 4169 229 | m_glyphInfoList: [] 230 | m_KerningTable: 231 | kerningPairs: [] 232 | m_FallbackFontAssetTable: [] 233 | m_CreationSettings: 234 | sourceFontFileName: 235 | sourceFontFileGUID: e3265ab4bf004d28a9537516768c1c75 236 | pointSizeSamplingMode: 0 237 | pointSize: 86 238 | padding: 9 239 | packingMode: 4 240 | atlasWidth: 512 241 | atlasHeight: 512 242 | characterSetSelectionMode: 1 243 | characterSequence: 32 - 126, 160 - 255, 8192 - 8303, 8364, 8482, 9633 244 | referencedFontAssetGUID: 8f586378b4e144a9851e7b34d9b748ee 245 | referencedTextAssetGUID: 246 | fontStyle: 0 247 | fontStyleModifier: 0 248 | renderMode: 4169 249 | includeFontFeatures: 1 250 | m_FontWeightTable: 251 | - regularTypeface: {fileID: 0} 252 | italicTypeface: {fileID: 0} 253 | - regularTypeface: {fileID: 0} 254 | italicTypeface: {fileID: 0} 255 | - regularTypeface: {fileID: 0} 256 | italicTypeface: {fileID: 0} 257 | - regularTypeface: {fileID: 0} 258 | italicTypeface: {fileID: 0} 259 | - regularTypeface: {fileID: 0} 260 | italicTypeface: {fileID: 0} 261 | - regularTypeface: {fileID: 0} 262 | italicTypeface: {fileID: 0} 263 | - regularTypeface: {fileID: 0} 264 | italicTypeface: {fileID: 0} 265 | - regularTypeface: {fileID: 0} 266 | italicTypeface: {fileID: 0} 267 | - regularTypeface: {fileID: 0} 268 | italicTypeface: {fileID: 0} 269 | - regularTypeface: {fileID: 0} 270 | italicTypeface: {fileID: 0} 271 | fontWeights: 272 | - regularTypeface: {fileID: 0} 273 | italicTypeface: {fileID: 0} 274 | - regularTypeface: {fileID: 0} 275 | italicTypeface: {fileID: 0} 276 | - regularTypeface: {fileID: 0} 277 | italicTypeface: {fileID: 0} 278 | - regularTypeface: {fileID: 0} 279 | italicTypeface: {fileID: 0} 280 | - regularTypeface: {fileID: 0} 281 | italicTypeface: {fileID: 0} 282 | - regularTypeface: {fileID: 0} 283 | italicTypeface: {fileID: 0} 284 | - regularTypeface: {fileID: 0} 285 | italicTypeface: {fileID: 0} 286 | - regularTypeface: {fileID: 0} 287 | italicTypeface: {fileID: 0} 288 | - regularTypeface: {fileID: 0} 289 | italicTypeface: {fileID: 0} 290 | - regularTypeface: {fileID: 0} 291 | italicTypeface: {fileID: 0} 292 | normalStyle: 0 293 | normalSpacingOffset: 0 294 | boldStyle: 0.75 295 | boldSpacing: 7 296 | italicStyle: 35 297 | tabSize: 10 298 | --- !u!28 &28268798066460806 299 | Texture2D: 300 | m_ObjectHideFlags: 0 301 | m_CorrespondingSourceObject: {fileID: 0} 302 | m_PrefabInstance: {fileID: 0} 303 | m_PrefabAsset: {fileID: 0} 304 | m_Name: LiberationSans SDF Atlas 305 | m_ImageContentsHash: 306 | serializedVersion: 2 307 | Hash: 00000000000000000000000000000000 308 | m_ForcedFallbackFormat: 4 309 | m_DownscaleFallback: 0 310 | serializedVersion: 2 311 | m_Width: 0 312 | m_Height: 0 313 | m_CompleteImageSize: 0 314 | m_TextureFormat: 1 315 | m_MipCount: 1 316 | m_IsReadable: 1 317 | m_StreamingMipmaps: 0 318 | m_StreamingMipmapsPriority: 0 319 | m_AlphaIsTransparency: 0 320 | m_ImageCount: 1 321 | m_TextureDimension: 2 322 | m_TextureSettings: 323 | serializedVersion: 2 324 | m_FilterMode: 1 325 | m_Aniso: 1 326 | m_MipBias: 0 327 | m_WrapU: 0 328 | m_WrapV: 0 329 | m_WrapW: 0 330 | m_LightmapFormat: 0 331 | m_ColorSpace: 0 332 | image data: 0 333 | _typelessdata: 334 | m_StreamData: 335 | offset: 0 336 | size: 0 337 | path: 338 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e498d1c8094910479dc3e1b768306a4 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Outline 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _FaceDilate: 0.1 55 | - _FaceUVSpeedX: 0 56 | - _FaceUVSpeedY: 0 57 | - _GlowInner: 0.05 58 | - _GlowOffset: 0 59 | - _GlowOuter: 0.05 60 | - _GlowPower: 0.75 61 | - _GradientScale: 10 62 | - _LightAngle: 3.1416 63 | - _MaskSoftnessX: 0 64 | - _MaskSoftnessY: 0 65 | - _OutlineSoftness: 0 66 | - _OutlineUVSpeedX: 0 67 | - _OutlineUVSpeedY: 0 68 | - _OutlineWidth: 0.1 69 | - _PerspectiveFilter: 0.875 70 | - _Reflectivity: 10 71 | - _ScaleRatioA: 0.9 72 | - _ScaleRatioB: 0.73125 73 | - _ScaleRatioC: 0.64125 74 | - _ScaleX: 1 75 | - _ScaleY: 1 76 | - _ShaderFlags: 0 77 | - _Sharpness: 0 78 | - _SpecularPower: 2 79 | - _Stencil: 0 80 | - _StencilComp: 8 81 | - _StencilOp: 0 82 | - _StencilReadMask: 255 83 | - _StencilWriteMask: 255 84 | - _TextureHeight: 1024 85 | - _TextureWidth: 1024 86 | - _UnderlayDilate: 0 87 | - _UnderlayOffsetX: 0 88 | - _UnderlayOffsetY: 0 89 | - _UnderlaySoftness: 0 90 | - _VertexOffsetX: 0 91 | - _VertexOffsetY: 0 92 | - _WeightBold: 0.75 93 | - _WeightNormal: 0 94 | m_Colors: 95 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 96 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 97 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 98 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 99 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 100 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 101 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 102 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 104 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 105 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79459efec17a4d00a321bdcc27bbc385 3 | timeCreated: 1484172856 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f586378b4e144a9851e7b34d9b748ee 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt: -------------------------------------------------------------------------------- 1 | )]}〕〉》」』】〙〗〟’”⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、%,.:;。!?]):;=}¢°"†‡℃〆%,. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fade42e8bc714b018fac513c043d323b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt: -------------------------------------------------------------------------------- 1 | ([{〔〈《「『【〘〖〝‘“⦅«$—…‥〳〴〵\[({£¥"々〇〉》」$⦆¥₩ # -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d82c1b31c7e74239bff1220585707d2b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99f836c9cb9345dba2e72c4a1f2d0695 3 | folderAsset: yes 4 | timeCreated: 1436068007 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Custom-Atlas.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Bitmap Custom Atlas" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _FaceTex ("Font Texture", 2D) = "white" {} 6 | _FaceColor ("Text Color", Color) = (1,1,1,1) 7 | 8 | _VertexOffsetX ("Vertex OffsetX", float) = 0 9 | _VertexOffsetY ("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | _Padding ("Padding", float) = 0 15 | 16 | _StencilComp("Stencil Comparison", Float) = 8 17 | _Stencil("Stencil ID", Float) = 0 18 | _StencilOp("Stencil Operation", Float) = 0 19 | _StencilWriteMask("Stencil Write Mask", Float) = 255 20 | _StencilReadMask("Stencil Read Mask", Float) = 255 21 | 22 | _ColorMask("Color Mask", Float) = 15 23 | } 24 | 25 | SubShader{ 26 | 27 | Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" } 28 | 29 | Stencil 30 | { 31 | Ref[_Stencil] 32 | Comp[_StencilComp] 33 | Pass[_StencilOp] 34 | ReadMask[_StencilReadMask] 35 | WriteMask[_StencilWriteMask] 36 | } 37 | 38 | 39 | Lighting Off 40 | Cull [_CullMode] 41 | ZTest [unity_GUIZTestMode] 42 | ZWrite Off 43 | Fog { Mode Off } 44 | Blend SrcAlpha OneMinusSrcAlpha 45 | ColorMask[_ColorMask] 46 | 47 | Pass { 48 | CGPROGRAM 49 | #pragma vertex vert 50 | #pragma fragment frag 51 | 52 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 53 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 54 | 55 | 56 | #include "UnityCG.cginc" 57 | 58 | struct appdata_t { 59 | float4 vertex : POSITION; 60 | fixed4 color : COLOR; 61 | float2 texcoord0 : TEXCOORD0; 62 | float2 texcoord1 : TEXCOORD1; 63 | }; 64 | 65 | struct v2f { 66 | float4 vertex : SV_POSITION; 67 | fixed4 color : COLOR; 68 | float2 texcoord0 : TEXCOORD0; 69 | float2 texcoord1 : TEXCOORD1; 70 | float4 mask : TEXCOORD2; 71 | }; 72 | 73 | uniform sampler2D _MainTex; 74 | uniform sampler2D _FaceTex; 75 | uniform float4 _FaceTex_ST; 76 | uniform fixed4 _FaceColor; 77 | 78 | uniform float _VertexOffsetX; 79 | uniform float _VertexOffsetY; 80 | uniform float4 _ClipRect; 81 | uniform float _MaskSoftnessX; 82 | uniform float _MaskSoftnessY; 83 | 84 | float2 UnpackUV(float uv) 85 | { 86 | float2 output; 87 | output.x = floor(uv / 4096); 88 | output.y = uv - 4096 * output.x; 89 | 90 | return output * 0.001953125; 91 | } 92 | 93 | v2f vert (appdata_t v) 94 | { 95 | float4 vert = v.vertex; 96 | vert.x += _VertexOffsetX; 97 | vert.y += _VertexOffsetY; 98 | 99 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 100 | 101 | float4 vPosition = UnityPixelSnap(UnityObjectToClipPos(vert)); 102 | 103 | fixed4 faceColor = v.color; 104 | faceColor *= _FaceColor; 105 | 106 | v2f OUT; 107 | OUT.vertex = vPosition; 108 | OUT.color = faceColor; 109 | OUT.texcoord0 = v.texcoord0; 110 | OUT.texcoord1 = TRANSFORM_TEX(UnpackUV(v.texcoord1), _FaceTex); 111 | float2 pixelSize = vPosition.w; 112 | pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 113 | 114 | // Clamp _ClipRect to 16bit. 115 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 116 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 117 | 118 | return OUT; 119 | } 120 | 121 | fixed4 frag (v2f IN) : SV_Target 122 | { 123 | fixed4 color = tex2D(_MainTex, IN.texcoord0) * tex2D(_FaceTex, IN.texcoord1) * IN.color; 124 | 125 | // Alternative implementation to UnityGet2DClipping with support for softness. 126 | #if UNITY_UI_CLIP_RECT 127 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 128 | color *= m.x * m.y; 129 | #endif 130 | 131 | #if UNITY_UI_ALPHACLIP 132 | clip(color.a - 0.001); 133 | #endif 134 | 135 | return color; 136 | } 137 | ENDCG 138 | } 139 | } 140 | 141 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 142 | } 143 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Custom-Atlas.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48bb5f55d8670e349b6e614913f9d910 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Mobile.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Mobile/Bitmap" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _Color ("Text Color", Color) = (1,1,1,1) 6 | _DiffusePower ("Diffuse Power", Range(1.0,4.0)) = 1.0 7 | 8 | _VertexOffsetX("Vertex OffsetX", float) = 0 9 | _VertexOffsetY("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | 15 | _StencilComp("Stencil Comparison", Float) = 8 16 | _Stencil("Stencil ID", Float) = 0 17 | _StencilOp("Stencil Operation", Float) = 0 18 | _StencilWriteMask("Stencil Write Mask", Float) = 255 19 | _StencilReadMask("Stencil Read Mask", Float) = 255 20 | 21 | _ColorMask("Color Mask", Float) = 15 22 | } 23 | 24 | SubShader { 25 | 26 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 27 | 28 | Stencil 29 | { 30 | Ref[_Stencil] 31 | Comp[_StencilComp] 32 | Pass[_StencilOp] 33 | ReadMask[_StencilReadMask] 34 | WriteMask[_StencilWriteMask] 35 | } 36 | 37 | 38 | Lighting Off 39 | Cull Off 40 | ZTest [unity_GUIZTestMode] 41 | ZWrite Off 42 | Fog { Mode Off } 43 | Blend SrcAlpha OneMinusSrcAlpha 44 | ColorMask[_ColorMask] 45 | 46 | Pass { 47 | CGPROGRAM 48 | #pragma vertex vert 49 | #pragma fragment frag 50 | #pragma fragmentoption ARB_precision_hint_fastest 51 | 52 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 53 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 54 | 55 | 56 | #include "UnityCG.cginc" 57 | 58 | struct appdata_t { 59 | float4 vertex : POSITION; 60 | fixed4 color : COLOR; 61 | float2 texcoord0 : TEXCOORD0; 62 | float2 texcoord1 : TEXCOORD1; 63 | }; 64 | 65 | struct v2f { 66 | float4 vertex : POSITION; 67 | fixed4 color : COLOR; 68 | float2 texcoord0 : TEXCOORD0; 69 | float4 mask : TEXCOORD2; 70 | }; 71 | 72 | sampler2D _MainTex; 73 | fixed4 _Color; 74 | float _DiffusePower; 75 | 76 | uniform float _VertexOffsetX; 77 | uniform float _VertexOffsetY; 78 | uniform float4 _ClipRect; 79 | uniform float _MaskSoftnessX; 80 | uniform float _MaskSoftnessY; 81 | 82 | v2f vert (appdata_t v) 83 | { 84 | v2f OUT; 85 | float4 vert = v.vertex; 86 | vert.x += _VertexOffsetX; 87 | vert.y += _VertexOffsetY; 88 | 89 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 90 | 91 | OUT.vertex = UnityPixelSnap(UnityObjectToClipPos(vert)); 92 | OUT.color = v.color; 93 | OUT.color *= _Color; 94 | OUT.color.rgb *= _DiffusePower; 95 | OUT.texcoord0 = v.texcoord0; 96 | 97 | float2 pixelSize = OUT.vertex.w; 98 | //pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 99 | 100 | // Clamp _ClipRect to 16bit. 101 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 102 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 103 | 104 | return OUT; 105 | } 106 | 107 | fixed4 frag (v2f IN) : COLOR 108 | { 109 | fixed4 color = fixed4(IN.color.rgb, IN.color.a * tex2D(_MainTex, IN.texcoord0).a); 110 | 111 | // Alternative implementation to UnityGet2DClipping with support for softness. 112 | #if UNITY_UI_CLIP_RECT 113 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 114 | color *= m.x * m.y; 115 | #endif 116 | 117 | #if UNITY_UI_ALPHACLIP 118 | clip(color.a - 0.001); 119 | #endif 120 | 121 | return color; 122 | } 123 | ENDCG 124 | } 125 | } 126 | 127 | SubShader { 128 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 129 | Lighting Off Cull Off ZTest Always ZWrite Off Fog { Mode Off } 130 | Blend SrcAlpha OneMinusSrcAlpha 131 | BindChannels { 132 | Bind "Color", color 133 | Bind "Vertex", vertex 134 | Bind "TexCoord", texcoord0 135 | } 136 | Pass { 137 | SetTexture [_MainTex] { 138 | constantColor [_Color] combine constant * primary, constant * texture 139 | } 140 | } 141 | } 142 | 143 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 144 | } 145 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e3b057af24249748ff873be7fafee47 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Bitmap" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _FaceTex ("Font Texture", 2D) = "white" {} 6 | _FaceColor ("Text Color", Color) = (1,1,1,1) 7 | 8 | _VertexOffsetX ("Vertex OffsetX", float) = 0 9 | _VertexOffsetY ("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | 15 | _StencilComp("Stencil Comparison", Float) = 8 16 | _Stencil("Stencil ID", Float) = 0 17 | _StencilOp("Stencil Operation", Float) = 0 18 | _StencilWriteMask("Stencil Write Mask", Float) = 255 19 | _StencilReadMask("Stencil Read Mask", Float) = 255 20 | 21 | _ColorMask("Color Mask", Float) = 15 22 | } 23 | 24 | SubShader{ 25 | 26 | Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" } 27 | 28 | Stencil 29 | { 30 | Ref[_Stencil] 31 | Comp[_StencilComp] 32 | Pass[_StencilOp] 33 | ReadMask[_StencilReadMask] 34 | WriteMask[_StencilWriteMask] 35 | } 36 | 37 | 38 | Lighting Off 39 | Cull [_CullMode] 40 | ZTest [unity_GUIZTestMode] 41 | ZWrite Off 42 | Fog { Mode Off } 43 | Blend SrcAlpha OneMinusSrcAlpha 44 | ColorMask[_ColorMask] 45 | 46 | Pass { 47 | CGPROGRAM 48 | #pragma vertex vert 49 | #pragma fragment frag 50 | 51 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 52 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 53 | 54 | 55 | #include "UnityCG.cginc" 56 | 57 | struct appdata_t { 58 | float4 vertex : POSITION; 59 | fixed4 color : COLOR; 60 | float2 texcoord0 : TEXCOORD0; 61 | float2 texcoord1 : TEXCOORD1; 62 | }; 63 | 64 | struct v2f { 65 | float4 vertex : SV_POSITION; 66 | fixed4 color : COLOR; 67 | float2 texcoord0 : TEXCOORD0; 68 | float2 texcoord1 : TEXCOORD1; 69 | float4 mask : TEXCOORD2; 70 | }; 71 | 72 | uniform sampler2D _MainTex; 73 | uniform sampler2D _FaceTex; 74 | uniform float4 _FaceTex_ST; 75 | uniform fixed4 _FaceColor; 76 | 77 | uniform float _VertexOffsetX; 78 | uniform float _VertexOffsetY; 79 | uniform float4 _ClipRect; 80 | uniform float _MaskSoftnessX; 81 | uniform float _MaskSoftnessY; 82 | 83 | float2 UnpackUV(float uv) 84 | { 85 | float2 output; 86 | output.x = floor(uv / 4096); 87 | output.y = uv - 4096 * output.x; 88 | 89 | return output * 0.001953125; 90 | } 91 | 92 | v2f vert (appdata_t v) 93 | { 94 | float4 vert = v.vertex; 95 | vert.x += _VertexOffsetX; 96 | vert.y += _VertexOffsetY; 97 | 98 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 99 | 100 | float4 vPosition = UnityPixelSnap(UnityObjectToClipPos(vert)); 101 | 102 | fixed4 faceColor = v.color; 103 | faceColor *= _FaceColor; 104 | 105 | v2f OUT; 106 | OUT.vertex = vPosition; 107 | OUT.color = faceColor; 108 | OUT.texcoord0 = v.texcoord0; 109 | OUT.texcoord1 = TRANSFORM_TEX(UnpackUV(v.texcoord1), _FaceTex); 110 | float2 pixelSize = vPosition.w; 111 | pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 112 | 113 | // Clamp _ClipRect to 16bit. 114 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 115 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 116 | 117 | return OUT; 118 | } 119 | 120 | fixed4 frag (v2f IN) : SV_Target 121 | { 122 | fixed4 color = tex2D(_MainTex, IN.texcoord0); 123 | color = fixed4 (tex2D(_FaceTex, IN.texcoord1).rgb * IN.color.rgb, IN.color.a * color.a); 124 | 125 | // Alternative implementation to UnityGet2DClipping with support for softness. 126 | #if UNITY_UI_CLIP_RECT 127 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 128 | color *= m.x * m.y; 129 | #endif 130 | 131 | #if UNITY_UI_ALPHACLIP 132 | clip(color.a - 0.001); 133 | #endif 134 | 135 | return color; 136 | } 137 | ENDCG 138 | } 139 | } 140 | 141 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 142 | } 143 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 128e987d567d4e2c824d754223b3f3b0 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF Overlay.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Distance Field Overlay" { 2 | 3 | Properties { 4 | _FaceTex ("Face Texture", 2D) = "white" {} 5 | _FaceUVSpeedX ("Face UV Speed X", Range(-5, 5)) = 0.0 6 | _FaceUVSpeedY ("Face UV Speed Y", Range(-5, 5)) = 0.0 7 | _FaceColor ("Face Color", Color) = (1,1,1,1) 8 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 9 | 10 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 11 | _OutlineTex ("Outline Texture", 2D) = "white" {} 12 | _OutlineUVSpeedX ("Outline UV Speed X", Range(-5, 5)) = 0.0 13 | _OutlineUVSpeedY ("Outline UV Speed Y", Range(-5, 5)) = 0.0 14 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 15 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 16 | 17 | _Bevel ("Bevel", Range(0,1)) = 0.5 18 | _BevelOffset ("Bevel Offset", Range(-0.5,0.5)) = 0 19 | _BevelWidth ("Bevel Width", Range(-.5,0.5)) = 0 20 | _BevelClamp ("Bevel Clamp", Range(0,1)) = 0 21 | _BevelRoundness ("Bevel Roundness", Range(0,1)) = 0 22 | 23 | _LightAngle ("Light Angle", Range(0.0, 6.2831853)) = 3.1416 24 | _SpecularColor ("Specular", Color) = (1,1,1,1) 25 | _SpecularPower ("Specular", Range(0,4)) = 2.0 26 | _Reflectivity ("Reflectivity", Range(5.0,15.0)) = 10 27 | _Diffuse ("Diffuse", Range(0,1)) = 0.5 28 | _Ambient ("Ambient", Range(1,0)) = 0.5 29 | 30 | _BumpMap ("Normal map", 2D) = "bump" {} 31 | _BumpOutline ("Bump Outline", Range(0,1)) = 0 32 | _BumpFace ("Bump Face", Range(0,1)) = 0 33 | 34 | _ReflectFaceColor ("Reflection Color", Color) = (0,0,0,1) 35 | _ReflectOutlineColor("Reflection Color", Color) = (0,0,0,1) 36 | _Cube ("Reflection Cubemap", Cube) = "black" { /* TexGen CubeReflect */ } 37 | _EnvMatrixRotation ("Texture Rotation", vector) = (0, 0, 0, 0) 38 | 39 | 40 | _UnderlayColor ("Border Color", Color) = (0,0,0, 0.5) 41 | _UnderlayOffsetX ("Border OffsetX", Range(-1,1)) = 0 42 | _UnderlayOffsetY ("Border OffsetY", Range(-1,1)) = 0 43 | _UnderlayDilate ("Border Dilate", Range(-1,1)) = 0 44 | _UnderlaySoftness ("Border Softness", Range(0,1)) = 0 45 | 46 | _GlowColor ("Color", Color) = (0, 1, 0, 0.5) 47 | _GlowOffset ("Offset", Range(-1,1)) = 0 48 | _GlowInner ("Inner", Range(0,1)) = 0.05 49 | _GlowOuter ("Outer", Range(0,1)) = 0.05 50 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 51 | 52 | _WeightNormal ("Weight Normal", float) = 0 53 | _WeightBold ("Weight Bold", float) = 0.5 54 | 55 | _ShaderFlags ("Flags", float) = 0 56 | _ScaleRatioA ("Scale RatioA", float) = 1 57 | _ScaleRatioB ("Scale RatioB", float) = 1 58 | _ScaleRatioC ("Scale RatioC", float) = 1 59 | 60 | _MainTex ("Font Atlas", 2D) = "white" {} 61 | _TextureWidth ("Texture Width", float) = 512 62 | _TextureHeight ("Texture Height", float) = 512 63 | _GradientScale ("Gradient Scale", float) = 5.0 64 | _ScaleX ("Scale X", float) = 1.0 65 | _ScaleY ("Scale Y", float) = 1.0 66 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 67 | _Sharpness ("Sharpness", Range(-1,1)) = 0 68 | 69 | _VertexOffsetX ("Vertex OffsetX", float) = 0 70 | _VertexOffsetY ("Vertex OffsetY", float) = 0 71 | 72 | _MaskCoord ("Mask Coordinates", vector) = (0, 0, 32767, 32767) 73 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 74 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 75 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 76 | 77 | _StencilComp ("Stencil Comparison", Float) = 8 78 | _Stencil ("Stencil ID", Float) = 0 79 | _StencilOp ("Stencil Operation", Float) = 0 80 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 81 | _StencilReadMask ("Stencil Read Mask", Float) = 255 82 | 83 | _ColorMask ("Color Mask", Float) = 15 84 | } 85 | 86 | SubShader { 87 | 88 | Tags 89 | { 90 | "Queue"="Overlay" 91 | "IgnoreProjector"="True" 92 | "RenderType"="Transparent" 93 | } 94 | 95 | Stencil 96 | { 97 | Ref [_Stencil] 98 | Comp [_StencilComp] 99 | Pass [_StencilOp] 100 | ReadMask [_StencilReadMask] 101 | WriteMask [_StencilWriteMask] 102 | } 103 | 104 | Cull [_CullMode] 105 | ZWrite Off 106 | Lighting Off 107 | Fog { Mode Off } 108 | ZTest Always 109 | Blend One OneMinusSrcAlpha 110 | ColorMask [_ColorMask] 111 | 112 | Pass { 113 | CGPROGRAM 114 | #pragma target 3.0 115 | #pragma vertex VertShader 116 | #pragma fragment PixShader 117 | #pragma shader_feature __ BEVEL_ON 118 | #pragma shader_feature __ UNDERLAY_ON UNDERLAY_INNER 119 | #pragma shader_feature __ GLOW_ON 120 | 121 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 122 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 123 | 124 | 125 | #include "UnityCG.cginc" 126 | #include "UnityUI.cginc" 127 | #include "TMPro_Properties.cginc" 128 | #include "TMPro.cginc" 129 | 130 | struct vertex_t { 131 | float4 position : POSITION; 132 | float3 normal : NORMAL; 133 | fixed4 color : COLOR; 134 | float2 texcoord0 : TEXCOORD0; 135 | float2 texcoord1 : TEXCOORD1; 136 | }; 137 | 138 | 139 | struct pixel_t { 140 | float4 position : SV_POSITION; 141 | fixed4 color : COLOR; 142 | float2 atlas : TEXCOORD0; // Atlas 143 | float4 param : TEXCOORD1; // alphaClip, scale, bias, weight 144 | float4 mask : TEXCOORD2; // Position in object space(xy), pixel Size(zw) 145 | float3 viewDir : TEXCOORD3; 146 | 147 | #if (UNDERLAY_ON || UNDERLAY_INNER) 148 | float4 texcoord2 : TEXCOORD4; // u,v, scale, bias 149 | fixed4 underlayColor : COLOR1; 150 | #endif 151 | float4 textures : TEXCOORD5; 152 | }; 153 | 154 | // Used by Unity internally to handle Texture Tiling and Offset. 155 | float4 _FaceTex_ST; 156 | float4 _OutlineTex_ST; 157 | 158 | pixel_t VertShader(vertex_t input) 159 | { 160 | float bold = step(input.texcoord1.y, 0); 161 | 162 | float4 vert = input.position; 163 | vert.x += _VertexOffsetX; 164 | vert.y += _VertexOffsetY; 165 | float4 vPosition = UnityObjectToClipPos(vert); 166 | 167 | float2 pixelSize = vPosition.w; 168 | pixelSize /= float2(_ScaleX, _ScaleY) * abs(mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy)); 169 | float scale = rsqrt(dot(pixelSize, pixelSize)); 170 | scale *= abs(input.texcoord1.y) * _GradientScale * (_Sharpness + 1); 171 | if (UNITY_MATRIX_P[3][3] == 0) scale = lerp(abs(scale) * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(input.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 172 | 173 | float weight = lerp(_WeightNormal, _WeightBold, bold) / 4.0; 174 | weight = (weight + _FaceDilate) * _ScaleRatioA * 0.5; 175 | 176 | float bias =(.5 - weight) + (.5 / scale); 177 | 178 | float alphaClip = (1.0 - _OutlineWidth*_ScaleRatioA - _OutlineSoftness*_ScaleRatioA); 179 | 180 | #if GLOW_ON 181 | alphaClip = min(alphaClip, 1.0 - _GlowOffset * _ScaleRatioB - _GlowOuter * _ScaleRatioB); 182 | #endif 183 | 184 | alphaClip = alphaClip / 2.0 - ( .5 / scale) - weight; 185 | 186 | #if (UNDERLAY_ON || UNDERLAY_INNER) 187 | float4 underlayColor = _UnderlayColor; 188 | underlayColor.rgb *= underlayColor.a; 189 | 190 | float bScale = scale; 191 | bScale /= 1 + ((_UnderlaySoftness*_ScaleRatioC) * bScale); 192 | float bBias = (0.5 - weight) * bScale - 0.5 - ((_UnderlayDilate * _ScaleRatioC) * 0.5 * bScale); 193 | 194 | float x = -(_UnderlayOffsetX * _ScaleRatioC) * _GradientScale / _TextureWidth; 195 | float y = -(_UnderlayOffsetY * _ScaleRatioC) * _GradientScale / _TextureHeight; 196 | float2 bOffset = float2(x, y); 197 | #endif 198 | 199 | // Generate UV for the Masking Texture 200 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 201 | float2 maskUV = (vert.xy - clampedRect.xy) / (clampedRect.zw - clampedRect.xy); 202 | 203 | // Support for texture tiling and offset 204 | float2 textureUV = UnpackUV(input.texcoord1.x); 205 | float2 faceUV = TRANSFORM_TEX(textureUV, _FaceTex); 206 | float2 outlineUV = TRANSFORM_TEX(textureUV, _OutlineTex); 207 | 208 | pixel_t output = { 209 | vPosition, 210 | input.color, 211 | input.texcoord0, 212 | float4(alphaClip, scale, bias, weight), 213 | half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)), 214 | mul((float3x3)_EnvMatrix, _WorldSpaceCameraPos.xyz - mul(unity_ObjectToWorld, vert).xyz), 215 | #if (UNDERLAY_ON || UNDERLAY_INNER) 216 | float4(input.texcoord0 + bOffset, bScale, bBias), 217 | underlayColor, 218 | #endif 219 | float4(faceUV, outlineUV), 220 | }; 221 | 222 | return output; 223 | } 224 | 225 | 226 | fixed4 PixShader(pixel_t input) : SV_Target 227 | { 228 | float c = tex2D(_MainTex, input.atlas).a; 229 | 230 | #ifndef UNDERLAY_ON 231 | clip(c - input.param.x); 232 | #endif 233 | 234 | float scale = input.param.y; 235 | float bias = input.param.z; 236 | float weight = input.param.w; 237 | float sd = (bias - c) * scale; 238 | 239 | float outline = (_OutlineWidth * _ScaleRatioA) * scale; 240 | float softness = (_OutlineSoftness * _ScaleRatioA) * scale; 241 | 242 | half4 faceColor = _FaceColor; 243 | half4 outlineColor = _OutlineColor; 244 | 245 | faceColor.rgb *= input.color.rgb; 246 | 247 | faceColor *= tex2D(_FaceTex, input.textures.xy + float2(_FaceUVSpeedX, _FaceUVSpeedY) * _Time.y); 248 | outlineColor *= tex2D(_OutlineTex, input.textures.zw + float2(_OutlineUVSpeedX, _OutlineUVSpeedY) * _Time.y); 249 | 250 | faceColor = GetColor(sd, faceColor, outlineColor, outline, softness); 251 | 252 | #if BEVEL_ON 253 | float3 dxy = float3(0.5 / _TextureWidth, 0.5 / _TextureHeight, 0); 254 | float3 n = GetSurfaceNormal(input.atlas, weight, dxy); 255 | 256 | float3 bump = UnpackNormal(tex2D(_BumpMap, input.textures.xy + float2(_FaceUVSpeedX, _FaceUVSpeedY) * _Time.y)).xyz; 257 | bump *= lerp(_BumpFace, _BumpOutline, saturate(sd + outline * 0.5)); 258 | n = normalize(n- bump); 259 | 260 | float3 light = normalize(float3(sin(_LightAngle), cos(_LightAngle), -1.0)); 261 | 262 | float3 col = GetSpecular(n, light); 263 | faceColor.rgb += col*faceColor.a; 264 | faceColor.rgb *= 1-(dot(n, light)*_Diffuse); 265 | faceColor.rgb *= lerp(_Ambient, 1, n.z*n.z); 266 | 267 | fixed4 reflcol = texCUBE(_Cube, reflect(input.viewDir, -n)); 268 | faceColor.rgb += reflcol.rgb * lerp(_ReflectFaceColor.rgb, _ReflectOutlineColor.rgb, saturate(sd + outline * 0.5)) * faceColor.a; 269 | #endif 270 | 271 | #if UNDERLAY_ON 272 | float d = tex2D(_MainTex, input.texcoord2.xy).a * input.texcoord2.z; 273 | faceColor += input.underlayColor * saturate(d - input.texcoord2.w) * (1 - faceColor.a); 274 | #endif 275 | 276 | #if UNDERLAY_INNER 277 | float d = tex2D(_MainTex, input.texcoord2.xy).a * input.texcoord2.z; 278 | faceColor += input.underlayColor * (1 - saturate(d - input.texcoord2.w)) * saturate(1 - sd) * (1 - faceColor.a); 279 | #endif 280 | 281 | #if GLOW_ON 282 | float4 glowColor = GetGlowColor(sd, scale); 283 | faceColor.rgb += glowColor.rgb * glowColor.a; 284 | #endif 285 | 286 | // Alternative implementation to UnityGet2DClipping with support for softness. 287 | #if UNITY_UI_CLIP_RECT 288 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw); 289 | faceColor *= m.x * m.y; 290 | #endif 291 | 292 | #if UNITY_UI_ALPHACLIP 293 | clip(faceColor.a - 0.001); 294 | #endif 295 | 296 | return faceColor * input.color.a; 297 | } 298 | 299 | ENDCG 300 | } 301 | } 302 | 303 | Fallback "TextMeshPro/Mobile/Distance Field" 304 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 305 | } 306 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd89cf5b9246416f84610a006f916af7 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Masking.shader: -------------------------------------------------------------------------------- 1 | // Simplified SDF shader: 2 | // - No Shading Option (bevel / bump / env map) 3 | // - No Glow Option 4 | // - Softness is applied on both side of the outline 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field - Masking" { 7 | 8 | Properties { 9 | _FaceColor ("Face Color", Color) = (1,1,1,1) 10 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 11 | 12 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 13 | _OutlineWidth ("Outline Thickness", Range(0,1)) = 0 14 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 15 | 16 | _UnderlayColor ("Border Color", Color) = (0,0,0,.5) 17 | _UnderlayOffsetX ("Border OffsetX", Range(-1,1)) = 0 18 | _UnderlayOffsetY ("Border OffsetY", Range(-1,1)) = 0 19 | _UnderlayDilate ("Border Dilate", Range(-1,1)) = 0 20 | _UnderlaySoftness ("Border Softness", Range(0,1)) = 0 21 | 22 | _WeightNormal ("Weight Normal", float) = 0 23 | _WeightBold ("Weight Bold", float) = .5 24 | 25 | _ShaderFlags ("Flags", float) = 0 26 | _ScaleRatioA ("Scale RatioA", float) = 1 27 | _ScaleRatioB ("Scale RatioB", float) = 1 28 | _ScaleRatioC ("Scale RatioC", float) = 1 29 | 30 | _MainTex ("Font Atlas", 2D) = "white" {} 31 | _TextureWidth ("Texture Width", float) = 512 32 | _TextureHeight ("Texture Height", float) = 512 33 | _GradientScale ("Gradient Scale", float) = 5 34 | _ScaleX ("Scale X", float) = 1 35 | _ScaleY ("Scale Y", float) = 1 36 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 37 | _Sharpness ("Sharpness", Range(-1,1)) = 0 38 | 39 | _VertexOffsetX ("Vertex OffsetX", float) = 0 40 | _VertexOffsetY ("Vertex OffsetY", float) = 0 41 | 42 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 43 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 44 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 45 | _MaskTex ("Mask Texture", 2D) = "white" {} 46 | _MaskInverse ("Inverse", float) = 0 47 | _MaskEdgeColor ("Edge Color", Color) = (1,1,1,1) 48 | _MaskEdgeSoftness ("Edge Softness", Range(0, 1)) = 0.01 49 | _MaskWipeControl ("Wipe Position", Range(0, 1)) = 0.5 50 | 51 | _StencilComp ("Stencil Comparison", Float) = 8 52 | _Stencil ("Stencil ID", Float) = 0 53 | _StencilOp ("Stencil Operation", Float) = 0 54 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 55 | _StencilReadMask ("Stencil Read Mask", Float) = 255 56 | 57 | _ColorMask ("Color Mask", Float) = 15 58 | } 59 | 60 | SubShader { 61 | Tags 62 | { 63 | "Queue"="Transparent" 64 | "IgnoreProjector"="True" 65 | "RenderType"="Transparent" 66 | } 67 | 68 | 69 | Stencil 70 | { 71 | Ref [_Stencil] 72 | Comp [_StencilComp] 73 | Pass [_StencilOp] 74 | ReadMask [_StencilReadMask] 75 | WriteMask [_StencilWriteMask] 76 | } 77 | 78 | Cull [_CullMode] 79 | ZWrite Off 80 | Lighting Off 81 | Fog { Mode Off } 82 | ZTest [unity_GUIZTestMode] 83 | Blend One OneMinusSrcAlpha 84 | ColorMask [_ColorMask] 85 | 86 | Pass { 87 | CGPROGRAM 88 | #pragma vertex VertShader 89 | #pragma fragment PixShader 90 | #pragma shader_feature __ OUTLINE_ON 91 | #pragma shader_feature __ UNDERLAY_ON UNDERLAY_INNER 92 | 93 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 94 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 95 | 96 | 97 | #include "UnityCG.cginc" 98 | #include "UnityUI.cginc" 99 | #include "TMPro_Properties.cginc" 100 | 101 | struct vertex_t { 102 | float4 vertex : POSITION; 103 | float3 normal : NORMAL; 104 | fixed4 color : COLOR; 105 | float2 texcoord0 : TEXCOORD0; 106 | float2 texcoord1 : TEXCOORD1; 107 | }; 108 | 109 | struct pixel_t { 110 | float4 vertex : SV_POSITION; 111 | fixed4 faceColor : COLOR; 112 | fixed4 outlineColor : COLOR1; 113 | float4 texcoord0 : TEXCOORD0; // Texture UV, Mask UV 114 | half4 param : TEXCOORD1; // Scale(x), BiasIn(y), BiasOut(z), Bias(w) 115 | half4 mask : TEXCOORD2; // Position in clip space(xy), Softness(zw) 116 | #if (UNDERLAY_ON | UNDERLAY_INNER) 117 | float4 texcoord1 : TEXCOORD3; // Texture UV, alpha, reserved 118 | half2 underlayParam : TEXCOORD4; // Scale(x), Bias(y) 119 | #endif 120 | }; 121 | 122 | float _MaskWipeControl; 123 | float _MaskEdgeSoftness; 124 | fixed4 _MaskEdgeColor; 125 | bool _MaskInverse; 126 | 127 | pixel_t VertShader(vertex_t input) 128 | { 129 | float bold = step(input.texcoord1.y, 0); 130 | 131 | float4 vert = input.vertex; 132 | vert.x += _VertexOffsetX; 133 | vert.y += _VertexOffsetY; 134 | float4 vPosition = UnityObjectToClipPos(vert); 135 | 136 | float2 pixelSize = vPosition.w; 137 | pixelSize /= float2(_ScaleX, _ScaleY) * abs(mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy)); 138 | 139 | float scale = rsqrt(dot(pixelSize, pixelSize)); 140 | scale *= abs(input.texcoord1.y) * _GradientScale * (_Sharpness + 1); 141 | if(UNITY_MATRIX_P[3][3] == 0) scale = lerp(abs(scale) * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(input.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 142 | 143 | float weight = lerp(_WeightNormal, _WeightBold, bold) / 4.0; 144 | weight = (weight + _FaceDilate) * _ScaleRatioA * 0.5; 145 | 146 | float layerScale = scale; 147 | 148 | scale /= 1 + (_OutlineSoftness * _ScaleRatioA * scale); 149 | float bias = (0.5 - weight) * scale - 0.5; 150 | float outline = _OutlineWidth * _ScaleRatioA * 0.5 * scale; 151 | 152 | float opacity = input.color.a; 153 | #if (UNDERLAY_ON | UNDERLAY_INNER) 154 | opacity = 1.0; 155 | #endif 156 | 157 | fixed4 faceColor = fixed4(input.color.rgb, opacity) * _FaceColor; 158 | faceColor.rgb *= faceColor.a; 159 | 160 | fixed4 outlineColor = _OutlineColor; 161 | outlineColor.a *= opacity; 162 | outlineColor.rgb *= outlineColor.a; 163 | outlineColor = lerp(faceColor, outlineColor, sqrt(min(1.0, (outline * 2)))); 164 | 165 | #if (UNDERLAY_ON | UNDERLAY_INNER) 166 | 167 | layerScale /= 1 + ((_UnderlaySoftness * _ScaleRatioC) * layerScale); 168 | float layerBias = (.5 - weight) * layerScale - .5 - ((_UnderlayDilate * _ScaleRatioC) * .5 * layerScale); 169 | 170 | float x = -(_UnderlayOffsetX * _ScaleRatioC) * _GradientScale / _TextureWidth; 171 | float y = -(_UnderlayOffsetY * _ScaleRatioC) * _GradientScale / _TextureHeight; 172 | float2 layerOffset = float2(x, y); 173 | #endif 174 | 175 | // Generate UV for the Masking Texture 176 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 177 | float2 maskUV = (vert.xy - clampedRect.xy) / (clampedRect.zw - clampedRect.xy); 178 | 179 | // Structure for pixel shader 180 | pixel_t output = { 181 | vPosition, 182 | faceColor, 183 | outlineColor, 184 | float4(input.texcoord0.x, input.texcoord0.y, maskUV.x, maskUV.y), 185 | half4(scale, bias - outline, bias + outline, bias), 186 | half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)), 187 | #if (UNDERLAY_ON | UNDERLAY_INNER) 188 | float4(input.texcoord0 + layerOffset, input.color.a, 0), 189 | half2(layerScale, layerBias), 190 | #endif 191 | }; 192 | 193 | return output; 194 | } 195 | 196 | 197 | // PIXEL SHADER 198 | fixed4 PixShader(pixel_t input) : SV_Target 199 | { 200 | half d = tex2D(_MainTex, input.texcoord0.xy).a * input.param.x; 201 | half4 c = input.faceColor * saturate(d - input.param.w); 202 | 203 | #ifdef OUTLINE_ON 204 | c = lerp(input.outlineColor, input.faceColor, saturate(d - input.param.z)); 205 | c *= saturate(d - input.param.y); 206 | #endif 207 | 208 | #if UNDERLAY_ON 209 | d = tex2D(_MainTex, input.texcoord1.xy).a * input.underlayParam.x; 210 | c += float4(_UnderlayColor.rgb * _UnderlayColor.a, _UnderlayColor.a) * saturate(d - input.underlayParam.y) * (1 - c.a); 211 | #endif 212 | 213 | #if UNDERLAY_INNER 214 | half sd = saturate(d - input.param.z); 215 | d = tex2D(_MainTex, input.texcoord1.xy).a * input.underlayParam.x; 216 | c += float4(_UnderlayColor.rgb * _UnderlayColor.a, _UnderlayColor.a) * (1 - saturate(d - input.underlayParam.y)) * sd * (1 - c.a); 217 | #endif 218 | 219 | // Alternative implementation to UnityGet2DClipping with support for softness. 220 | #if UNITY_UI_CLIP_RECT 221 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw); 222 | c *= m.x * m.y; 223 | #endif 224 | 225 | float a = abs(_MaskInverse - tex2D(_MaskTex, input.texcoord0.zw).a); 226 | float t = a + (1 - _MaskWipeControl) * _MaskEdgeSoftness - _MaskWipeControl; 227 | a = saturate(t / _MaskEdgeSoftness); 228 | c.rgb = lerp(_MaskEdgeColor.rgb*c.a, c.rgb, a); 229 | c *= a; 230 | 231 | #if (UNDERLAY_ON | UNDERLAY_INNER) 232 | c *= input.texcoord1.z; 233 | #endif 234 | 235 | #if UNITY_UI_ALPHACLIP 236 | clip(c.a - 0.001); 237 | #endif 238 | 239 | return c; 240 | } 241 | ENDCG 242 | } 243 | } 244 | 245 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 246 | } 247 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Masking.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc1ede39bf3643ee8e493720e4259791 3 | timeCreated: 1463704911 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Overlay.shader: -------------------------------------------------------------------------------- 1 | // Simplified SDF shader: 2 | // - No Shading Option (bevel / bump / env map) 3 | // - No Glow Option 4 | // - Softness is applied on both side of the outline 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field Overlay" { 7 | 8 | Properties { 9 | _FaceColor ("Face Color", Color) = (1,1,1,1) 10 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 11 | 12 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 13 | _OutlineWidth ("Outline Thickness", Range(0,1)) = 0 14 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 15 | 16 | _UnderlayColor ("Border Color", Color) = (0,0,0,.5) 17 | _UnderlayOffsetX ("Border OffsetX", Range(-1,1)) = 0 18 | _UnderlayOffsetY ("Border OffsetY", Range(-1,1)) = 0 19 | _UnderlayDilate ("Border Dilate", Range(-1,1)) = 0 20 | _UnderlaySoftness ("Border Softness", Range(0,1)) = 0 21 | 22 | _WeightNormal ("Weight Normal", float) = 0 23 | _WeightBold ("Weight Bold", float) = .5 24 | 25 | _ShaderFlags ("Flags", float) = 0 26 | _ScaleRatioA ("Scale RatioA", float) = 1 27 | _ScaleRatioB ("Scale RatioB", float) = 1 28 | _ScaleRatioC ("Scale RatioC", float) = 1 29 | 30 | _MainTex ("Font Atlas", 2D) = "white" {} 31 | _TextureWidth ("Texture Width", float) = 512 32 | _TextureHeight ("Texture Height", float) = 512 33 | _GradientScale ("Gradient Scale", float) = 5 34 | _ScaleX ("Scale X", float) = 1 35 | _ScaleY ("Scale Y", float) = 1 36 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 37 | _Sharpness ("Sharpness", Range(-1,1)) = 0 38 | 39 | _VertexOffsetX ("Vertex OffsetX", float) = 0 40 | _VertexOffsetY ("Vertex OffsetY", float) = 0 41 | 42 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 43 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 44 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 45 | 46 | _StencilComp ("Stencil Comparison", Float) = 8 47 | _Stencil ("Stencil ID", Float) = 0 48 | _StencilOp ("Stencil Operation", Float) = 0 49 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 50 | _StencilReadMask ("Stencil Read Mask", Float) = 255 51 | 52 | _ColorMask ("Color Mask", Float) = 15 53 | } 54 | 55 | SubShader { 56 | Tags 57 | { 58 | "Queue"="Overlay" 59 | "IgnoreProjector"="True" 60 | "RenderType"="Transparent" 61 | } 62 | 63 | 64 | Stencil 65 | { 66 | Ref [_Stencil] 67 | Comp [_StencilComp] 68 | Pass [_StencilOp] 69 | ReadMask [_StencilReadMask] 70 | WriteMask [_StencilWriteMask] 71 | } 72 | 73 | Cull [_CullMode] 74 | ZWrite Off 75 | Lighting Off 76 | Fog { Mode Off } 77 | ZTest Always 78 | Blend One OneMinusSrcAlpha 79 | ColorMask [_ColorMask] 80 | 81 | Pass { 82 | CGPROGRAM 83 | #pragma vertex VertShader 84 | #pragma fragment PixShader 85 | #pragma shader_feature __ OUTLINE_ON 86 | #pragma shader_feature __ UNDERLAY_ON UNDERLAY_INNER 87 | 88 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 89 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 90 | 91 | #include "UnityCG.cginc" 92 | #include "UnityUI.cginc" 93 | #include "TMPro_Properties.cginc" 94 | 95 | struct vertex_t { 96 | float4 vertex : POSITION; 97 | float3 normal : NORMAL; 98 | fixed4 color : COLOR; 99 | float2 texcoord0 : TEXCOORD0; 100 | float2 texcoord1 : TEXCOORD1; 101 | }; 102 | 103 | struct pixel_t { 104 | float4 vertex : SV_POSITION; 105 | fixed4 faceColor : COLOR; 106 | fixed4 outlineColor : COLOR1; 107 | float4 texcoord0 : TEXCOORD0; // Texture UV, Mask UV 108 | half4 param : TEXCOORD1; // Scale(x), BiasIn(y), BiasOut(z), Bias(w) 109 | half4 mask : TEXCOORD2; // Position in clip space(xy), Softness(zw) 110 | #if (UNDERLAY_ON | UNDERLAY_INNER) 111 | float4 texcoord1 : TEXCOORD3; // Texture UV, alpha, reserved 112 | half2 underlayParam : TEXCOORD4; // Scale(x), Bias(y) 113 | #endif 114 | }; 115 | 116 | 117 | pixel_t VertShader(vertex_t input) 118 | { 119 | float bold = step(input.texcoord1.y, 0); 120 | 121 | float4 vert = input.vertex; 122 | vert.x += _VertexOffsetX; 123 | vert.y += _VertexOffsetY; 124 | float4 vPosition = UnityObjectToClipPos(vert); 125 | 126 | float2 pixelSize = vPosition.w; 127 | pixelSize /= float2(_ScaleX, _ScaleY) * abs(mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy)); 128 | 129 | float scale = rsqrt(dot(pixelSize, pixelSize)); 130 | scale *= abs(input.texcoord1.y) * _GradientScale * (_Sharpness + 1); 131 | if(UNITY_MATRIX_P[3][3] == 0) scale = lerp(abs(scale) * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(input.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 132 | 133 | float weight = lerp(_WeightNormal, _WeightBold, bold) / 4.0; 134 | weight = (weight + _FaceDilate) * _ScaleRatioA * 0.5; 135 | 136 | float layerScale = scale; 137 | 138 | scale /= 1 + (_OutlineSoftness * _ScaleRatioA * scale); 139 | float bias = (0.5 - weight) * scale - 0.5; 140 | float outline = _OutlineWidth * _ScaleRatioA * 0.5 * scale; 141 | 142 | float opacity = input.color.a; 143 | #if (UNDERLAY_ON | UNDERLAY_INNER) 144 | opacity = 1.0; 145 | #endif 146 | 147 | fixed4 faceColor = fixed4(input.color.rgb, opacity) * _FaceColor; 148 | faceColor.rgb *= faceColor.a; 149 | 150 | fixed4 outlineColor = _OutlineColor; 151 | outlineColor.a *= opacity; 152 | outlineColor.rgb *= outlineColor.a; 153 | outlineColor = lerp(faceColor, outlineColor, sqrt(min(1.0, (outline * 2)))); 154 | 155 | #if (UNDERLAY_ON | UNDERLAY_INNER) 156 | 157 | layerScale /= 1 + ((_UnderlaySoftness * _ScaleRatioC) * layerScale); 158 | float layerBias = (.5 - weight) * layerScale - .5 - ((_UnderlayDilate * _ScaleRatioC) * .5 * layerScale); 159 | 160 | float x = -(_UnderlayOffsetX * _ScaleRatioC) * _GradientScale / _TextureWidth; 161 | float y = -(_UnderlayOffsetY * _ScaleRatioC) * _GradientScale / _TextureHeight; 162 | float2 layerOffset = float2(x, y); 163 | #endif 164 | 165 | // Generate UV for the Masking Texture 166 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 167 | float2 maskUV = (vert.xy - clampedRect.xy) / (clampedRect.zw - clampedRect.xy); 168 | 169 | // Structure for pixel shader 170 | pixel_t output = { 171 | vPosition, 172 | faceColor, 173 | outlineColor, 174 | float4(input.texcoord0.x, input.texcoord0.y, maskUV.x, maskUV.y), 175 | half4(scale, bias - outline, bias + outline, bias), 176 | half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)), 177 | #if (UNDERLAY_ON | UNDERLAY_INNER) 178 | float4(input.texcoord0 + layerOffset, input.color.a, 0), 179 | half2(layerScale, layerBias), 180 | #endif 181 | }; 182 | 183 | return output; 184 | } 185 | 186 | 187 | // PIXEL SHADER 188 | fixed4 PixShader(pixel_t input) : SV_Target 189 | { 190 | half d = tex2D(_MainTex, input.texcoord0.xy).a * input.param.x; 191 | half4 c = input.faceColor * saturate(d - input.param.w); 192 | 193 | #ifdef OUTLINE_ON 194 | c = lerp(input.outlineColor, input.faceColor, saturate(d - input.param.z)); 195 | c *= saturate(d - input.param.y); 196 | #endif 197 | 198 | #if UNDERLAY_ON 199 | d = tex2D(_MainTex, input.texcoord1.xy).a * input.underlayParam.x; 200 | c += float4(_UnderlayColor.rgb * _UnderlayColor.a, _UnderlayColor.a) * saturate(d - input.underlayParam.y) * (1 - c.a); 201 | #endif 202 | 203 | #if UNDERLAY_INNER 204 | half sd = saturate(d - input.param.z); 205 | d = tex2D(_MainTex, input.texcoord1.xy).a * input.underlayParam.x; 206 | c += float4(_UnderlayColor.rgb * _UnderlayColor.a, _UnderlayColor.a) * (1 - saturate(d - input.underlayParam.y)) * sd * (1 - c.a); 207 | #endif 208 | 209 | // Alternative implementation to UnityGet2DClipping with support for softness. 210 | #if UNITY_UI_CLIP_RECT 211 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw); 212 | c *= m.x * m.y; 213 | #endif 214 | 215 | #if (UNDERLAY_ON | UNDERLAY_INNER) 216 | c *= input.texcoord1.z; 217 | #endif 218 | 219 | #if UNITY_UI_ALPHACLIP 220 | clip(c.a - 0.001); 221 | #endif 222 | 223 | return c; 224 | } 225 | ENDCG 226 | } 227 | } 228 | 229 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 230 | } 231 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a02a7d8c237544f1962732b55a9aebf1 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile.shader: -------------------------------------------------------------------------------- 1 | // Simplified SDF shader: 2 | // - No Shading Option (bevel / bump / env map) 3 | // - No Glow Option 4 | // - Softness is applied on both side of the outline 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field" { 7 | 8 | Properties { 9 | _FaceColor ("Face Color", Color) = (1,1,1,1) 10 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 11 | 12 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 13 | _OutlineWidth ("Outline Thickness", Range(0,1)) = 0 14 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 15 | 16 | _UnderlayColor ("Border Color", Color) = (0,0,0,.5) 17 | _UnderlayOffsetX ("Border OffsetX", Range(-1,1)) = 0 18 | _UnderlayOffsetY ("Border OffsetY", Range(-1,1)) = 0 19 | _UnderlayDilate ("Border Dilate", Range(-1,1)) = 0 20 | _UnderlaySoftness ("Border Softness", Range(0,1)) = 0 21 | 22 | _WeightNormal ("Weight Normal", float) = 0 23 | _WeightBold ("Weight Bold", float) = .5 24 | 25 | _ShaderFlags ("Flags", float) = 0 26 | _ScaleRatioA ("Scale RatioA", float) = 1 27 | _ScaleRatioB ("Scale RatioB", float) = 1 28 | _ScaleRatioC ("Scale RatioC", float) = 1 29 | 30 | _MainTex ("Font Atlas", 2D) = "white" {} 31 | _TextureWidth ("Texture Width", float) = 512 32 | _TextureHeight ("Texture Height", float) = 512 33 | _GradientScale ("Gradient Scale", float) = 5 34 | _ScaleX ("Scale X", float) = 1 35 | _ScaleY ("Scale Y", float) = 1 36 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 37 | _Sharpness ("Sharpness", Range(-1,1)) = 0 38 | 39 | _VertexOffsetX ("Vertex OffsetX", float) = 0 40 | _VertexOffsetY ("Vertex OffsetY", float) = 0 41 | 42 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 43 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 44 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 45 | 46 | _StencilComp ("Stencil Comparison", Float) = 8 47 | _Stencil ("Stencil ID", Float) = 0 48 | _StencilOp ("Stencil Operation", Float) = 0 49 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 50 | _StencilReadMask ("Stencil Read Mask", Float) = 255 51 | 52 | _ColorMask ("Color Mask", Float) = 15 53 | } 54 | 55 | SubShader { 56 | Tags 57 | { 58 | "Queue"="Transparent" 59 | "IgnoreProjector"="True" 60 | "RenderType"="Transparent" 61 | } 62 | 63 | 64 | Stencil 65 | { 66 | Ref [_Stencil] 67 | Comp [_StencilComp] 68 | Pass [_StencilOp] 69 | ReadMask [_StencilReadMask] 70 | WriteMask [_StencilWriteMask] 71 | } 72 | 73 | Cull [_CullMode] 74 | ZWrite Off 75 | Lighting Off 76 | Fog { Mode Off } 77 | ZTest [unity_GUIZTestMode] 78 | Blend One OneMinusSrcAlpha 79 | ColorMask [_ColorMask] 80 | 81 | Pass { 82 | CGPROGRAM 83 | #pragma vertex VertShader 84 | #pragma fragment PixShader 85 | #pragma shader_feature __ OUTLINE_ON 86 | #pragma shader_feature __ UNDERLAY_ON UNDERLAY_INNER 87 | 88 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 89 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 90 | 91 | #include "UnityCG.cginc" 92 | #include "UnityUI.cginc" 93 | #include "TMPro_Properties.cginc" 94 | 95 | struct vertex_t { 96 | UNITY_VERTEX_INPUT_INSTANCE_ID 97 | float4 vertex : POSITION; 98 | float3 normal : NORMAL; 99 | fixed4 color : COLOR; 100 | float2 texcoord0 : TEXCOORD0; 101 | float2 texcoord1 : TEXCOORD1; 102 | }; 103 | 104 | struct pixel_t { 105 | UNITY_VERTEX_INPUT_INSTANCE_ID 106 | UNITY_VERTEX_OUTPUT_STEREO 107 | float4 vertex : SV_POSITION; 108 | fixed4 faceColor : COLOR; 109 | fixed4 outlineColor : COLOR1; 110 | float4 texcoord0 : TEXCOORD0; // Texture UV, Mask UV 111 | half4 param : TEXCOORD1; // Scale(x), BiasIn(y), BiasOut(z), Bias(w) 112 | half4 mask : TEXCOORD2; // Position in clip space(xy), Softness(zw) 113 | #if (UNDERLAY_ON | UNDERLAY_INNER) 114 | float4 texcoord1 : TEXCOORD3; // Texture UV, alpha, reserved 115 | half2 underlayParam : TEXCOORD4; // Scale(x), Bias(y) 116 | #endif 117 | }; 118 | 119 | 120 | pixel_t VertShader(vertex_t input) 121 | { 122 | pixel_t output; 123 | 124 | UNITY_INITIALIZE_OUTPUT(pixel_t, output); 125 | UNITY_SETUP_INSTANCE_ID(input); 126 | UNITY_TRANSFER_INSTANCE_ID(input, output); 127 | UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(output); 128 | 129 | float bold = step(input.texcoord1.y, 0); 130 | 131 | float4 vert = input.vertex; 132 | vert.x += _VertexOffsetX; 133 | vert.y += _VertexOffsetY; 134 | float4 vPosition = UnityObjectToClipPos(vert); 135 | 136 | float2 pixelSize = vPosition.w; 137 | pixelSize /= float2(_ScaleX, _ScaleY) * abs(mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy)); 138 | 139 | float scale = rsqrt(dot(pixelSize, pixelSize)); 140 | scale *= abs(input.texcoord1.y) * _GradientScale * (_Sharpness + 1); 141 | if(UNITY_MATRIX_P[3][3] == 0) scale = lerp(abs(scale) * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(input.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 142 | 143 | float weight = lerp(_WeightNormal, _WeightBold, bold) / 4.0; 144 | weight = (weight + _FaceDilate) * _ScaleRatioA * 0.5; 145 | 146 | float layerScale = scale; 147 | 148 | scale /= 1 + (_OutlineSoftness * _ScaleRatioA * scale); 149 | float bias = (0.5 - weight) * scale - 0.5; 150 | float outline = _OutlineWidth * _ScaleRatioA * 0.5 * scale; 151 | 152 | float opacity = input.color.a; 153 | #if (UNDERLAY_ON | UNDERLAY_INNER) 154 | opacity = 1.0; 155 | #endif 156 | 157 | fixed4 faceColor = fixed4(input.color.rgb, opacity) * _FaceColor; 158 | faceColor.rgb *= faceColor.a; 159 | 160 | fixed4 outlineColor = _OutlineColor; 161 | outlineColor.a *= opacity; 162 | outlineColor.rgb *= outlineColor.a; 163 | outlineColor = lerp(faceColor, outlineColor, sqrt(min(1.0, (outline * 2)))); 164 | 165 | #if (UNDERLAY_ON | UNDERLAY_INNER) 166 | layerScale /= 1 + ((_UnderlaySoftness * _ScaleRatioC) * layerScale); 167 | float layerBias = (.5 - weight) * layerScale - .5 - ((_UnderlayDilate * _ScaleRatioC) * .5 * layerScale); 168 | 169 | float x = -(_UnderlayOffsetX * _ScaleRatioC) * _GradientScale / _TextureWidth; 170 | float y = -(_UnderlayOffsetY * _ScaleRatioC) * _GradientScale / _TextureHeight; 171 | float2 layerOffset = float2(x, y); 172 | #endif 173 | 174 | // Generate UV for the Masking Texture 175 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 176 | float2 maskUV = (vert.xy - clampedRect.xy) / (clampedRect.zw - clampedRect.xy); 177 | 178 | // Populate structure for pixel shader 179 | output.vertex = vPosition; 180 | output.faceColor = faceColor; 181 | output.outlineColor = outlineColor; 182 | output.texcoord0 = float4(input.texcoord0.x, input.texcoord0.y, maskUV.x, maskUV.y); 183 | output.param = half4(scale, bias - outline, bias + outline, bias); 184 | output.mask = half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 185 | #if (UNDERLAY_ON || UNDERLAY_INNER) 186 | output.texcoord1 = float4(input.texcoord0 + layerOffset, input.color.a, 0); 187 | output.underlayParam = half2(layerScale, layerBias); 188 | #endif 189 | 190 | return output; 191 | } 192 | 193 | 194 | // PIXEL SHADER 195 | fixed4 PixShader(pixel_t input) : SV_Target 196 | { 197 | UNITY_SETUP_INSTANCE_ID(input); 198 | 199 | half d = tex2D(_MainTex, input.texcoord0.xy).a * input.param.x; 200 | half4 c = input.faceColor * saturate(d - input.param.w); 201 | 202 | #ifdef OUTLINE_ON 203 | c = lerp(input.outlineColor, input.faceColor, saturate(d - input.param.z)); 204 | c *= saturate(d - input.param.y); 205 | #endif 206 | 207 | #if UNDERLAY_ON 208 | d = tex2D(_MainTex, input.texcoord1.xy).a * input.underlayParam.x; 209 | c += float4(_UnderlayColor.rgb * _UnderlayColor.a, _UnderlayColor.a) * saturate(d - input.underlayParam.y) * (1 - c.a); 210 | #endif 211 | 212 | #if UNDERLAY_INNER 213 | half sd = saturate(d - input.param.z); 214 | d = tex2D(_MainTex, input.texcoord1.xy).a * input.underlayParam.x; 215 | c += float4(_UnderlayColor.rgb * _UnderlayColor.a, _UnderlayColor.a) * (1 - saturate(d - input.underlayParam.y)) * sd * (1 - c.a); 216 | #endif 217 | 218 | // Alternative implementation to UnityGet2DClipping with support for softness. 219 | #if UNITY_UI_CLIP_RECT 220 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw); 221 | c *= m.x * m.y; 222 | #endif 223 | 224 | #if (UNDERLAY_ON | UNDERLAY_INNER) 225 | c *= input.texcoord1.z; 226 | #endif 227 | 228 | #if UNITY_UI_ALPHACLIP 229 | clip(c.a - 0.001); 230 | #endif 231 | 232 | return c; 233 | } 234 | ENDCG 235 | } 236 | } 237 | 238 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 239 | } 240 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe393ace9b354375a9cb14cdbbc28be4 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface-Mobile.shader: -------------------------------------------------------------------------------- 1 | // Simplified version of the SDF Surface shader : 2 | // - No support for Bevel, Bump or envmap 3 | // - Diffuse only lighting 4 | // - Fully supports only 1 directional light. Other lights can affect it, but it will be per-vertex/SH. 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field (Surface)" { 7 | 8 | Properties { 9 | _FaceTex ("Fill Texture", 2D) = "white" {} 10 | _FaceColor ("Fill Color", Color) = (1,1,1,1) 11 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 12 | 13 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 14 | _OutlineTex ("Outline Texture", 2D) = "white" {} 15 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 16 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 17 | 18 | _GlowColor ("Color", Color) = (0, 1, 0, 0.5) 19 | _GlowOffset ("Offset", Range(-1,1)) = 0 20 | _GlowInner ("Inner", Range(0,1)) = 0.05 21 | _GlowOuter ("Outer", Range(0,1)) = 0.05 22 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 23 | 24 | _WeightNormal ("Weight Normal", float) = 0 25 | _WeightBold ("Weight Bold", float) = 0.5 26 | 27 | // Should not be directly exposed to the user 28 | _ShaderFlags ("Flags", float) = 0 29 | _ScaleRatioA ("Scale RatioA", float) = 1 30 | _ScaleRatioB ("Scale RatioB", float) = 1 31 | _ScaleRatioC ("Scale RatioC", float) = 1 32 | 33 | _MainTex ("Font Atlas", 2D) = "white" {} 34 | _TextureWidth ("Texture Width", float) = 512 35 | _TextureHeight ("Texture Height", float) = 512 36 | _GradientScale ("Gradient Scale", float) = 5.0 37 | _ScaleX ("Scale X", float) = 1.0 38 | _ScaleY ("Scale Y", float) = 1.0 39 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 40 | _Sharpness ("Sharpness", Range(-1,1)) = 0 41 | 42 | _VertexOffsetX ("Vertex OffsetX", float) = 0 43 | _VertexOffsetY ("Vertex OffsetY", float) = 0 44 | 45 | //_MaskCoord ("Mask Coords", vector) = (0,0,0,0) 46 | //_MaskSoftness ("Mask Softness", float) = 0 47 | } 48 | 49 | SubShader { 50 | 51 | Tags { 52 | "Queue"="Transparent" 53 | "IgnoreProjector"="True" 54 | "RenderType"="Transparent" 55 | } 56 | 57 | LOD 300 58 | Cull [_CullMode] 59 | 60 | CGPROGRAM 61 | #pragma surface PixShader Lambert alpha:blend vertex:VertShader noforwardadd nolightmap nodirlightmap 62 | #pragma target 3.0 63 | #pragma shader_feature __ GLOW_ON 64 | 65 | #include "TMPro_Properties.cginc" 66 | #include "TMPro.cginc" 67 | 68 | half _FaceShininess; 69 | half _OutlineShininess; 70 | 71 | struct Input 72 | { 73 | fixed4 color : COLOR; 74 | float2 uv_MainTex; 75 | float2 uv2_FaceTex; 76 | float2 uv2_OutlineTex; 77 | float2 param; // Weight, Scale 78 | float3 viewDirEnv; 79 | }; 80 | 81 | #include "TMPro_Surface.cginc" 82 | 83 | ENDCG 84 | 85 | // Pass to render object as a shadow caster 86 | Pass 87 | { 88 | Name "Caster" 89 | Tags { "LightMode" = "ShadowCaster" } 90 | Offset 1, 1 91 | 92 | Fog {Mode Off} 93 | ZWrite On ZTest LEqual Cull Off 94 | 95 | CGPROGRAM 96 | #pragma vertex vert 97 | #pragma fragment frag 98 | #pragma multi_compile_shadowcaster 99 | #include "UnityCG.cginc" 100 | 101 | struct v2f { 102 | V2F_SHADOW_CASTER; 103 | float2 uv : TEXCOORD1; 104 | float2 uv2 : TEXCOORD3; 105 | float alphaClip : TEXCOORD2; 106 | }; 107 | 108 | uniform float4 _MainTex_ST; 109 | uniform float4 _OutlineTex_ST; 110 | float _OutlineWidth; 111 | float _FaceDilate; 112 | float _ScaleRatioA; 113 | 114 | v2f vert( appdata_base v ) 115 | { 116 | v2f o; 117 | TRANSFER_SHADOW_CASTER(o) 118 | o.uv = TRANSFORM_TEX(v.texcoord, _MainTex); 119 | o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex); 120 | o.alphaClip = o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2; 121 | return o; 122 | } 123 | 124 | uniform sampler2D _MainTex; 125 | 126 | float4 frag(v2f i) : COLOR 127 | { 128 | fixed4 texcol = tex2D(_MainTex, i.uv).a; 129 | clip(texcol.a - i.alphaClip); 130 | SHADOW_CASTER_FRAGMENT(i) 131 | } 132 | ENDCG 133 | } 134 | } 135 | 136 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 137 | } 138 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85187c2149c549c5b33f0cdb02836b17 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Distance Field (Surface)" { 2 | 3 | Properties { 4 | _FaceTex ("Fill Texture", 2D) = "white" {} 5 | _FaceUVSpeedX ("Face UV Speed X", Range(-5, 5)) = 0.0 6 | _FaceUVSpeedY ("Face UV Speed Y", Range(-5, 5)) = 0.0 7 | _FaceColor ("Fill Color", Color) = (1,1,1,1) 8 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 9 | 10 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 11 | _OutlineTex ("Outline Texture", 2D) = "white" {} 12 | _OutlineUVSpeedX ("Outline UV Speed X", Range(-5, 5)) = 0.0 13 | _OutlineUVSpeedY ("Outline UV Speed Y", Range(-5, 5)) = 0.0 14 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 15 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 16 | 17 | _Bevel ("Bevel", Range(0,1)) = 0.5 18 | _BevelOffset ("Bevel Offset", Range(-0.5,0.5)) = 0 19 | _BevelWidth ("Bevel Width", Range(-.5,0.5)) = 0 20 | _BevelClamp ("Bevel Clamp", Range(0,1)) = 0 21 | _BevelRoundness ("Bevel Roundness", Range(0,1)) = 0 22 | 23 | _BumpMap ("Normalmap", 2D) = "bump" {} 24 | _BumpOutline ("Bump Outline", Range(0,1)) = 0.5 25 | _BumpFace ("Bump Face", Range(0,1)) = 0.5 26 | 27 | _ReflectFaceColor ("Face Color", Color) = (0,0,0,1) 28 | _ReflectOutlineColor ("Outline Color", Color) = (0,0,0,1) 29 | _Cube ("Reflection Cubemap", Cube) = "black" { /* TexGen CubeReflect */ } 30 | _EnvMatrixRotation ("Texture Rotation", vector) = (0, 0, 0, 0) 31 | _SpecColor ("Specular Color", Color) = (0,0,0,1) 32 | 33 | _FaceShininess ("Face Shininess", Range(0,1)) = 0 34 | _OutlineShininess ("Outline Shininess", Range(0,1)) = 0 35 | 36 | _GlowColor ("Color", Color) = (0, 1, 0, 0.5) 37 | _GlowOffset ("Offset", Range(-1,1)) = 0 38 | _GlowInner ("Inner", Range(0,1)) = 0.05 39 | _GlowOuter ("Outer", Range(0,1)) = 0.05 40 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 41 | 42 | _WeightNormal ("Weight Normal", float) = 0 43 | _WeightBold ("Weight Bold", float) = 0.5 44 | 45 | // Should not be directly exposed to the user 46 | _ShaderFlags ("Flags", float) = 0 47 | _ScaleRatioA ("Scale RatioA", float) = 1 48 | _ScaleRatioB ("Scale RatioB", float) = 1 49 | _ScaleRatioC ("Scale RatioC", float) = 1 50 | 51 | _MainTex ("Font Atlas", 2D) = "white" {} 52 | _TextureWidth ("Texture Width", float) = 512 53 | _TextureHeight ("Texture Height", float) = 512 54 | _GradientScale ("Gradient Scale", float) = 5.0 55 | _ScaleX ("Scale X", float) = 1.0 56 | _ScaleY ("Scale Y", float) = 1.0 57 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 58 | _Sharpness ("Sharpness", Range(-1,1)) = 0 59 | 60 | _VertexOffsetX ("Vertex OffsetX", float) = 0 61 | _VertexOffsetY ("Vertex OffsetY", float) = 0 62 | //_MaskCoord ("Mask Coords", vector) = (0,0,0,0) 63 | //_MaskSoftness ("Mask Softness", float) = 0 64 | } 65 | 66 | SubShader { 67 | 68 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 69 | 70 | LOD 300 71 | Cull [_CullMode] 72 | 73 | CGPROGRAM 74 | #pragma surface PixShader BlinnPhong alpha:blend vertex:VertShader nolightmap nodirlightmap 75 | #pragma target 3.0 76 | #pragma shader_feature __ GLOW_ON 77 | #pragma glsl 78 | 79 | #include "TMPro_Properties.cginc" 80 | #include "TMPro.cginc" 81 | 82 | half _FaceShininess; 83 | half _OutlineShininess; 84 | 85 | struct Input 86 | { 87 | fixed4 color : COLOR; 88 | float2 uv_MainTex; 89 | float2 uv2_FaceTex; 90 | float2 uv2_OutlineTex; 91 | float2 param; // Weight, Scale 92 | float3 viewDirEnv; 93 | }; 94 | 95 | 96 | #define BEVEL_ON 1 97 | #include "TMPro_Surface.cginc" 98 | 99 | ENDCG 100 | 101 | // Pass to render object as a shadow caster 102 | Pass 103 | { 104 | Name "Caster" 105 | Tags { "LightMode" = "ShadowCaster" } 106 | Offset 1, 1 107 | 108 | Fog {Mode Off} 109 | ZWrite On 110 | ZTest LEqual 111 | Cull Off 112 | 113 | CGPROGRAM 114 | #pragma vertex vert 115 | #pragma fragment frag 116 | #pragma multi_compile_shadowcaster 117 | #include "UnityCG.cginc" 118 | 119 | struct v2f { 120 | V2F_SHADOW_CASTER; 121 | float2 uv : TEXCOORD1; 122 | float2 uv2 : TEXCOORD3; 123 | float alphaClip : TEXCOORD2; 124 | }; 125 | 126 | uniform float4 _MainTex_ST; 127 | uniform float4 _OutlineTex_ST; 128 | float _OutlineWidth; 129 | float _FaceDilate; 130 | float _ScaleRatioA; 131 | 132 | v2f vert( appdata_base v ) 133 | { 134 | v2f o; 135 | TRANSFER_SHADOW_CASTER(o) 136 | o.uv = TRANSFORM_TEX(v.texcoord, _MainTex); 137 | o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex); 138 | o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2; 139 | return o; 140 | } 141 | 142 | uniform sampler2D _MainTex; 143 | 144 | float4 frag(v2f i) : COLOR 145 | { 146 | fixed4 texcol = tex2D(_MainTex, i.uv).a; 147 | clip(texcol.a - i.alphaClip); 148 | SHADOW_CASTER_FRAGMENT(i) 149 | } 150 | ENDCG 151 | } 152 | } 153 | 154 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 155 | } 156 | 157 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7ada0af4f174f0694ca6a487b8f543d 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Distance Field" { 2 | 3 | Properties { 4 | _FaceTex ("Face Texture", 2D) = "white" {} 5 | _FaceUVSpeedX ("Face UV Speed X", Range(-5, 5)) = 0.0 6 | _FaceUVSpeedY ("Face UV Speed Y", Range(-5, 5)) = 0.0 7 | _FaceColor ("Face Color", Color) = (1,1,1,1) 8 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 9 | 10 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 11 | _OutlineTex ("Outline Texture", 2D) = "white" {} 12 | _OutlineUVSpeedX ("Outline UV Speed X", Range(-5, 5)) = 0.0 13 | _OutlineUVSpeedY ("Outline UV Speed Y", Range(-5, 5)) = 0.0 14 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 15 | _OutlineSoftness ("Outline Softness", Range(-1,1)) = 0 16 | 17 | _Bevel ("Bevel", Range(0,1)) = 0.5 18 | _BevelOffset ("Bevel Offset", Range(-0.5,0.5)) = 0 19 | _BevelWidth ("Bevel Width", Range(-.5,0.5)) = 0 20 | _BevelClamp ("Bevel Clamp", Range(0,1)) = 0 21 | _BevelRoundness ("Bevel Roundness", Range(0,1)) = 0 22 | 23 | _LightAngle ("Light Angle", Range(0.0, 6.2831853)) = 3.1416 24 | _SpecularColor ("Specular", Color) = (1,1,1,1) 25 | _SpecularPower ("Specular", Range(0,4)) = 2.0 26 | _Reflectivity ("Reflectivity", Range(5.0,15.0)) = 10 27 | _Diffuse ("Diffuse", Range(0,1)) = 0.5 28 | _Ambient ("Ambient", Range(1,0)) = 0.5 29 | 30 | _BumpMap ("Normal map", 2D) = "bump" {} 31 | _BumpOutline ("Bump Outline", Range(0,1)) = 0 32 | _BumpFace ("Bump Face", Range(0,1)) = 0 33 | 34 | _ReflectFaceColor ("Reflection Color", Color) = (0,0,0,1) 35 | _ReflectOutlineColor("Reflection Color", Color) = (0,0,0,1) 36 | _Cube ("Reflection Cubemap", Cube) = "black" { /* TexGen CubeReflect */ } 37 | _EnvMatrixRotation ("Texture Rotation", vector) = (0, 0, 0, 0) 38 | 39 | 40 | _UnderlayColor ("Border Color", Color) = (0,0,0, 0.5) 41 | _UnderlayOffsetX ("Border OffsetX", Range(-1,1)) = 0 42 | _UnderlayOffsetY ("Border OffsetY", Range(-1,1)) = 0 43 | _UnderlayDilate ("Border Dilate", Range(-1,1)) = 0 44 | _UnderlaySoftness ("Border Softness", Range(0,1)) = 0 45 | 46 | _GlowColor ("Color", Color) = (0, 1, 0, 0.5) 47 | _GlowOffset ("Offset", Range(-1,1)) = 0 48 | _GlowInner ("Inner", Range(0,1)) = 0.05 49 | _GlowOuter ("Outer", Range(0,1)) = 0.05 50 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 51 | 52 | _WeightNormal ("Weight Normal", float) = 0 53 | _WeightBold ("Weight Bold", float) = 0.5 54 | 55 | _ShaderFlags ("Flags", float) = 0 56 | _ScaleRatioA ("Scale RatioA", float) = 1 57 | _ScaleRatioB ("Scale RatioB", float) = 1 58 | _ScaleRatioC ("Scale RatioC", float) = 1 59 | 60 | _MainTex ("Font Atlas", 2D) = "white" {} 61 | _TextureWidth ("Texture Width", float) = 512 62 | _TextureHeight ("Texture Height", float) = 512 63 | _GradientScale ("Gradient Scale", float) = 5.0 64 | _ScaleX ("Scale X", float) = 1.0 65 | _ScaleY ("Scale Y", float) = 1.0 66 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 67 | _Sharpness ("Sharpness", Range(-1,1)) = 0 68 | 69 | _VertexOffsetX ("Vertex OffsetX", float) = 0 70 | _VertexOffsetY ("Vertex OffsetY", float) = 0 71 | 72 | _MaskCoord ("Mask Coordinates", vector) = (0, 0, 32767, 32767) 73 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 74 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 75 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 76 | 77 | _StencilComp ("Stencil Comparison", Float) = 8 78 | _Stencil ("Stencil ID", Float) = 0 79 | _StencilOp ("Stencil Operation", Float) = 0 80 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 81 | _StencilReadMask ("Stencil Read Mask", Float) = 255 82 | 83 | _ColorMask ("Color Mask", Float) = 15 84 | } 85 | 86 | SubShader { 87 | 88 | Tags 89 | { 90 | "Queue"="Transparent" 91 | "IgnoreProjector"="True" 92 | "RenderType"="Transparent" 93 | } 94 | 95 | Stencil 96 | { 97 | Ref [_Stencil] 98 | Comp [_StencilComp] 99 | Pass [_StencilOp] 100 | ReadMask [_StencilReadMask] 101 | WriteMask [_StencilWriteMask] 102 | } 103 | 104 | Cull [_CullMode] 105 | ZWrite Off 106 | Lighting Off 107 | Fog { Mode Off } 108 | ZTest [unity_GUIZTestMode] 109 | Blend One OneMinusSrcAlpha 110 | ColorMask [_ColorMask] 111 | 112 | Pass { 113 | CGPROGRAM 114 | #pragma target 3.0 115 | #pragma vertex VertShader 116 | #pragma fragment PixShader 117 | #pragma shader_feature __ BEVEL_ON 118 | #pragma shader_feature __ UNDERLAY_ON UNDERLAY_INNER 119 | #pragma shader_feature __ GLOW_ON 120 | 121 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 122 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 123 | 124 | #include "UnityCG.cginc" 125 | #include "UnityUI.cginc" 126 | #include "TMPro_Properties.cginc" 127 | #include "TMPro.cginc" 128 | 129 | struct vertex_t { 130 | UNITY_VERTEX_INPUT_INSTANCE_ID 131 | float4 position : POSITION; 132 | float3 normal : NORMAL; 133 | fixed4 color : COLOR; 134 | float2 texcoord0 : TEXCOORD0; 135 | float2 texcoord1 : TEXCOORD1; 136 | }; 137 | 138 | 139 | struct pixel_t { 140 | UNITY_VERTEX_INPUT_INSTANCE_ID 141 | UNITY_VERTEX_OUTPUT_STEREO 142 | float4 position : SV_POSITION; 143 | fixed4 color : COLOR; 144 | float2 atlas : TEXCOORD0; // Atlas 145 | float4 param : TEXCOORD1; // alphaClip, scale, bias, weight 146 | float4 mask : TEXCOORD2; // Position in object space(xy), pixel Size(zw) 147 | float3 viewDir : TEXCOORD3; 148 | 149 | #if (UNDERLAY_ON || UNDERLAY_INNER) 150 | float4 texcoord2 : TEXCOORD4; // u,v, scale, bias 151 | fixed4 underlayColor : COLOR1; 152 | #endif 153 | float4 textures : TEXCOORD5; 154 | }; 155 | 156 | // Used by Unity internally to handle Texture Tiling and Offset. 157 | float4 _FaceTex_ST; 158 | float4 _OutlineTex_ST; 159 | 160 | pixel_t VertShader(vertex_t input) 161 | { 162 | pixel_t output; 163 | 164 | UNITY_INITIALIZE_OUTPUT(pixel_t, output); 165 | UNITY_SETUP_INSTANCE_ID(input); 166 | UNITY_TRANSFER_INSTANCE_ID(input,output); 167 | UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(output); 168 | 169 | float bold = step(input.texcoord1.y, 0); 170 | 171 | float4 vert = input.position; 172 | vert.x += _VertexOffsetX; 173 | vert.y += _VertexOffsetY; 174 | 175 | float4 vPosition = UnityObjectToClipPos(vert); 176 | 177 | float2 pixelSize = vPosition.w; 178 | pixelSize /= float2(_ScaleX, _ScaleY) * abs(mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy)); 179 | float scale = rsqrt(dot(pixelSize, pixelSize)); 180 | scale *= abs(input.texcoord1.y) * _GradientScale * (_Sharpness + 1); 181 | if (UNITY_MATRIX_P[3][3] == 0) scale = lerp(abs(scale) * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(input.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 182 | 183 | float weight = lerp(_WeightNormal, _WeightBold, bold) / 4.0; 184 | weight = (weight + _FaceDilate) * _ScaleRatioA * 0.5; 185 | 186 | float bias =(.5 - weight) + (.5 / scale); 187 | 188 | float alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _OutlineSoftness * _ScaleRatioA); 189 | 190 | #if GLOW_ON 191 | alphaClip = min(alphaClip, 1.0 - _GlowOffset * _ScaleRatioB - _GlowOuter * _ScaleRatioB); 192 | #endif 193 | 194 | alphaClip = alphaClip / 2.0 - ( .5 / scale) - weight; 195 | 196 | #if (UNDERLAY_ON || UNDERLAY_INNER) 197 | float4 underlayColor = _UnderlayColor; 198 | underlayColor.rgb *= underlayColor.a; 199 | 200 | float bScale = scale; 201 | bScale /= 1 + ((_UnderlaySoftness*_ScaleRatioC) * bScale); 202 | float bBias = (0.5 - weight) * bScale - 0.5 - ((_UnderlayDilate * _ScaleRatioC) * 0.5 * bScale); 203 | 204 | float x = -(_UnderlayOffsetX * _ScaleRatioC) * _GradientScale / _TextureWidth; 205 | float y = -(_UnderlayOffsetY * _ScaleRatioC) * _GradientScale / _TextureHeight; 206 | float2 bOffset = float2(x, y); 207 | #endif 208 | 209 | // Generate UV for the Masking Texture 210 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 211 | float2 maskUV = (vert.xy - clampedRect.xy) / (clampedRect.zw - clampedRect.xy); 212 | 213 | // Support for texture tiling and offset 214 | float2 textureUV = UnpackUV(input.texcoord1.x); 215 | float2 faceUV = TRANSFORM_TEX(textureUV, _FaceTex); 216 | float2 outlineUV = TRANSFORM_TEX(textureUV, _OutlineTex); 217 | 218 | 219 | output.position = vPosition; 220 | output.color = input.color; 221 | output.atlas = input.texcoord0; 222 | output.param = float4(alphaClip, scale, bias, weight); 223 | output.mask = half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 224 | output.viewDir = mul((float3x3)_EnvMatrix, _WorldSpaceCameraPos.xyz - mul(unity_ObjectToWorld, vert).xyz); 225 | #if (UNDERLAY_ON || UNDERLAY_INNER) 226 | output.texcoord2 = float4(input.texcoord0 + bOffset, bScale, bBias); 227 | output.underlayColor = underlayColor; 228 | #endif 229 | output.textures = float4(faceUV, outlineUV); 230 | 231 | return output; 232 | } 233 | 234 | 235 | fixed4 PixShader(pixel_t input) : SV_Target 236 | { 237 | UNITY_SETUP_INSTANCE_ID(input); 238 | 239 | float c = tex2D(_MainTex, input.atlas).a; 240 | 241 | #ifndef UNDERLAY_ON 242 | clip(c - input.param.x); 243 | #endif 244 | 245 | float scale = input.param.y; 246 | float bias = input.param.z; 247 | float weight = input.param.w; 248 | float sd = (bias - c) * scale; 249 | 250 | float outline = (_OutlineWidth * _ScaleRatioA) * scale; 251 | float softness = (_OutlineSoftness * _ScaleRatioA) * scale; 252 | 253 | half4 faceColor = _FaceColor; 254 | half4 outlineColor = _OutlineColor; 255 | 256 | faceColor.rgb *= input.color.rgb; 257 | 258 | faceColor *= tex2D(_FaceTex, input.textures.xy + float2(_FaceUVSpeedX, _FaceUVSpeedY) * _Time.y); 259 | outlineColor *= tex2D(_OutlineTex, input.textures.zw + float2(_OutlineUVSpeedX, _OutlineUVSpeedY) * _Time.y); 260 | 261 | faceColor = GetColor(sd, faceColor, outlineColor, outline, softness); 262 | 263 | #if BEVEL_ON 264 | float3 dxy = float3(0.5 / _TextureWidth, 0.5 / _TextureHeight, 0); 265 | float3 n = GetSurfaceNormal(input.atlas, weight, dxy); 266 | 267 | float3 bump = UnpackNormal(tex2D(_BumpMap, input.textures.xy + float2(_FaceUVSpeedX, _FaceUVSpeedY) * _Time.y)).xyz; 268 | bump *= lerp(_BumpFace, _BumpOutline, saturate(sd + outline * 0.5)); 269 | n = normalize(n- bump); 270 | 271 | float3 light = normalize(float3(sin(_LightAngle), cos(_LightAngle), -1.0)); 272 | 273 | float3 col = GetSpecular(n, light); 274 | faceColor.rgb += col*faceColor.a; 275 | faceColor.rgb *= 1-(dot(n, light)*_Diffuse); 276 | faceColor.rgb *= lerp(_Ambient, 1, n.z*n.z); 277 | 278 | fixed4 reflcol = texCUBE(_Cube, reflect(input.viewDir, -n)); 279 | faceColor.rgb += reflcol.rgb * lerp(_ReflectFaceColor.rgb, _ReflectOutlineColor.rgb, saturate(sd + outline * 0.5)) * faceColor.a; 280 | #endif 281 | 282 | #if UNDERLAY_ON 283 | float d = tex2D(_MainTex, input.texcoord2.xy).a * input.texcoord2.z; 284 | faceColor += input.underlayColor * saturate(d - input.texcoord2.w) * (1 - faceColor.a); 285 | #endif 286 | 287 | #if UNDERLAY_INNER 288 | float d = tex2D(_MainTex, input.texcoord2.xy).a * input.texcoord2.z; 289 | faceColor += input.underlayColor * (1 - saturate(d - input.texcoord2.w)) * saturate(1 - sd) * (1 - faceColor.a); 290 | #endif 291 | 292 | #if GLOW_ON 293 | float4 glowColor = GetGlowColor(sd, scale); 294 | faceColor.rgb += glowColor.rgb * glowColor.a; 295 | #endif 296 | 297 | // Alternative implementation to UnityGet2DClipping with support for softness. 298 | #if UNITY_UI_CLIP_RECT 299 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw); 300 | faceColor *= m.x * m.y; 301 | #endif 302 | 303 | #if UNITY_UI_ALPHACLIP 304 | clip(faceColor.a - 0.001); 305 | #endif 306 | 307 | return faceColor * input.color.a; 308 | } 309 | 310 | ENDCG 311 | } 312 | } 313 | 314 | Fallback "TextMeshPro/Mobile/Distance Field" 315 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 316 | } 317 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68e6db2ebdc24f95958faec2be5558d6 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Sprite.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Sprite" 2 | { 3 | Properties 4 | { 5 | _MainTex ("Sprite Texture", 2D) = "white" {} 6 | _Color ("Tint", Color) = (1,1,1,1) 7 | 8 | _StencilComp ("Stencil Comparison", Float) = 8 9 | _Stencil ("Stencil ID", Float) = 0 10 | _StencilOp ("Stencil Operation", Float) = 0 11 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 12 | _StencilReadMask ("Stencil Read Mask", Float) = 255 13 | 14 | _ColorMask ("Color Mask", Float) = 15 15 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 16 | 17 | [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 18 | } 19 | 20 | SubShader 21 | { 22 | Tags 23 | { 24 | "Queue"="Transparent" 25 | "IgnoreProjector"="True" 26 | "RenderType"="Transparent" 27 | "PreviewType"="Plane" 28 | "CanUseSpriteAtlas"="True" 29 | } 30 | 31 | Stencil 32 | { 33 | Ref [_Stencil] 34 | Comp [_StencilComp] 35 | Pass [_StencilOp] 36 | ReadMask [_StencilReadMask] 37 | WriteMask [_StencilWriteMask] 38 | } 39 | 40 | Cull Off 41 | Lighting Off 42 | ZWrite Off 43 | ZTest [unity_GUIZTestMode] 44 | Blend SrcAlpha OneMinusSrcAlpha 45 | ColorMask [_ColorMask] 46 | 47 | Pass 48 | { 49 | CGPROGRAM 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | 53 | #include "UnityCG.cginc" 54 | #include "UnityUI.cginc" 55 | 56 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 57 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 58 | 59 | struct appdata_t 60 | { 61 | float4 vertex : POSITION; 62 | float4 color : COLOR; 63 | float2 texcoord : TEXCOORD0; 64 | }; 65 | 66 | struct v2f 67 | { 68 | float4 vertex : SV_POSITION; 69 | fixed4 color : COLOR; 70 | half2 texcoord : TEXCOORD0; 71 | float4 worldPosition : TEXCOORD1; 72 | }; 73 | 74 | fixed4 _Color; 75 | fixed4 _TextureSampleAdd; 76 | float4 _ClipRect; 77 | 78 | v2f vert(appdata_t IN) 79 | { 80 | v2f OUT; 81 | OUT.worldPosition = IN.vertex; 82 | OUT.vertex = UnityObjectToClipPos(OUT.worldPosition); 83 | 84 | OUT.texcoord = IN.texcoord; 85 | 86 | #ifdef UNITY_HALF_TEXEL_OFFSET 87 | OUT.vertex.xy += (_ScreenParams.zw-1.0)*float2(-1,1); 88 | #endif 89 | 90 | OUT.color = IN.color * _Color; 91 | return OUT; 92 | } 93 | 94 | sampler2D _MainTex; 95 | 96 | fixed4 frag(v2f IN) : SV_Target 97 | { 98 | half4 color = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd) * IN.color; 99 | 100 | #if UNITY_UI_CLIP_RECT 101 | color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); 102 | #endif 103 | 104 | #ifdef UNITY_UI_ALPHACLIP 105 | clip (color.a - 0.001); 106 | #endif 107 | 108 | return color; 109 | } 110 | ENDCG 111 | } 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Sprite.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf81c85f95fe47e1a27f6ae460cf182c 3 | timeCreated: 1450517184 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc: -------------------------------------------------------------------------------- 1 | float2 UnpackUV(float uv) 2 | { 3 | float2 output; 4 | output.x = floor(uv / 4096); 5 | output.y = uv - 4096 * output.x; 6 | 7 | return output * 0.001953125; 8 | } 9 | 10 | fixed4 GetColor(half d, fixed4 faceColor, fixed4 outlineColor, half outline, half softness) 11 | { 12 | half faceAlpha = 1-saturate((d - outline * 0.5 + softness * 0.5) / (1.0 + softness)); 13 | half outlineAlpha = saturate((d + outline * 0.5)) * sqrt(min(1.0, outline)); 14 | 15 | faceColor.rgb *= faceColor.a; 16 | outlineColor.rgb *= outlineColor.a; 17 | 18 | faceColor = lerp(faceColor, outlineColor, outlineAlpha); 19 | 20 | faceColor *= faceAlpha; 21 | 22 | return faceColor; 23 | } 24 | 25 | float3 GetSurfaceNormal(float4 h, float bias) 26 | { 27 | bool raisedBevel = step(1, fmod(_ShaderFlags, 2)); 28 | 29 | h += bias+_BevelOffset; 30 | 31 | float bevelWidth = max(.01, _OutlineWidth+_BevelWidth); 32 | 33 | // Track outline 34 | h -= .5; 35 | h /= bevelWidth; 36 | h = saturate(h+.5); 37 | 38 | if(raisedBevel) h = 1 - abs(h*2.0 - 1.0); 39 | h = lerp(h, sin(h*3.141592/2.0), _BevelRoundness); 40 | h = min(h, 1.0-_BevelClamp); 41 | h *= _Bevel * bevelWidth * _GradientScale * -2.0; 42 | 43 | float3 va = normalize(float3(1.0, 0.0, h.y - h.x)); 44 | float3 vb = normalize(float3(0.0, -1.0, h.w - h.z)); 45 | 46 | return cross(va, vb); 47 | } 48 | 49 | float3 GetSurfaceNormal(float2 uv, float bias, float3 delta) 50 | { 51 | // Read "height field" 52 | float4 h = {tex2D(_MainTex, uv - delta.xz).a, 53 | tex2D(_MainTex, uv + delta.xz).a, 54 | tex2D(_MainTex, uv - delta.zy).a, 55 | tex2D(_MainTex, uv + delta.zy).a}; 56 | 57 | return GetSurfaceNormal(h, bias); 58 | } 59 | 60 | float3 GetSpecular(float3 n, float3 l) 61 | { 62 | float spec = pow(max(0.0, dot(n, l)), _Reflectivity); 63 | return _SpecularColor.rgb * spec * _SpecularPower; 64 | } 65 | 66 | float4 GetGlowColor(float d, float scale) 67 | { 68 | float glow = d - (_GlowOffset*_ScaleRatioB) * 0.5 * scale; 69 | float t = lerp(_GlowInner, (_GlowOuter * _ScaleRatioB), step(0.0, glow)) * 0.5 * scale; 70 | glow = saturate(abs(glow/(1.0 + t))); 71 | glow = 1.0-pow(glow, _GlowPower); 72 | glow *= sqrt(min(1.0, t)); // Fade off glow thinner than 1 screen pixel 73 | return float4(_GlowColor.rgb, saturate(_GlowColor.a * glow * 2)); 74 | } 75 | 76 | float4 BlendARGB(float4 overlying, float4 underlying) 77 | { 78 | overlying.rgb *= overlying.a; 79 | underlying.rgb *= underlying.a; 80 | float3 blended = overlying.rgb + ((1-overlying.a)*underlying.rgb); 81 | float alpha = underlying.a + (1-underlying.a)*overlying.a; 82 | return float4(blended, alpha); 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 407bc68d299748449bbf7f48ee690f8d 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Properties.cginc: -------------------------------------------------------------------------------- 1 | // UI Editable properties 2 | uniform sampler2D _FaceTex; // Alpha : Signed Distance 3 | uniform float _FaceUVSpeedX; 4 | uniform float _FaceUVSpeedY; 5 | uniform fixed4 _FaceColor; // RGBA : Color + Opacity 6 | uniform float _FaceDilate; // v[ 0, 1] 7 | uniform float _OutlineSoftness; // v[ 0, 1] 8 | 9 | uniform sampler2D _OutlineTex; // RGBA : Color + Opacity 10 | uniform float _OutlineUVSpeedX; 11 | uniform float _OutlineUVSpeedY; 12 | uniform fixed4 _OutlineColor; // RGBA : Color + Opacity 13 | uniform float _OutlineWidth; // v[ 0, 1] 14 | 15 | uniform float _Bevel; // v[ 0, 1] 16 | uniform float _BevelOffset; // v[-1, 1] 17 | uniform float _BevelWidth; // v[-1, 1] 18 | uniform float _BevelClamp; // v[ 0, 1] 19 | uniform float _BevelRoundness; // v[ 0, 1] 20 | 21 | uniform sampler2D _BumpMap; // Normal map 22 | uniform float _BumpOutline; // v[ 0, 1] 23 | uniform float _BumpFace; // v[ 0, 1] 24 | 25 | uniform samplerCUBE _Cube; // Cube / sphere map 26 | uniform fixed4 _ReflectFaceColor; // RGB intensity 27 | uniform fixed4 _ReflectOutlineColor; 28 | //uniform float _EnvTiltX; // v[-1, 1] 29 | //uniform float _EnvTiltY; // v[-1, 1] 30 | uniform float3 _EnvMatrixRotation; 31 | uniform float4x4 _EnvMatrix; 32 | 33 | uniform fixed4 _SpecularColor; // RGB intensity 34 | uniform float _LightAngle; // v[ 0,Tau] 35 | uniform float _SpecularPower; // v[ 0, 1] 36 | uniform float _Reflectivity; // v[ 5, 15] 37 | uniform float _Diffuse; // v[ 0, 1] 38 | uniform float _Ambient; // v[ 0, 1] 39 | 40 | uniform fixed4 _UnderlayColor; // RGBA : Color + Opacity 41 | uniform float _UnderlayOffsetX; // v[-1, 1] 42 | uniform float _UnderlayOffsetY; // v[-1, 1] 43 | uniform float _UnderlayDilate; // v[-1, 1] 44 | uniform float _UnderlaySoftness; // v[ 0, 1] 45 | 46 | uniform fixed4 _GlowColor; // RGBA : Color + Intesity 47 | uniform float _GlowOffset; // v[-1, 1] 48 | uniform float _GlowOuter; // v[ 0, 1] 49 | uniform float _GlowInner; // v[ 0, 1] 50 | uniform float _GlowPower; // v[ 1, 1/(1+4*4)] 51 | 52 | // API Editable properties 53 | uniform float _ShaderFlags; 54 | uniform float _WeightNormal; 55 | uniform float _WeightBold; 56 | 57 | uniform float _ScaleRatioA; 58 | uniform float _ScaleRatioB; 59 | uniform float _ScaleRatioC; 60 | 61 | uniform float _VertexOffsetX; 62 | uniform float _VertexOffsetY; 63 | 64 | //uniform float _UseClipRect; 65 | uniform float _MaskID; 66 | uniform sampler2D _MaskTex; 67 | uniform float4 _MaskCoord; 68 | uniform float4 _ClipRect; // bottom left(x,y) : top right(z,w) 69 | //uniform float _MaskWipeControl; 70 | //uniform float _MaskEdgeSoftness; 71 | //uniform fixed4 _MaskEdgeColor; 72 | //uniform bool _MaskInverse; 73 | 74 | uniform float _MaskSoftnessX; 75 | uniform float _MaskSoftnessY; 76 | 77 | // Font Atlas properties 78 | uniform sampler2D _MainTex; 79 | uniform float _TextureWidth; 80 | uniform float _TextureHeight; 81 | uniform float _GradientScale; 82 | uniform float _ScaleX; 83 | uniform float _ScaleY; 84 | uniform float _PerspectiveFilter; 85 | uniform float _Sharpness; 86 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Properties.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3997e2241185407d80309a82f9148466 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Surface.cginc: -------------------------------------------------------------------------------- 1 | void VertShader(inout appdata_full v, out Input data) 2 | { 3 | v.vertex.x += _VertexOffsetX; 4 | v.vertex.y += _VertexOffsetY; 5 | 6 | UNITY_INITIALIZE_OUTPUT(Input, data); 7 | 8 | float bold = step(v.texcoord1.y, 0); 9 | 10 | // Generate normal for backface 11 | float3 view = ObjSpaceViewDir(v.vertex); 12 | v.normal *= sign(dot(v.normal, view)); 13 | 14 | #if USE_DERIVATIVE 15 | data.param.y = 1; 16 | #else 17 | float4 vert = v.vertex; 18 | float4 vPosition = UnityObjectToClipPos(vert); 19 | float2 pixelSize = vPosition.w; 20 | 21 | pixelSize /= float2(_ScaleX, _ScaleY) * mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy); 22 | float scale = rsqrt(dot(pixelSize, pixelSize)); 23 | scale *= abs(v.texcoord1.y) * _GradientScale * (_Sharpness + 1); 24 | scale = lerp(scale * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(v.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 25 | data.param.y = scale; 26 | #endif 27 | 28 | //float opacity = v.color.a; 29 | 30 | data.param.x = (lerp(_WeightNormal, _WeightBold, bold) / 4.0 + _FaceDilate) * _ScaleRatioA * 0.5; // 31 | 32 | v.texcoord1.xy = UnpackUV(v.texcoord1.x); 33 | data.viewDirEnv = mul((float3x3)_EnvMatrix, WorldSpaceViewDir(v.vertex)); 34 | } 35 | 36 | void PixShader(Input input, inout SurfaceOutput o) 37 | { 38 | 39 | #if USE_DERIVATIVE | BEVEL_ON 40 | float3 delta = float3(1.0 / _TextureWidth, 1.0 / _TextureHeight, 0.0); 41 | 42 | float4 smp4x = { tex2D(_MainTex, input.uv_MainTex - delta.xz).a, 43 | tex2D(_MainTex, input.uv_MainTex + delta.xz).a, 44 | tex2D(_MainTex, input.uv_MainTex - delta.zy).a, 45 | tex2D(_MainTex, input.uv_MainTex + delta.zy).a }; 46 | #endif 47 | 48 | #if USE_DERIVATIVE 49 | // Screen space scaling reciprocal with anisotropic correction 50 | float2 edgeNormal = Normalize(float2(smp4x.x - smp4x.y, smp4x.z - smp4x.w)); 51 | float2 res = float2(_TextureWidth * input.param.y, _TextureHeight); 52 | float2 tdx = ddx(input.uv_MainTex)*res; 53 | float2 tdy = ddy(input.uv_MainTex)*res; 54 | float lx = length(tdx); 55 | float ly = length(tdy); 56 | float s = sqrt(min(lx, ly) / max(lx, ly)); 57 | s = lerp(1, s, abs(dot(normalize(tdx + tdy), edgeNormal))); 58 | float scale = rsqrt(abs(tdx.x * tdy.y - tdx.y * tdy.x)) * (_GradientScale * 2) * s; 59 | #else 60 | float scale = input.param.y; 61 | #endif 62 | 63 | // Signed distance 64 | float c = tex2D(_MainTex, input.uv_MainTex).a; 65 | float sd = (.5 - c - input.param.x) * scale + .5; 66 | float outline = _OutlineWidth*_ScaleRatioA * scale; 67 | float softness = _OutlineSoftness*_ScaleRatioA * scale; 68 | 69 | // Color & Alpha 70 | float4 faceColor = _FaceColor; 71 | float4 outlineColor = _OutlineColor; 72 | faceColor *= input.color; 73 | outlineColor.a *= input.color.a; 74 | faceColor *= tex2D(_FaceTex, float2(input.uv2_FaceTex.x + _FaceUVSpeedX * _Time.y, input.uv2_FaceTex.y + _FaceUVSpeedY * _Time.y)); 75 | outlineColor *= tex2D(_OutlineTex, float2(input.uv2_OutlineTex.x + _OutlineUVSpeedX * _Time.y, input.uv2_OutlineTex.y + _OutlineUVSpeedY * _Time.y)); 76 | faceColor = GetColor(sd, faceColor, outlineColor, outline, softness); 77 | faceColor.rgb /= max(faceColor.a, 0.0001); 78 | 79 | 80 | #if BEVEL_ON 81 | // Face Normal 82 | float3 n = GetSurfaceNormal(smp4x, input.param.x); 83 | 84 | // Bumpmap 85 | float3 bump = UnpackNormal(tex2D(_BumpMap, input.uv2_FaceTex.xy)).xyz; 86 | bump *= lerp(_BumpFace, _BumpOutline, saturate(sd + outline * 0.5)); 87 | bump = lerp(float3(0, 0, 1), bump, faceColor.a); 88 | n = normalize(n - bump); 89 | 90 | // Cubemap reflection 91 | fixed4 reflcol = texCUBE(_Cube, reflect(input.viewDirEnv, mul((float3x3)unity_ObjectToWorld, n))); 92 | float3 emission = reflcol.rgb * lerp(_ReflectFaceColor.rgb, _ReflectOutlineColor.rgb, saturate(sd + outline * 0.5)) * faceColor.a; 93 | #else 94 | float3 n = float3(0, 0, -1); 95 | float3 emission = float3(0, 0, 0); 96 | #endif 97 | 98 | 99 | 100 | #if GLOW_ON 101 | float4 glowColor = GetGlowColor(sd, scale); 102 | glowColor.a *= input.color.a; 103 | emission += glowColor.rgb*glowColor.a; 104 | faceColor = BlendARGB(glowColor, faceColor); 105 | faceColor.rgb /= max(faceColor.a, 0.0001); 106 | #endif 107 | 108 | // Set Standard output structure 109 | o.Albedo = faceColor.rgb; 110 | o.Normal = -n; 111 | o.Emission = emission; 112 | o.Specular = lerp(_FaceShininess, _OutlineShininess, saturate(sd + outline * 0.5)); 113 | o.Gloss = 1; 114 | o.Alpha = faceColor.a; 115 | } 116 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Surface.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d930090c0cd643c7b55f19a38538c162 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Sprite Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 512a49d95c0c4332bdd98131869c23c9 3 | folderAsset: yes 4 | timeCreated: 1441876896 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2103686 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 1 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: TextMeshPro/Sprite 11 | m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3} 12 | m_ShaderKeywords: UNITY_UI_CLIP_RECT 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _MainTex: 23 | m_Texture: {fileID: 2800000, guid: dffef66376be4fa480fb02b19edbe903, type: 3} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | m_Floats: 27 | - _ColorMask: 15 28 | - _Stencil: 0 29 | - _StencilComp: 8 30 | - _StencilOp: 0 31 | - _StencilReadMask: 255 32 | - _StencilWriteMask: 255 33 | - _UseUIAlphaClip: 0 34 | m_Colors: 35 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 36 | - _Color: {r: 1, g: 1, b: 1, a: 1} 37 | --- !u!114 &11400000 38 | MonoBehaviour: 39 | m_ObjectHideFlags: 0 40 | m_CorrespondingSourceObject: {fileID: 0} 41 | m_PrefabInstance: {fileID: 0} 42 | m_PrefabAsset: {fileID: 0} 43 | m_GameObject: {fileID: 0} 44 | m_Enabled: 1 45 | m_EditorHideFlags: 0 46 | m_Script: {fileID: 11500000, guid: 84a92b25f83d49b9bc132d206b370281, type: 3} 47 | m_Name: EmojiOne 48 | m_EditorClassIdentifier: 49 | hashCode: -1836805472 50 | material: {fileID: 2103686} 51 | materialHashCode: 0 52 | m_Version: 1.1.0 53 | spriteSheet: {fileID: 2800000, guid: dffef66376be4fa480fb02b19edbe903, type: 3} 54 | m_SpriteCharacterTable: 55 | - m_ElementType: 2 56 | m_Unicode: 128522 57 | m_GlyphIndex: 0 58 | m_Scale: 1 59 | m_Name: Smiling face with smiling eyes 60 | m_HashCode: -1318250903 61 | - m_ElementType: 2 62 | m_Unicode: 128523 63 | m_GlyphIndex: 1 64 | m_Scale: 1 65 | m_Name: 1f60b 66 | m_HashCode: 57188339 67 | - m_ElementType: 2 68 | m_Unicode: 128525 69 | m_GlyphIndex: 2 70 | m_Scale: 1 71 | m_Name: 1f60d 72 | m_HashCode: 57188341 73 | - m_ElementType: 2 74 | m_Unicode: 128526 75 | m_GlyphIndex: 3 76 | m_Scale: 1 77 | m_Name: 1f60e 78 | m_HashCode: 57188340 79 | - m_ElementType: 2 80 | m_Unicode: 128512 81 | m_GlyphIndex: 4 82 | m_Scale: 1 83 | m_Name: Grinning face 84 | m_HashCode: -95541379 85 | - m_ElementType: 2 86 | m_Unicode: 128513 87 | m_GlyphIndex: 5 88 | m_Scale: 1 89 | m_Name: 1f601 90 | m_HashCode: 57188256 91 | - m_ElementType: 2 92 | m_Unicode: 128514 93 | m_GlyphIndex: 6 94 | m_Scale: 1 95 | m_Name: Face with tears of joy 96 | m_HashCode: 239522663 97 | - m_ElementType: 2 98 | m_Unicode: 128515 99 | m_GlyphIndex: 7 100 | m_Scale: 1 101 | m_Name: 1f603 102 | m_HashCode: 57188258 103 | - m_ElementType: 2 104 | m_Unicode: 128516 105 | m_GlyphIndex: 8 106 | m_Scale: 1 107 | m_Name: 1f604 108 | m_HashCode: 57188261 109 | - m_ElementType: 2 110 | m_Unicode: 128517 111 | m_GlyphIndex: 9 112 | m_Scale: 1 113 | m_Name: 1f605 114 | m_HashCode: 57188260 115 | - m_ElementType: 2 116 | m_Unicode: 128518 117 | m_GlyphIndex: 10 118 | m_Scale: 1 119 | m_Name: 1f606 120 | m_HashCode: 57188263 121 | - m_ElementType: 2 122 | m_Unicode: 128521 123 | m_GlyphIndex: 11 124 | m_Scale: 1 125 | m_Name: 1f609 126 | m_HashCode: 57188264 127 | - m_ElementType: 2 128 | m_Unicode: 128536 129 | m_GlyphIndex: 12 130 | m_Scale: 1 131 | m_Name: 1f618 132 | m_HashCode: 57188168 133 | - m_ElementType: 2 134 | m_Unicode: 129315 135 | m_GlyphIndex: 13 136 | m_Scale: 1 137 | m_Name: 1f923 138 | m_HashCode: 57200239 139 | - m_ElementType: 2 140 | m_Unicode: 9786 141 | m_GlyphIndex: 14 142 | m_Scale: 1 143 | m_Name: 263a 144 | m_HashCode: 1748406 145 | - m_ElementType: 2 146 | m_Unicode: 9785 147 | m_GlyphIndex: 15 148 | m_Scale: 1 149 | m_Name: 2639 150 | m_HashCode: 1748462 151 | m_SpriteGlyphTable: 152 | - m_Index: 0 153 | m_Metrics: 154 | m_Width: 128 155 | m_Height: 128 156 | m_HorizontalBearingX: 0 157 | m_HorizontalBearingY: 115.6 158 | m_HorizontalAdvance: 128 159 | m_GlyphRect: 160 | m_X: 0 161 | m_Y: 384 162 | m_Width: 128 163 | m_Height: 128 164 | m_Scale: 1 165 | m_AtlasIndex: 0 166 | sprite: {fileID: 0} 167 | - m_Index: 1 168 | m_Metrics: 169 | m_Width: 128 170 | m_Height: 128 171 | m_HorizontalBearingX: 0 172 | m_HorizontalBearingY: 115.6 173 | m_HorizontalAdvance: 128 174 | m_GlyphRect: 175 | m_X: 128 176 | m_Y: 384 177 | m_Width: 128 178 | m_Height: 128 179 | m_Scale: 1 180 | m_AtlasIndex: 0 181 | sprite: {fileID: 0} 182 | - m_Index: 2 183 | m_Metrics: 184 | m_Width: 128 185 | m_Height: 128 186 | m_HorizontalBearingX: 0 187 | m_HorizontalBearingY: 115.6 188 | m_HorizontalAdvance: 128 189 | m_GlyphRect: 190 | m_X: 256 191 | m_Y: 384 192 | m_Width: 128 193 | m_Height: 128 194 | m_Scale: 1 195 | m_AtlasIndex: 0 196 | sprite: {fileID: 0} 197 | - m_Index: 3 198 | m_Metrics: 199 | m_Width: 128 200 | m_Height: 128 201 | m_HorizontalBearingX: 0 202 | m_HorizontalBearingY: 115.6 203 | m_HorizontalAdvance: 128 204 | m_GlyphRect: 205 | m_X: 384 206 | m_Y: 384 207 | m_Width: 128 208 | m_Height: 128 209 | m_Scale: 1 210 | m_AtlasIndex: 0 211 | sprite: {fileID: 0} 212 | - m_Index: 4 213 | m_Metrics: 214 | m_Width: 128 215 | m_Height: 128 216 | m_HorizontalBearingX: 0 217 | m_HorizontalBearingY: 115.6 218 | m_HorizontalAdvance: 128 219 | m_GlyphRect: 220 | m_X: 0 221 | m_Y: 256 222 | m_Width: 128 223 | m_Height: 128 224 | m_Scale: 1 225 | m_AtlasIndex: 0 226 | sprite: {fileID: 0} 227 | - m_Index: 5 228 | m_Metrics: 229 | m_Width: 128 230 | m_Height: 128 231 | m_HorizontalBearingX: 0 232 | m_HorizontalBearingY: 115.6 233 | m_HorizontalAdvance: 128 234 | m_GlyphRect: 235 | m_X: 128 236 | m_Y: 256 237 | m_Width: 128 238 | m_Height: 128 239 | m_Scale: 1 240 | m_AtlasIndex: 0 241 | sprite: {fileID: 0} 242 | - m_Index: 6 243 | m_Metrics: 244 | m_Width: 128 245 | m_Height: 128 246 | m_HorizontalBearingX: 0 247 | m_HorizontalBearingY: 115.6 248 | m_HorizontalAdvance: 128 249 | m_GlyphRect: 250 | m_X: 256 251 | m_Y: 256 252 | m_Width: 128 253 | m_Height: 128 254 | m_Scale: 1 255 | m_AtlasIndex: 0 256 | sprite: {fileID: 0} 257 | - m_Index: 7 258 | m_Metrics: 259 | m_Width: 128 260 | m_Height: 128 261 | m_HorizontalBearingX: 0 262 | m_HorizontalBearingY: 115.6 263 | m_HorizontalAdvance: 128 264 | m_GlyphRect: 265 | m_X: 384 266 | m_Y: 256 267 | m_Width: 128 268 | m_Height: 128 269 | m_Scale: 1 270 | m_AtlasIndex: 0 271 | sprite: {fileID: 0} 272 | - m_Index: 8 273 | m_Metrics: 274 | m_Width: 128 275 | m_Height: 128 276 | m_HorizontalBearingX: 0 277 | m_HorizontalBearingY: 115.6 278 | m_HorizontalAdvance: 128 279 | m_GlyphRect: 280 | m_X: 0 281 | m_Y: 128 282 | m_Width: 128 283 | m_Height: 128 284 | m_Scale: 1 285 | m_AtlasIndex: 0 286 | sprite: {fileID: 0} 287 | - m_Index: 9 288 | m_Metrics: 289 | m_Width: 128 290 | m_Height: 128 291 | m_HorizontalBearingX: 0 292 | m_HorizontalBearingY: 115.6 293 | m_HorizontalAdvance: 128 294 | m_GlyphRect: 295 | m_X: 128 296 | m_Y: 128 297 | m_Width: 128 298 | m_Height: 128 299 | m_Scale: 1 300 | m_AtlasIndex: 0 301 | sprite: {fileID: 0} 302 | - m_Index: 10 303 | m_Metrics: 304 | m_Width: 128 305 | m_Height: 128 306 | m_HorizontalBearingX: 0 307 | m_HorizontalBearingY: 115.6 308 | m_HorizontalAdvance: 128 309 | m_GlyphRect: 310 | m_X: 256 311 | m_Y: 128 312 | m_Width: 128 313 | m_Height: 128 314 | m_Scale: 1 315 | m_AtlasIndex: 0 316 | sprite: {fileID: 0} 317 | - m_Index: 11 318 | m_Metrics: 319 | m_Width: 128 320 | m_Height: 128 321 | m_HorizontalBearingX: 0 322 | m_HorizontalBearingY: 115.6 323 | m_HorizontalAdvance: 128 324 | m_GlyphRect: 325 | m_X: 384 326 | m_Y: 128 327 | m_Width: 128 328 | m_Height: 128 329 | m_Scale: 1 330 | m_AtlasIndex: 0 331 | sprite: {fileID: 0} 332 | - m_Index: 12 333 | m_Metrics: 334 | m_Width: 128 335 | m_Height: 128 336 | m_HorizontalBearingX: 0 337 | m_HorizontalBearingY: 115.6 338 | m_HorizontalAdvance: 128 339 | m_GlyphRect: 340 | m_X: 0 341 | m_Y: 0 342 | m_Width: 128 343 | m_Height: 128 344 | m_Scale: 1 345 | m_AtlasIndex: 0 346 | sprite: {fileID: 0} 347 | - m_Index: 13 348 | m_Metrics: 349 | m_Width: 128 350 | m_Height: 128 351 | m_HorizontalBearingX: 0 352 | m_HorizontalBearingY: 115.6 353 | m_HorizontalAdvance: 128 354 | m_GlyphRect: 355 | m_X: 128 356 | m_Y: 0 357 | m_Width: 128 358 | m_Height: 128 359 | m_Scale: 1 360 | m_AtlasIndex: 0 361 | sprite: {fileID: 0} 362 | - m_Index: 14 363 | m_Metrics: 364 | m_Width: 128 365 | m_Height: 128 366 | m_HorizontalBearingX: 0 367 | m_HorizontalBearingY: 115.6 368 | m_HorizontalAdvance: 128 369 | m_GlyphRect: 370 | m_X: 256 371 | m_Y: 0 372 | m_Width: 128 373 | m_Height: 128 374 | m_Scale: 1 375 | m_AtlasIndex: 0 376 | sprite: {fileID: 0} 377 | - m_Index: 15 378 | m_Metrics: 379 | m_Width: 128 380 | m_Height: 128 381 | m_HorizontalBearingX: 0 382 | m_HorizontalBearingY: 115.6 383 | m_HorizontalAdvance: 128 384 | m_GlyphRect: 385 | m_X: 384 386 | m_Y: 0 387 | m_Width: 128 388 | m_Height: 128 389 | m_Scale: 1 390 | m_AtlasIndex: 0 391 | sprite: {fileID: 0} 392 | spriteInfoList: 393 | - id: 0 394 | x: 0 395 | y: 384 396 | width: 128 397 | height: 128 398 | xOffset: 0 399 | yOffset: 115.6 400 | xAdvance: 128 401 | scale: 1 402 | name: Smiling face with smiling eyes 403 | hashCode: -1318250903 404 | unicode: 128522 405 | pivot: {x: 0.5, y: 0.5} 406 | sprite: {fileID: 0} 407 | - id: 1 408 | x: 128 409 | y: 384 410 | width: 128 411 | height: 128 412 | xOffset: 0 413 | yOffset: 115.6 414 | xAdvance: 128 415 | scale: 1 416 | name: 1f60b 417 | hashCode: 57188339 418 | unicode: 128523 419 | pivot: {x: 0.5, y: 0.5} 420 | sprite: {fileID: 0} 421 | - id: 2 422 | x: 256 423 | y: 384 424 | width: 128 425 | height: 128 426 | xOffset: 0 427 | yOffset: 115.6 428 | xAdvance: 128 429 | scale: 1 430 | name: 1f60d 431 | hashCode: 57188341 432 | unicode: 128525 433 | pivot: {x: 0.5, y: 0.5} 434 | sprite: {fileID: 0} 435 | - id: 3 436 | x: 384 437 | y: 384 438 | width: 128 439 | height: 128 440 | xOffset: 0 441 | yOffset: 115.6 442 | xAdvance: 128 443 | scale: 1 444 | name: 1f60e 445 | hashCode: 57188340 446 | unicode: 128526 447 | pivot: {x: 0.5, y: 0.5} 448 | sprite: {fileID: 0} 449 | - id: 4 450 | x: 0 451 | y: 256 452 | width: 128 453 | height: 128 454 | xOffset: 0 455 | yOffset: 115.6 456 | xAdvance: 128 457 | scale: 1 458 | name: Grinning face 459 | hashCode: -95541379 460 | unicode: 128512 461 | pivot: {x: 0.5, y: 0.5} 462 | sprite: {fileID: 0} 463 | - id: 5 464 | x: 128 465 | y: 256 466 | width: 128 467 | height: 128 468 | xOffset: 0 469 | yOffset: 115.6 470 | xAdvance: 128 471 | scale: 1 472 | name: 1f601 473 | hashCode: 57188256 474 | unicode: 128513 475 | pivot: {x: 0.5, y: 0.5} 476 | sprite: {fileID: 0} 477 | - id: 6 478 | x: 256 479 | y: 256 480 | width: 128 481 | height: 128 482 | xOffset: 0 483 | yOffset: 115.6 484 | xAdvance: 128 485 | scale: 1 486 | name: Face with tears of joy 487 | hashCode: 239522663 488 | unicode: 128514 489 | pivot: {x: 0.5, y: 0.5} 490 | sprite: {fileID: 0} 491 | - id: 7 492 | x: 384 493 | y: 256 494 | width: 128 495 | height: 128 496 | xOffset: 0 497 | yOffset: 115.6 498 | xAdvance: 128 499 | scale: 1 500 | name: 1f603 501 | hashCode: 57188258 502 | unicode: 128515 503 | pivot: {x: 0.5, y: 0.5} 504 | sprite: {fileID: 0} 505 | - id: 8 506 | x: 0 507 | y: 128 508 | width: 128 509 | height: 128 510 | xOffset: 0 511 | yOffset: 115.6 512 | xAdvance: 128 513 | scale: 1 514 | name: 1f604 515 | hashCode: 57188261 516 | unicode: 128516 517 | pivot: {x: 0.5, y: 0.5} 518 | sprite: {fileID: 0} 519 | - id: 9 520 | x: 128 521 | y: 128 522 | width: 128 523 | height: 128 524 | xOffset: 0 525 | yOffset: 115.6 526 | xAdvance: 128 527 | scale: 1 528 | name: 1f605 529 | hashCode: 57188260 530 | unicode: 128517 531 | pivot: {x: 0.5, y: 0.5} 532 | sprite: {fileID: 0} 533 | - id: 10 534 | x: 256 535 | y: 128 536 | width: 128 537 | height: 128 538 | xOffset: 0 539 | yOffset: 115.6 540 | xAdvance: 128 541 | scale: 1 542 | name: 1f606 543 | hashCode: 57188263 544 | unicode: 128518 545 | pivot: {x: 0.5, y: 0.5} 546 | sprite: {fileID: 0} 547 | - id: 11 548 | x: 384 549 | y: 128 550 | width: 128 551 | height: 128 552 | xOffset: 0 553 | yOffset: 115.6 554 | xAdvance: 128 555 | scale: 1 556 | name: 1f609 557 | hashCode: 57188264 558 | unicode: 128521 559 | pivot: {x: 0.5, y: 0.5} 560 | sprite: {fileID: 0} 561 | - id: 12 562 | x: 0 563 | y: 0 564 | width: 128 565 | height: 128 566 | xOffset: 0 567 | yOffset: 115.6 568 | xAdvance: 128 569 | scale: 1 570 | name: 1f618 571 | hashCode: 57188168 572 | unicode: 128536 573 | pivot: {x: 0.5, y: 0.5} 574 | sprite: {fileID: 0} 575 | - id: 13 576 | x: 128 577 | y: 0 578 | width: 128 579 | height: 128 580 | xOffset: 0 581 | yOffset: 115.6 582 | xAdvance: 128 583 | scale: 1 584 | name: 1f923 585 | hashCode: 57200239 586 | unicode: 129315 587 | pivot: {x: 0.5, y: 0.5} 588 | sprite: {fileID: 0} 589 | - id: 14 590 | x: 256 591 | y: 0 592 | width: 128 593 | height: 128 594 | xOffset: 0 595 | yOffset: 115.6 596 | xAdvance: 128 597 | scale: 1 598 | name: 263a 599 | hashCode: 1748406 600 | unicode: 9786 601 | pivot: {x: 0.5, y: 0.5} 602 | sprite: {fileID: 0} 603 | - id: 15 604 | x: 384 605 | y: 0 606 | width: 128 607 | height: 128 608 | xOffset: 0 609 | yOffset: 115.6 610 | xAdvance: 128 611 | scale: 1 612 | name: 2639 613 | hashCode: 1748462 614 | unicode: 9785 615 | pivot: {x: 0.5, y: 0.5} 616 | sprite: {fileID: 0} 617 | fallbackSpriteAssets: [] 618 | --- !u!21 &1369835458 619 | Material: 620 | serializedVersion: 6 621 | m_ObjectHideFlags: 1 622 | m_CorrespondingSourceObject: {fileID: 0} 623 | m_PrefabInstance: {fileID: 0} 624 | m_PrefabAsset: {fileID: 0} 625 | m_Name: TextMeshPro/Sprite 626 | m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3} 627 | m_ShaderKeywords: 628 | m_LightmapFlags: 5 629 | m_EnableInstancingVariants: 0 630 | m_DoubleSidedGI: 0 631 | m_CustomRenderQueue: -1 632 | stringTagMap: {} 633 | disabledShaderPasses: [] 634 | m_SavedProperties: 635 | serializedVersion: 3 636 | m_TexEnvs: [] 637 | m_Floats: [] 638 | m_Colors: [] 639 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c41005c129ba4d66911b75229fd70b45 3 | timeCreated: 1480316912 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Style Sheets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4aecb92fff08436c8303b10eab8da368 3 | folderAsset: yes 4 | timeCreated: 1441876950 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: ab2114bdc8544297b417dfefe9f1e410, type: 3} 12 | m_Name: Default Style Sheet 13 | m_EditorClassIdentifier: 14 | m_StyleList: 15 | - m_Name: H1 16 | m_HashCode: 2425 17 | m_OpeningDefinition: <#40ff80>* 18 | m_ClosingDefinition: '*' 19 | m_OpeningTagArray: 3c00000073000000690000007a000000650000003d00000032000000650000006d0000003e0000003c000000620000003e0000003c000000230000003400000030000000660000006600000038000000300000003e0000002a000000 20 | m_ClosingTagArray: 2a0000003c0000002f00000073000000690000007a000000650000003e0000003c0000002f000000620000003e0000003c0000002f000000630000006f0000006c0000006f000000720000003e000000 21 | - m_Name: Quote 22 | m_HashCode: 92254330 23 | m_OpeningDefinition: 24 | m_ClosingDefinition: 25 | m_OpeningTagArray: 3c000000690000003e0000003c00000073000000690000007a000000650000003d0000003700000035000000250000003e0000003c0000006d000000610000007200000067000000690000006e0000003d0000003100000030000000250000003e000000 26 | m_ClosingTagArray: 3c0000002f000000690000003e0000003c0000002f00000073000000690000007a000000650000003e0000003c0000002f00000077000000690000006400000074000000680000003e0000003c0000002f0000006d000000610000007200000067000000690000006e0000003e000000 27 | - m_Name: Link 28 | m_HashCode: 2687968 29 | m_OpeningDefinition: <#40a0ff> 30 | m_ClosingDefinition: 31 | m_OpeningTagArray: 3c000000750000003e0000003c000000230000003400000030000000610000003000000066000000660000003e0000003c0000006c000000690000006e0000006b0000003d0000002200000049000000440000005f0000003000000031000000220000003e000000 32 | m_ClosingTagArray: 3c0000002f000000750000003e0000003c0000002f000000630000006f0000006c0000006f000000720000003e0000003c0000002f0000006c000000690000006e0000006b0000003e000000 33 | - m_Name: Title 34 | m_HashCode: 98732960 35 | m_OpeningDefinition: 36 | m_ClosingDefinition: 37 | m_OpeningTagArray: 3c00000073000000690000007a000000650000003d000000310000003200000035000000250000003e0000003c000000620000003e0000003c000000610000006c00000069000000670000006e0000003d00000063000000650000006e0000007400000065000000720000003e000000 38 | m_ClosingTagArray: 3c0000002f00000073000000690000007a000000650000003e0000003c0000002f000000620000003e0000003c0000002f000000610000006c00000069000000670000006e0000003e000000 39 | - m_Name: H2 40 | m_HashCode: 2426 41 | m_OpeningDefinition: <#4080FF> 42 | m_ClosingDefinition: 43 | m_OpeningTagArray: 3c00000073000000690000007a000000650000003d000000310000002e00000035000000650000006d0000003e0000003c000000620000003e0000003c000000230000003400000030000000380000003000000046000000460000003e000000 44 | m_ClosingTagArray: 3c0000002f00000073000000690000007a000000650000003e0000003c0000002f000000620000003e0000003c0000002f000000630000006f0000006c0000006f000000720000003e000000 45 | - m_Name: H3 46 | m_HashCode: 2427 47 | m_OpeningDefinition: <#FF8040> 48 | m_ClosingDefinition: 49 | m_OpeningTagArray: 3c00000073000000690000007a000000650000003d000000310000002e0000003100000037000000650000006d0000003e0000003c000000620000003e0000003c000000230000004600000046000000380000003000000034000000300000003e000000 50 | m_ClosingTagArray: 3c0000002f00000073000000690000007a000000650000003e0000003c0000002f000000620000003e0000003c0000002f000000630000006f0000006c0000006f000000720000003e000000 51 | - m_Name: C1 52 | m_HashCode: 2194 53 | m_OpeningDefinition: 54 | m_ClosingDefinition: 55 | m_OpeningTagArray: 3c000000630000006f0000006c0000006f000000720000003d000000230000006600000066000000660000006600000034000000300000003e000000 56 | m_ClosingTagArray: 3c0000002f000000630000006f0000006c0000006f000000720000003e000000 57 | - m_Name: C2 58 | m_HashCode: 2193 59 | m_OpeningDefinition: 60 | m_ClosingDefinition: 61 | m_OpeningTagArray: 3c000000630000006f0000006c0000006f000000720000003d000000230000006600000066000000340000003000000046000000460000003e0000003c00000073000000690000007a000000650000003d000000310000003200000035000000250000003e000000 62 | m_ClosingTagArray: 3c0000002f000000630000006f0000006c0000006f000000720000003e0000003c0000002f00000073000000690000007a000000650000003e000000 63 | - m_Name: C3 64 | m_HashCode: 2192 65 | m_OpeningDefinition: 66 | m_ClosingDefinition: 67 | m_OpeningTagArray: 3c000000630000006f0000006c0000006f000000720000003d000000230000003800000030000000410000003000000046000000460000003e0000003c000000620000003e000000 68 | m_ClosingTagArray: 3c0000002f000000630000006f0000006c0000006f000000720000003e0000003c0000002f000000620000003e000000 69 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f952c082cb03451daed3ee968ac6c63e 3 | timeCreated: 1432805430 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/TMP Settings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2705215ac5b84b70bacc50632be6e391, type: 3} 13 | m_Name: TMP Settings 14 | m_EditorClassIdentifier: 15 | m_enableWordWrapping: 1 16 | m_enableKerning: 1 17 | m_enableExtraPadding: 0 18 | m_enableTintAllSprites: 0 19 | m_enableParseEscapeCharacters: 1 20 | m_EnableRaycastTarget: 1 21 | m_GetFontFeaturesAtRuntime: 1 22 | m_missingGlyphCharacter: 0 23 | m_warningsDisabled: 0 24 | m_defaultFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} 25 | m_defaultFontAssetPath: Fonts & Materials/ 26 | m_defaultFontSize: 36 27 | m_defaultAutoSizeMinRatio: 0.5 28 | m_defaultAutoSizeMaxRatio: 2 29 | m_defaultTextMeshProTextContainerSize: {x: 20, y: 5} 30 | m_defaultTextMeshProUITextContainerSize: {x: 200, y: 50} 31 | m_autoSizeTextContainer: 0 32 | m_fallbackFontAssets: [] 33 | m_matchMaterialPreset: 1 34 | m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45, 35 | type: 2} 36 | m_defaultSpriteAssetPath: Sprite Assets/ 37 | m_defaultColorGradientPresetsPath: Color Gradient Presets/ 38 | m_enableEmojiSupport: 1 39 | m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e, 40 | type: 2} 41 | m_leadingCharacters: {fileID: 4900000, guid: d82c1b31c7e74239bff1220585707d2b, type: 3} 42 | m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b, 43 | type: 3} 44 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/TMP Settings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f5b5dff67a942289a9defa416b206f3 3 | timeCreated: 1436653997 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0603b6d5186471b96c778c3949c7ce2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt: -------------------------------------------------------------------------------- 1 | This sample of beautiful emojis are provided by EmojiOne https://www.emojione.com/ 2 | 3 | Please visit their website to view the complete set of their emojis and review their licensing terms. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 381dcb09d5029d14897e55f98031fca5 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.json: -------------------------------------------------------------------------------- 1 | {"frames": [ 2 | 3 | { 4 | "filename": "1f60a.png", 5 | "frame": {"x":0,"y":0,"w":128,"h":128}, 6 | "rotated": false, 7 | "trimmed": false, 8 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 9 | "sourceSize": {"w":128,"h":128}, 10 | "pivot": {"x":0.5,"y":0.5} 11 | }, 12 | { 13 | "filename": "1f60b.png", 14 | "frame": {"x":128,"y":0,"w":128,"h":128}, 15 | "rotated": false, 16 | "trimmed": false, 17 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 18 | "sourceSize": {"w":128,"h":128}, 19 | "pivot": {"x":0.5,"y":0.5} 20 | }, 21 | { 22 | "filename": "1f60d.png", 23 | "frame": {"x":256,"y":0,"w":128,"h":128}, 24 | "rotated": false, 25 | "trimmed": false, 26 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 27 | "sourceSize": {"w":128,"h":128}, 28 | "pivot": {"x":0.5,"y":0.5} 29 | }, 30 | { 31 | "filename": "1f60e.png", 32 | "frame": {"x":384,"y":0,"w":128,"h":128}, 33 | "rotated": false, 34 | "trimmed": false, 35 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 36 | "sourceSize": {"w":128,"h":128}, 37 | "pivot": {"x":0.5,"y":0.5} 38 | }, 39 | { 40 | "filename": "1f600.png", 41 | "frame": {"x":0,"y":128,"w":128,"h":128}, 42 | "rotated": false, 43 | "trimmed": false, 44 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 45 | "sourceSize": {"w":128,"h":128}, 46 | "pivot": {"x":0.5,"y":0.5} 47 | }, 48 | { 49 | "filename": "1f601.png", 50 | "frame": {"x":128,"y":128,"w":128,"h":128}, 51 | "rotated": false, 52 | "trimmed": false, 53 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 54 | "sourceSize": {"w":128,"h":128}, 55 | "pivot": {"x":0.5,"y":0.5} 56 | }, 57 | { 58 | "filename": "1f602.png", 59 | "frame": {"x":256,"y":128,"w":128,"h":128}, 60 | "rotated": false, 61 | "trimmed": false, 62 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 63 | "sourceSize": {"w":128,"h":128}, 64 | "pivot": {"x":0.5,"y":0.5} 65 | }, 66 | { 67 | "filename": "1f603.png", 68 | "frame": {"x":384,"y":128,"w":128,"h":128}, 69 | "rotated": false, 70 | "trimmed": false, 71 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 72 | "sourceSize": {"w":128,"h":128}, 73 | "pivot": {"x":0.5,"y":0.5} 74 | }, 75 | { 76 | "filename": "1f604.png", 77 | "frame": {"x":0,"y":256,"w":128,"h":128}, 78 | "rotated": false, 79 | "trimmed": false, 80 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 81 | "sourceSize": {"w":128,"h":128}, 82 | "pivot": {"x":0.5,"y":0.5} 83 | }, 84 | { 85 | "filename": "1f605.png", 86 | "frame": {"x":128,"y":256,"w":128,"h":128}, 87 | "rotated": false, 88 | "trimmed": false, 89 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 90 | "sourceSize": {"w":128,"h":128}, 91 | "pivot": {"x":0.5,"y":0.5} 92 | }, 93 | { 94 | "filename": "1f606.png", 95 | "frame": {"x":256,"y":256,"w":128,"h":128}, 96 | "rotated": false, 97 | "trimmed": false, 98 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 99 | "sourceSize": {"w":128,"h":128}, 100 | "pivot": {"x":0.5,"y":0.5} 101 | }, 102 | { 103 | "filename": "1f609.png", 104 | "frame": {"x":384,"y":256,"w":128,"h":128}, 105 | "rotated": false, 106 | "trimmed": false, 107 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 108 | "sourceSize": {"w":128,"h":128}, 109 | "pivot": {"x":0.5,"y":0.5} 110 | }, 111 | { 112 | "filename": "1f618.png", 113 | "frame": {"x":0,"y":384,"w":128,"h":128}, 114 | "rotated": false, 115 | "trimmed": false, 116 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 117 | "sourceSize": {"w":128,"h":128}, 118 | "pivot": {"x":0.5,"y":0.5} 119 | }, 120 | { 121 | "filename": "1f923.png", 122 | "frame": {"x":128,"y":384,"w":128,"h":128}, 123 | "rotated": false, 124 | "trimmed": false, 125 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 126 | "sourceSize": {"w":128,"h":128}, 127 | "pivot": {"x":0.5,"y":0.5} 128 | }, 129 | { 130 | "filename": "263a.png", 131 | "frame": {"x":256,"y":384,"w":128,"h":128}, 132 | "rotated": false, 133 | "trimmed": false, 134 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 135 | "sourceSize": {"w":128,"h":128}, 136 | "pivot": {"x":0.5,"y":0.5} 137 | }, 138 | { 139 | "filename": "2639.png", 140 | "frame": {"x":384,"y":384,"w":128,"h":128}, 141 | "rotated": false, 142 | "trimmed": false, 143 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 144 | "sourceSize": {"w":128,"h":128}, 145 | "pivot": {"x":0.5,"y":0.5} 146 | }], 147 | "meta": { 148 | "app": "http://www.codeandweb.com/texturepacker", 149 | "version": "1.0", 150 | "image": "EmojiOne.png", 151 | "format": "RGBA8888", 152 | "size": {"w":512,"h":512}, 153 | "scale": "1", 154 | "smartupdate": "$TexturePacker:SmartUpdate:196a26a2e149d875b91ffc8fa3581e76:fc928c7e275404b7e0649307410475cb:424723c3774975ddb2053fd5c4b85f6e$" 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f05276190cf498a8153f6cbe761d4e6 3 | timeCreated: 1480316860 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/Tooltip-UI-Tutorial/6302f16ab109db88637b05f1c5bf0e9fd3d02e94/Assets/TextMesh Pro/Sprites/EmojiOne.png -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dffef66376be4fa480fb02b19edbe903 3 | TextureImporter: 4 | fileIDToRecycleName: 5 | 21300000: EmojiOne_0 6 | 21300002: EmojiOne_1 7 | 21300004: EmojiOne_2 8 | 21300006: EmojiOne_3 9 | 21300008: EmojiOne_4 10 | 21300010: EmojiOne_6 11 | 21300012: EmojiOne_7 12 | 21300014: EmojiOne_8 13 | 21300016: EmojiOne_9 14 | 21300018: EmojiOne_10 15 | 21300020: EmojiOne_11 16 | 21300022: EmojiOne_12 17 | 21300024: EmojiOne_13 18 | 21300026: EmojiOne_5 19 | 21300028: EmojiOne_14 20 | externalObjects: {} 21 | serializedVersion: 5 22 | mipmaps: 23 | mipMapMode: 0 24 | enableMipMap: 1 25 | sRGBTexture: 1 26 | linearTexture: 0 27 | fadeOut: 0 28 | borderMipMap: 0 29 | mipMapsPreserveCoverage: 0 30 | alphaTestReferenceValue: 0.5 31 | mipMapFadeDistanceStart: 1 32 | mipMapFadeDistanceEnd: 3 33 | bumpmap: 34 | convertToNormalMap: 0 35 | externalNormalMap: 0 36 | heightScale: 0.25 37 | normalMapFilter: 0 38 | isReadable: 0 39 | grayScaleToAlpha: 0 40 | generateCubemap: 6 41 | cubemapConvolution: 0 42 | seamlessCubemap: 0 43 | textureFormat: -1 44 | maxTextureSize: 2048 45 | textureSettings: 46 | serializedVersion: 2 47 | filterMode: -1 48 | aniso: -1 49 | mipBias: -1 50 | wrapU: 1 51 | wrapV: 1 52 | wrapW: 1 53 | nPOTScale: 0 54 | lightmap: 0 55 | compressionQuality: 50 56 | spriteMode: 2 57 | spriteExtrude: 1 58 | spriteMeshType: 1 59 | alignment: 0 60 | spritePivot: {x: 0.5, y: 0.5} 61 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 62 | spritePixelsToUnits: 100 63 | alphaUsage: 1 64 | alphaIsTransparency: 1 65 | spriteTessellationDetail: -1 66 | textureType: 0 67 | textureShape: 1 68 | singleChannelComponent: 0 69 | maxTextureSizeSet: 0 70 | compressionQualitySet: 0 71 | textureFormatSet: 0 72 | platformSettings: 73 | - serializedVersion: 2 74 | buildTarget: DefaultTexturePlatform 75 | maxTextureSize: 512 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | androidETC2FallbackOverride: 0 84 | - serializedVersion: 2 85 | buildTarget: Standalone 86 | maxTextureSize: 512 87 | resizeAlgorithm: 0 88 | textureFormat: -1 89 | textureCompression: 1 90 | compressionQuality: 50 91 | crunchedCompression: 0 92 | allowsAlphaSplitting: 0 93 | overridden: 0 94 | androidETC2FallbackOverride: 0 95 | - serializedVersion: 2 96 | buildTarget: iPhone 97 | maxTextureSize: 512 98 | resizeAlgorithm: 0 99 | textureFormat: -1 100 | textureCompression: 1 101 | compressionQuality: 50 102 | crunchedCompression: 0 103 | allowsAlphaSplitting: 0 104 | overridden: 0 105 | androidETC2FallbackOverride: 0 106 | - serializedVersion: 2 107 | buildTarget: Android 108 | maxTextureSize: 512 109 | resizeAlgorithm: 0 110 | textureFormat: -1 111 | textureCompression: 1 112 | compressionQuality: 50 113 | crunchedCompression: 0 114 | allowsAlphaSplitting: 0 115 | overridden: 0 116 | androidETC2FallbackOverride: 0 117 | spriteSheet: 118 | serializedVersion: 2 119 | sprites: 120 | - serializedVersion: 2 121 | name: EmojiOne_0 122 | rect: 123 | serializedVersion: 2 124 | x: 0 125 | y: 384 126 | width: 128 127 | height: 128 128 | alignment: 0 129 | pivot: {x: 0.5, y: 0.5} 130 | border: {x: 0, y: 0, z: 0, w: 0} 131 | outline: [] 132 | physicsShape: [] 133 | tessellationDetail: 0 134 | bones: [] 135 | spriteID: 4bcc36da2108f2c4ba3de5c921d25c3c 136 | vertices: [] 137 | indices: 138 | edges: [] 139 | weights: [] 140 | - serializedVersion: 2 141 | name: EmojiOne_1 142 | rect: 143 | serializedVersion: 2 144 | x: 128 145 | y: 384 146 | width: 128 147 | height: 128 148 | alignment: 0 149 | pivot: {x: 0.5, y: 0.5} 150 | border: {x: 0, y: 0, z: 0, w: 0} 151 | outline: [] 152 | physicsShape: [] 153 | tessellationDetail: 0 154 | bones: [] 155 | spriteID: e9eea8093eaeaee4d901c4553f572c22 156 | vertices: [] 157 | indices: 158 | edges: [] 159 | weights: [] 160 | - serializedVersion: 2 161 | name: EmojiOne_2 162 | rect: 163 | serializedVersion: 2 164 | x: 256 165 | y: 384 166 | width: 128 167 | height: 128 168 | alignment: 0 169 | pivot: {x: 0.5, y: 0.5} 170 | border: {x: 0, y: 0, z: 0, w: 0} 171 | outline: [] 172 | physicsShape: [] 173 | tessellationDetail: 0 174 | bones: [] 175 | spriteID: 49451da35411dcc42a3692e39b0fde70 176 | vertices: [] 177 | indices: 178 | edges: [] 179 | weights: [] 180 | - serializedVersion: 2 181 | name: EmojiOne_3 182 | rect: 183 | serializedVersion: 2 184 | x: 384 185 | y: 384 186 | width: 128 187 | height: 128 188 | alignment: 0 189 | pivot: {x: 0.5, y: 0.5} 190 | border: {x: 0, y: 0, z: 0, w: 0} 191 | outline: [] 192 | physicsShape: [] 193 | tessellationDetail: 0 194 | bones: [] 195 | spriteID: f65709664b924904790c850a50ca82bc 196 | vertices: [] 197 | indices: 198 | edges: [] 199 | weights: [] 200 | - serializedVersion: 2 201 | name: EmojiOne_4 202 | rect: 203 | serializedVersion: 2 204 | x: 0 205 | y: 256 206 | width: 128 207 | height: 128 208 | alignment: 0 209 | pivot: {x: 0.5, y: 0.5} 210 | border: {x: 0, y: 0, z: 0, w: 0} 211 | outline: [] 212 | physicsShape: [] 213 | tessellationDetail: 0 214 | bones: [] 215 | spriteID: 5b92c568a5ec9ad4b9ed90e271f1c9a8 216 | vertices: [] 217 | indices: 218 | edges: [] 219 | weights: [] 220 | - serializedVersion: 2 221 | name: EmojiOne_6 222 | rect: 223 | serializedVersion: 2 224 | x: 256 225 | y: 256 226 | width: 128 227 | height: 128 228 | alignment: 0 229 | pivot: {x: 0.5, y: 0.5} 230 | border: {x: 0, y: 0, z: 0, w: 0} 231 | outline: [] 232 | physicsShape: [] 233 | tessellationDetail: 0 234 | bones: [] 235 | spriteID: b10f2b48b7281594bb8a24a6511a35af 236 | vertices: [] 237 | indices: 238 | edges: [] 239 | weights: [] 240 | - serializedVersion: 2 241 | name: EmojiOne_7 242 | rect: 243 | serializedVersion: 2 244 | x: 384 245 | y: 256 246 | width: 128 247 | height: 128 248 | alignment: 0 249 | pivot: {x: 0.5, y: 0.5} 250 | border: {x: 0, y: 0, z: 0, w: 0} 251 | outline: [] 252 | physicsShape: [] 253 | tessellationDetail: 0 254 | bones: [] 255 | spriteID: 10a600f9329dc2246a897e89f4d283cd 256 | vertices: [] 257 | indices: 258 | edges: [] 259 | weights: [] 260 | - serializedVersion: 2 261 | name: EmojiOne_8 262 | rect: 263 | serializedVersion: 2 264 | x: 0 265 | y: 128 266 | width: 128 267 | height: 128 268 | alignment: 0 269 | pivot: {x: 0.5, y: 0.5} 270 | border: {x: 0, y: 0, z: 0, w: 0} 271 | outline: [] 272 | physicsShape: [] 273 | tessellationDetail: 0 274 | bones: [] 275 | spriteID: 66cffa363b90ab14787d8a5b90cf4502 276 | vertices: [] 277 | indices: 278 | edges: [] 279 | weights: [] 280 | - serializedVersion: 2 281 | name: EmojiOne_9 282 | rect: 283 | serializedVersion: 2 284 | x: 128 285 | y: 128 286 | width: 128 287 | height: 128 288 | alignment: 0 289 | pivot: {x: 0.5, y: 0.5} 290 | border: {x: 0, y: 0, z: 0, w: 0} 291 | outline: [] 292 | physicsShape: [] 293 | tessellationDetail: 0 294 | bones: [] 295 | spriteID: 55cf3d409c9b89349b1e1bdc1cc224ad 296 | vertices: [] 297 | indices: 298 | edges: [] 299 | weights: [] 300 | - serializedVersion: 2 301 | name: EmojiOne_10 302 | rect: 303 | serializedVersion: 2 304 | x: 256 305 | y: 128 306 | width: 128 307 | height: 128 308 | alignment: 0 309 | pivot: {x: 0.5, y: 0.5} 310 | border: {x: 0, y: 0, z: 0, w: 0} 311 | outline: [] 312 | physicsShape: [] 313 | tessellationDetail: 0 314 | bones: [] 315 | spriteID: 2a9e58eaf96feef42bcefa1cf257193f 316 | vertices: [] 317 | indices: 318 | edges: [] 319 | weights: [] 320 | - serializedVersion: 2 321 | name: EmojiOne_11 322 | rect: 323 | serializedVersion: 2 324 | x: 384 325 | y: 128 326 | width: 128 327 | height: 128 328 | alignment: 0 329 | pivot: {x: 0.5, y: 0.5} 330 | border: {x: 0, y: 0, z: 0, w: 0} 331 | outline: [] 332 | physicsShape: [] 333 | tessellationDetail: 0 334 | bones: [] 335 | spriteID: 2489120affc155840ae6a7be2e93ce19 336 | vertices: [] 337 | indices: 338 | edges: [] 339 | weights: [] 340 | - serializedVersion: 2 341 | name: EmojiOne_12 342 | rect: 343 | serializedVersion: 2 344 | x: 0 345 | y: 0 346 | width: 128 347 | height: 128 348 | alignment: 0 349 | pivot: {x: 0.5, y: 0.5} 350 | border: {x: 0, y: 0, z: 0, w: 0} 351 | outline: [] 352 | physicsShape: [] 353 | tessellationDetail: 0 354 | bones: [] 355 | spriteID: 412349a150598d14da4d7140df5c0286 356 | vertices: [] 357 | indices: 358 | edges: [] 359 | weights: [] 360 | - serializedVersion: 2 361 | name: EmojiOne_13 362 | rect: 363 | serializedVersion: 2 364 | x: 128 365 | y: 0 366 | width: 128 367 | height: 128 368 | alignment: 0 369 | pivot: {x: 0.5, y: 0.5} 370 | border: {x: 0, y: 0, z: 0, w: 0} 371 | outline: [] 372 | physicsShape: [] 373 | tessellationDetail: 0 374 | bones: [] 375 | spriteID: a937464b42bb3634782dea34c6becb6c 376 | vertices: [] 377 | indices: 378 | edges: [] 379 | weights: [] 380 | - serializedVersion: 2 381 | name: EmojiOne_5 382 | rect: 383 | serializedVersion: 2 384 | x: 256 385 | y: 0 386 | width: 128 387 | height: 128 388 | alignment: 0 389 | pivot: {x: 0, y: 0} 390 | border: {x: 0, y: 0, z: 0, w: 0} 391 | outline: [] 392 | physicsShape: [] 393 | tessellationDetail: 0 394 | bones: [] 395 | spriteID: b0f933b217682124dbfc5e6b89abe3d0 396 | vertices: [] 397 | indices: 398 | edges: [] 399 | weights: [] 400 | - serializedVersion: 2 401 | name: EmojiOne_14 402 | rect: 403 | serializedVersion: 2 404 | x: 128 405 | y: 256 406 | width: 128 407 | height: 128 408 | alignment: 0 409 | pivot: {x: 0, y: 0} 410 | border: {x: 0, y: 0, z: 0, w: 0} 411 | outline: [] 412 | physicsShape: [] 413 | tessellationDetail: 0 414 | bones: [] 415 | spriteID: f7235c763afe4434e8bb666750a41096 416 | vertices: [] 417 | indices: 418 | edges: [] 419 | weights: [] 420 | outline: [] 421 | physicsShape: [] 422 | bones: [] 423 | spriteID: 3e32d8f5477abfc43b19066e8ad5032e 424 | vertices: [] 425 | indices: 426 | edges: [] 427 | weights: [] 428 | spritePackingTag: 429 | userData: 430 | assetBundleName: 431 | assetBundleVariant: 432 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 DapperDino 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Logs/Packages-Update.log: -------------------------------------------------------------------------------- 1 | 2 | === Mon May 13 19:04:11 2019 3 | 4 | Packages were changed. 5 | Update Mode: mergeDefaultDependencies 6 | 7 | The following packages were updated: 8 | com.unity.analytics from version 3.2.2 to 3.3.2 9 | com.unity.collab-proxy from version 1.2.9 to 1.2.16 10 | com.unity.package-manager-ui from version 2.1.1 to 2.1.2 11 | com.unity.purchasing from version 2.0.1 to 2.0.6 12 | com.unity.textmeshpro from version 1.3.0 to 2.0.0 13 | com.unity.timeline from version 0.0.0-builtin to 1.0.0 14 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "3.3.2", 5 | "com.unity.collab-proxy": "1.2.16", 6 | "com.unity.package-manager-ui": "2.1.2", 7 | "com.unity.purchasing": "2.0.6", 8 | "com.unity.textmeshpro": "2.0.0", 9 | "com.unity.timeline": "1.0.0", 10 | "com.unity.modules.ai": "1.0.0", 11 | "com.unity.modules.animation": "1.0.0", 12 | "com.unity.modules.assetbundle": "1.0.0", 13 | "com.unity.modules.audio": "1.0.0", 14 | "com.unity.modules.cloth": "1.0.0", 15 | "com.unity.modules.director": "1.0.0", 16 | "com.unity.modules.imageconversion": "1.0.0", 17 | "com.unity.modules.imgui": "1.0.0", 18 | "com.unity.modules.jsonserialize": "1.0.0", 19 | "com.unity.modules.particlesystem": "1.0.0", 20 | "com.unity.modules.physics": "1.0.0", 21 | "com.unity.modules.physics2d": "1.0.0", 22 | "com.unity.modules.screencapture": "1.0.0", 23 | "com.unity.modules.terrain": "1.0.0", 24 | "com.unity.modules.terrainphysics": "1.0.0", 25 | "com.unity.modules.tilemap": "1.0.0", 26 | "com.unity.modules.ui": "1.0.0", 27 | "com.unity.modules.uielements": "1.0.0", 28 | "com.unity.modules.umbra": "1.0.0", 29 | "com.unity.modules.unityanalytics": "1.0.0", 30 | "com.unity.modules.unitywebrequest": "1.0.0", 31 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 32 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 33 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 34 | "com.unity.modules.unitywebrequestwww": "1.0.0", 35 | "com.unity.modules.vehicles": "1.0.0", 36 | "com.unity.modules.video": "1.0.0", 37 | "com.unity.modules.vr": "1.0.0", 38 | "com.unity.modules.wind": "1.0.0", 39 | "com.unity.modules.xr": "1.0.0" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffc9ffffffc9ffffffffffffffc9ffffffc9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 26 | m_ContactPairsMode: 0 27 | m_BroadphaseType: 0 28 | m_WorldBounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 250, y: 250, z: 250} 31 | m_WorldSubdivisions: 8 32 | m_FrictionType: 0 33 | m_EnableEnhancedDeterminism: 0 34 | m_EnableUnifiedHeightmaps: 1 35 | m_DefaultMaxAngularSpeed: 7 36 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/Scene_Main.unity 10 | guid: 2cda990e2423bbf4892e6590ba056729 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 1 11 | m_SpritePackerMode: 4 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 34 | m_PreloadedShaders: [] 35 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 36 | type: 0} 37 | m_CustomRenderPipeline: {fileID: 0} 38 | m_TransparencySortMode: 0 39 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 40 | m_DefaultRenderingPath: 1 41 | m_DefaultMobileRenderingPath: 1 42 | m_TierSettings: [] 43 | m_LightmapStripping: 0 44 | m_FogStripping: 0 45 | m_InstancingStripping: 0 46 | m_LightmapKeepPlain: 1 47 | m_LightmapKeepDirCombined: 1 48 | m_LightmapKeepDynamicPlain: 1 49 | m_LightmapKeepDynamicDirCombined: 1 50 | m_LightmapKeepShadowMask: 1 51 | m_LightmapKeepSubtractive: 1 52 | m_FogKeepLinear: 1 53 | m_FogKeepExp: 1 54 | m_FogKeepExp2: 1 55 | m_AlbedoSwatchInfos: [] 56 | m_LightsUseLinearIntensity: 0 57 | m_LightsUseColorTemperature: 0 58 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 0 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffc9ffffffc9ffffffffffffffc9ffffffc9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.1.0f2 2 | m_EditorVersionWithRevision: 2019.1.0f2 (292b93d75a2c) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 3 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 16 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 16 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 0 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 0 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 16 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 0 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 0 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 0 112 | billboardsFaceCameraPosition: 0 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 16 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 0 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 0 136 | antiAliasing: 0 137 | softParticles: 0 138 | softVegetation: 1 139 | realtimeReflectionProbes: 0 140 | billboardsFaceCameraPosition: 0 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 16 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 0 153 | shadowResolution: 0 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 0 164 | antiAliasing: 0 165 | softParticles: 0 166 | softVegetation: 1 167 | realtimeReflectionProbes: 0 168 | billboardsFaceCameraPosition: 0 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 16 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Standalone: 5 185 | Tizen: 2 186 | WebGL: 3 187 | WiiU: 5 188 | Windows Store Apps: 5 189 | XboxOne: 5 190 | iPhone: 2 191 | tvOS: 2 192 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_RenderPipeSettingsPath: 8 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tooltip-UI-Tutorial 2 | Repo for my "Tooltip UI Tutorial". 3 | --------------------------------------------------------------------------------