DuplicateAssetWithVariant() 공개 정적인 메소드

public static DuplicateAssetWithVariant ( Asset asset, string variantName ) : Asset
asset Asset
variantName string
리턴 Asset
예제 #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);
        }