BitmapSaverWindow.CheckFileAsset C# (CSharp) Method

CheckFileAsset() private method

private CheckFileAsset ( string file ) : bool
file string
return bool
    private bool CheckFileAsset( string file )
    {
        Texture2D _texture = Resources.LoadAssetAtPath( file, typeof(Texture2D) ) as Texture2D;
        string 	  _path = AssetDatabase.GetAssetPath( _texture );

        if(_path != "" ) return true;

        return false;
    }