mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Move asset inspector scripts to the main Editor folder.
This commit is contained in:
parent
b06dc2134d
commit
21d56f4b98
@ -1,9 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cbe5d97ed1d75964cab2e2882a52a200
|
||||
folderAsset: yes
|
||||
timeCreated: 1455489536
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -126,8 +126,8 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
for (int i = 0; i < materials.arraySize; i++) {
|
||||
SerializedProperty prop = materials.GetArrayElementAtIndex(i);
|
||||
Material mat = (Material)prop.objectReferenceValue;
|
||||
if (mat == null) {
|
||||
var material = (Material)prop.objectReferenceValue;
|
||||
if (material == null) {
|
||||
EditorGUILayout.HelpBox("Materials cannot be null.", MessageType.Error);
|
||||
return;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user