Class AssetReferenceUILabelRestriction
Used to restrict an AssetReference field or property to only allow items wil specific labels. This is only enforced through the UI.
Inherited Members
Namespace: UnityEngine
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class AssetReferenceUILabelRestriction : AssetReferenceUIRestriction, _Attribute
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. |