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
Assembly: Unity.Addressables.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public sealed class AssetReferenceUILabelRestriction : AssetReferenceUIRestriction
Constructors
Name | Description |
---|---|
Asset |
Creates a new AssetReferenceUILabelRestriction object. |
Fields
Name | Description |
---|---|
m_Allowed |
Stores the labels allowed for the AssetReference. |
m_Cached |
Stores the allowed labels formatted as a string. |
Methods
Name | Description |
---|---|
To |
Converts the information about the allowed labels to a formatted string. |
Validate |
Validates that the referenced asset allowable for this asset reference. |
Validate |
Validates that the referenced asset allowable for this asset reference. |