Table of Contents

Class AssetReferenceConstraintAttribute

Namespace
Ceres.Resource
Assembly
Ceres.dll
[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

assetType Type
formatter string
group string
forceGroup bool
registerAddressable bool

Properties

AssetType

Asset type to select

public Type AssetType { get; }

Property Value

Type

ForceGroup

Enable to move asset entry to defined group if already in other asset group

public bool ForceGroup { get; }

Property Value

bool

Formatter

Formatter method to get customized address

public string Formatter { get; }

Property Value

string

Group

Group to register referenced asset, default use AddressableAssetSettingsDefaultObject.Settings.DefaultGroup

public string Group { get; }

Property Value

string

RegisterAddressable

Register the referenced asset in AddressableAssetSettings. Disable for pipeline-managed references.

public bool RegisterAddressable { get; }

Property Value

bool