class MAGES::SceneGraph::DontDisplayOnActionAttribute

Overview

Used on serialized properties declared inside EffectData. Hides the specified property from the inspector when the action is of the specified type. More…

class DontDisplayOnActionAttribute: public MAGES::SceneGraph::EffectPropertyAttribute
{
public:
    // methods

    DontDisplayOnActionAttribute(params System.Type[] hideActionTypes);
    virtual override bool IsApplicable(System.Type actionDataType);
};

Inherited Members

public:
    // methods

    virtual abstract bool IsApplicable(System.Type actionDataType) = 0;

Detailed Documentation

Used on serialized properties declared inside EffectData. Hides the specified property from the inspector when the action is of the specified type.

Methods

DontDisplayOnActionAttribute(params System.Type[] hideActionTypes)

Initializes a new instance of the DontDisplayOnActionAttribute class.

Parameters:

hideActionTypes

The actions to hide this property from.

virtual override bool IsApplicable(System.Type actionDataType)

Returns true if the attribute is applicable to the given action data type.

Parameters:

actionDataType

The action data type context.

Returns:

Whether (or not) this property is applicable to the action type.