Class AssetReferenceUILabelRestriction
Used to restrict an AssetReference field or property to only allow items wil specific labels. This is only enforced through the UI.
구현
상속된 멤버
네임스페이스: UnityEngine
어셈블리: solution.dll
구문
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public sealed class AssetReferenceUILabelRestriction : AssetReferenceUIRestriction, _Attribute
생성자
| 이름 | 설명 |
|---|---|
| AssetReferenceUILabelRestriction(params string[]) | Creates a new AssetReferenceUILabelRestriction object. |
필드
| 이름 | 설명 |
|---|---|
| m_AllowedLabels | Stores the labels allowed for the AssetReference. |
| m_CachedToString | Stores the allowed labels formatted as a string. |
메서드
| 이름 | 설명 |
|---|---|
| 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. |