blob: 3abf9897bf84c0c05ef91156733cd3bf45fa5d53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#if UNITY_EDITOR
using UnityEngine;
using System.Collections;
using XUtliPoolLib;
using UnityEditor;
public class XResourceHelp : MonoBehaviour, IResourceHelp
{
public bool Deprecated
{
get;
set;
}
public void CheckResource(UnityEngine.Object o, string path)
{
#if UNITY_EDITOR
string p = AssetDatabase.GetAssetPath(o);
string s = "Assets/Resources/";
if (s.Length < p.Length)
{
string t = p.Substring(s.Length);
if(t.IndexOf(path) != 0)
XDebug.singleton.AddErrorLog("找海公:" + path);
}
#endif
}
}
#endif
|