feat: TextMeshPro support

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.
vr
mob-sakai 2020-06-04 12:22:12 +09:00
parent 1b3a25e195
commit 5b0906b608
9 changed files with 50 additions and 36 deletions

View File

@ -1,7 +1,9 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 935b7be1c88464d2eb87204fdfab5a38 guid: 935b7be1c88464d2eb87204fdfab5a38
ShaderImporter: ShaderImporter:
externalObjects: {}
defaultTextures: [] defaultTextures: []
nonModifiableTextures: []
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

View File

@ -1,7 +1,9 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: e65241fa80a374114b3f55ed746c04d9 guid: e65241fa80a374114b3f55ed746c04d9
ShaderImporter: ShaderImporter:
externalObjects: {}
defaultTextures: [] defaultTextures: []
nonModifiableTextures: []
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

View File

@ -1,9 +1,9 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 94593ebff37d04a64936ebe46ce7e769 guid: 94593ebff37d04a64936ebe46ce7e769
timeCreated: 1450517184
licenseType: Pro
ShaderImporter: ShaderImporter:
externalObjects: {}
defaultTextures: [] defaultTextures: []
nonModifiableTextures: []
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

View File

@ -8,13 +8,18 @@ namespace Coffee.UISoftMask
{ {
public static class ImportSampleMenu public static class ImportSampleMenu
{ {
[MenuItem("Assets/Samples/Import UISoftMask Sample")] private const string jsonGuid = "c43fd233e88b347cdabc530c23ffe30a";
private static void ImportSample()
{
const string jsonGuid = "c43fd233e88b347cdabc530c23ffe30a";
const string dirName = "Demo";
ImportSample(jsonGuid, dirName); [MenuItem("Assets/Samples/UISoftMask/Import Demo")]
private static void ImportDemo()
{
ImportSample(jsonGuid, "Demo");
}
[MenuItem("Assets/Samples/UISoftMask/Import TextMeshPro Support")]
private static void ImportTextMeshProSupport()
{
ImportSample(jsonGuid, "TextMeshProSupport");
} }
private static void ImportSample(string jsonGuid, string sampleName) private static void ImportSample(string jsonGuid, string sampleName)

View File

@ -1,29 +1,34 @@
{ {
"name": "com.coffee.softmask-for-ugui", "name": "com.coffee.softmask-for-ugui",
"displayName": "UI Soft Mask", "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.", "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", "version": "1.0.0-preview.2",
"unity": "2017.1", "unity": "2017.1",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/mob-sakai/SoftMaskForUGUI.git" "url": "git+https://github.com/mob-sakai/SoftMaskForUGUI.git"
}, },
"author": { "author": {
"name": "mob-sakai", "name": "mob-sakai",
"email": "sakai861104@gmail.com", "email": "sakai861104@gmail.com",
"url": "https://github.com/mob-sakai" "url": "https://github.com/mob-sakai"
}, },
"dependencies": {}, "dependencies": {},
"keywords": [ "keywords": [
"ui", "ui",
"softmask" "softmask"
], ],
"samples": [ "samples": [
{ {
"displayName": "Demo", "displayName": "Demo",
"description": "UI Soft Mask Demo", "description": "UI Soft Mask Demo",
"path": "Samples~/Demo" "path": "Samples~/Demo"
} },
] {
} "displayName": "TextMeshPro Support",
"description": "TextMeshPro Support",
"path": "Samples~/TextMeshPro Support"
}
]
}