Class AssetReferenceConstraintAttribute
[AttributeUsage(AttributeTargets.Field)]
public class AssetReferenceConstraintAttribute : PropertyAttribute
- Inheritance
-
AssetReferenceConstraintAttribute
Constructors
AssetReferenceConstraintAttribute(Type, string, string, bool, bool)
public AssetReferenceConstraintAttribute(Type assetType = null, string formatter = null, string group = null, bool forceGroup = false, bool registerAddressable = true)
Parameters
Properties
AssetType
Asset type to select
public Type AssetType { get; }
Property Value
ForceGroup
Enable to move asset entry to defined group if already in other asset group
public bool ForceGroup { get; }
Property Value
Formatter
Formatter method to get customized address
public string Formatter { get; }
Property Value
Group
Group to register referenced asset, default use AddressableAssetSettingsDefaultObject.Settings.DefaultGroup
public string Group { get; }
Property Value
RegisterAddressable
Register the referenced asset in AddressableAssetSettings. Disable for pipeline-managed references.
public bool RegisterAddressable { get; }