DuplicateAssetWithVariant() public static method

public static DuplicateAssetWithVariant ( Asset asset, string variantName ) : Asset
asset Asset
variantName string
return Asset
Exemplo n.º 1
0
        public List <Asset> ConfigureAssetBundleSettings(string variantName, List <Asset> assets)
        {
            List <Asset> configuredAssets = new List <Asset>();

            foreach (var a in assets)
            {
                configuredAssets.Add(Asset.DuplicateAssetWithVariant(a, variantName));
            }

            return(configuredAssets);
        }
        public List <Asset> ConfigureAssetBundleSettings(string variantName, List <Asset> assets)
        {
            List <Asset> configuredAssets = new List <Asset>();

            foreach (var a in assets)
            {
                var lowerName = (string.IsNullOrEmpty(variantName))? variantName : variantName.ToLower();
                configuredAssets.Add(Asset.DuplicateAssetWithVariant(a, lowerName));
            }

            return(configuredAssets);
        }