docs.unity.cn
    Show / Hide Table of Contents

    Class AssetReferenceUILabelRestriction

    Used to restrict an AssetReference field or property to only allow items wil specific labels. This is only enforced through the UI.

    Inheritance
    Object
    AssetReferenceUIRestriction
    AssetReferenceUILabelRestriction
    Namespace: UnityEngine
    Syntax
    public sealed class AssetReferenceUILabelRestriction : AssetReferenceUIRestriction

    Constructors

    Name Description
    AssetReferenceUILabelRestriction(String[])

    Creates a new AssetReferenceUILabelRestriction object.

    Fields

    Name Description
    m_AllowedLabels

    Stores the labels allowed for the AssetReference.

    m_CachedToString

    Stores the allowed labels formatted as a string.

    Methods

    Name Description
    ToString()

    Converts the information about the allowed labels to a formatted string.

    ValidateAsset(String)

    Validates that the referenced asset allowable for this asset reference.

    ValidateAsset(Object)

    Validates that the referenced asset allowable for this asset reference.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use