public static StringToAssetType ( string type ) : AssetType | ||
type | string | A string containing the AssetType name |
return | AssetType |
public static AssetType StringToAssetType(string type)
{
for (int i = 0; i < _AssetTypeNames.Length; i++)
{
if (_AssetTypeNames[i] == type)
return (AssetType)i;
}
return AssetType.Unknown;
}