[unity] Move asset inspector scripts to the main Editor folder.

This commit is contained in:
pharan 2017-12-15 09:41:59 +08:00
parent b06dc2134d
commit 21d56f4b98
5 changed files with 366 additions and 375 deletions

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: cbe5d97ed1d75964cab2e2882a52a200
folderAsset: yes
timeCreated: 1455489536
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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;
}