docs.unity.cn
    Show / Hide Table of Contents

    Class AssetReferenceUIRestriction

    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 class AssetReferenceUIRestriction : Attribute

    Methods

    Name Description
    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