Class AssetTypeExtensions
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public static class AssetTypeExtensions
Methods
AssetTypeList()
Returns a list of all the AssetType as strings.
Declaration
public static List<string> AssetTypeList()
Returns
Type | Description |
---|---|
List<string> | A collection of AssetType in their string representation. |
GetValueAsString(AssetType)
Returns the string value of the AssetType.
Declaration
public static string GetValueAsString(this AssetType assetType)
Parameters
Type | Name | Description |
---|---|---|
AssetType | assetType | An AssetType. |
Returns
Type | Description |
---|---|
string | The string representation of the AssetType. |
TryGetAssetTypeFromString(string, out AssetType)
Returns the AssetType from the string value.
Declaration
public static bool TryGetAssetTypeFromString(this string value, out AssetType assetType)
Parameters
Type | Name | Description |
---|---|---|
string | value | A string representation of the AssetType. |
AssetType | assetType | An AssetType. |
Returns
Type | Description |
---|---|
bool | Whether the string could be parsed into an AssetType. |