class MAGES::HardAssetReferenceAttribute

Overview

An attribute used on strings to signal that the string indicates a path into the project folder. More…

class HardAssetReferenceAttribute: public System.Attribute
{
public:
    // enums

    enum Type;

    // properties

    bool IsRuntime;

    // methods

    HardAssetReferenceAttribute(Type type);
    static IEnumerable Query(HardAssetReferenceAttribute.Type? type = null);
};

Detailed Documentation

An attribute used on strings to signal that the string indicates a path into the project folder.

Properties

bool IsRuntime

Gets a value indicating whether the reference is for a prefab that is used during play mode.

Methods

HardAssetReferenceAttribute(Type type)

Initializes a new instance of the HardAssetReferenceAttribute class.

This attribute can only be used in string fields.

Parameters:

type

The type of the hard prefab reference.

static IEnumerable Query(HardAssetReferenceAttribute.Type? type = null)

Shorthand for querying all fields with the hard prefab reference attribute.

Parameters:

type

The type of the reference.

Returns:

The reference.