Loading...
Searching...
No Matches
UniqueAttribute Interface Reference

An attribute used to specify that an attribute class is unique. More...

Inheritance diagram for UniqueAttribute:
Attribute BTNodeAttribute BaseContainerCustomTitle BaseContainerVersion ButtonAttribute CinematicEventAttribute CinematicTrackAttribute CommonEditorProps EventAttribute MenuBindAttribute NonSerialized ReceiverAttribute RplBeforeExtracted RplBeforeInjected RplProp RplRpc ScriptValueAttribute SortAttribute WorkbenchPluginAttribute

Detailed Description

An attribute used to specify that an attribute class is unique.

If some attribute is inherited from UniqueAttribute, only the last attribute of the kind is taken into account.

// Attributes declaration:
class AttributeA : UniqueAttribute;
class AttributeB : AttributeA;
class AttributeC : UniqueAttribute;
// Attributes usage:
[AttributeA(), AttributeB(), AttributeC()]
class SomeClass;
// AttributeA and AttributeB are of the same kind and inherits from UniqueAttribute, so only the last one is used.
// The final result after compilation:
[AttributeB(), AttributeC()]
class SomeClass;
An attribute used to specify that an attribute class is unique.
Definition UniqueAttribute.c:32

The documentation for this interface was generated from the following file: