docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AssetTypeExtensions

    Inheritance
    object
    AssetTypeExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)