Skip to content

Commit

Permalink
feat: TextMeshPro support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: TextMeshPro support is now an option.
If a shader or material has errors after a version upgrade, you will need to import the asset.
Please see the README for more information.
  • Loading branch information
mob-sakai committed Jun 4, 2020
1 parent 1b3a25e commit 5b0906b
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 35 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions Packages/SoftMaskForUGUI/Scripts/Editor/ImportSampleMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ namespace Coffee.UISoftMask
{
public static class ImportSampleMenu
{
[MenuItem("Assets/Samples/Import UISoftMask Sample")]
private static void ImportSample()
private const string jsonGuid = "c43fd233e88b347cdabc530c23ffe30a";

[MenuItem("Assets/Samples/UISoftMask/Import Demo")]
private static void ImportDemo()
{
const string jsonGuid = "c43fd233e88b347cdabc530c23ffe30a";
const string dirName = "Demo";
ImportSample(jsonGuid, "Demo");
}

ImportSample(jsonGuid, dirName);
[MenuItem("Assets/Samples/UISoftMask/Import TextMeshPro Support")]
private static void ImportTextMeshProSupport()
{
ImportSample(jsonGuid, "TextMeshProSupport");
}

private static void ImportSample(string jsonGuid, string sampleName)
Expand Down
61 changes: 33 additions & 28 deletions Packages/SoftMaskForUGUI/package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
{
"name": "com.coffee.softmask-for-ugui",
"displayName": "UI Soft Mask",
"description": "UI Soft Mask is a smooth masking component for Unity UI (uGUI) elements.\nBy using SoftMask instead of the default Mask component, you can beautifully represent the rounded edges of UI elements.",
"version": "1.0.0-preview.2",
"unity": "2017.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/mob-sakai/SoftMaskForUGUI.git"
},
"author": {
"name": "mob-sakai",
"email": "[email protected]",
"url": "https://github.com/mob-sakai"
},
"dependencies": {},
"keywords": [
"ui",
"softmask"
],
"samples": [
{
"displayName": "Demo",
"description": "UI Soft Mask Demo",
"path": "Samples~/Demo"
}
]
}
"name": "com.coffee.softmask-for-ugui",
"displayName": "UI Soft Mask",
"description": "UI Soft Mask is a smooth masking component for Unity UI (uGUI) elements.\nBy using SoftMask instead of the default Mask component, you can beautifully represent the rounded edges of UI elements.",
"version": "1.0.0-preview.2",
"unity": "2017.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/mob-sakai/SoftMaskForUGUI.git"
},
"author": {
"name": "mob-sakai",
"email": "[email protected]",
"url": "https://github.com/mob-sakai"
},
"dependencies": {},
"keywords": [
"ui",
"softmask"
],
"samples": [
{
"displayName": "Demo",
"description": "UI Soft Mask Demo",
"path": "Samples~/Demo"
},
{
"displayName": "TextMeshPro Support",
"description": "TextMeshPro Support",
"path": "Samples~/TextMeshPro Support"
}
]
}

0 comments on commit 5b0906b

Please sign in to comment.