AssetPackager.Assets.AssetList.FindAsset C# (CSharp) Метод

FindAsset() публичный Метод

Gets an Asset object for specified relative path whoose name is in the assetNames list.
public FindAsset ( string relativePath, string assetNames ) : Asset
relativePath string Relative asset path to look for.
assetNames string A list of asset names to look where.
Результат Asset
		public Asset FindAsset(string relativePath, string[] assetNames)
		{
			foreach (Asset asset in Assets)
			{
				if (String.CompareOrdinal(relativePath, asset.RelativePath) == 0 && Array.IndexOf(assetNames, asset.Name) >= 0)
					return asset;
			}
			return null;
		}

Same methods

AssetList::FindAsset ( string relativePath ) : Asset