예제 #1
0
        static bool TypeExists(string fileLabel, string typename)
        {
            var type = Utilites.GetType(typename);

            if (type == null)
            {
                return(false);
            }

            var path   = Utilites.GetAssetPath(fileLabel);
            var script = AssetDatabase.LoadAssetAtPath(path, typeof(MonoScript)) as MonoScript;

            if ((script == null) || (script.GetClass() != null))
            {
                return(false);
            }

            return(true);
        }