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 | 
|---|---|
| AssetReferenceUILabelRestriction(params 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.  |