private bool HasValidExtension(Object asset, string requiredExtension)
        {
            var assetPath      = SA_AssetDatabase.GetAssetPath(asset);
            var assetExtension = SA_PathUtil.GetExtension(assetPath);

            if (assetExtension.Equals(requiredExtension))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
        /// <summary>
        /// Delete's asset instance
        /// </summary>
        public static void Delete()
        {
            string path = SA_AssetDatabase.GetAssetPath(Instance);

            SA_AssetDatabase.DeleteAsset(path);
        }