class MAGES::SceneGraph::RemoveBehavior

Overview

Behavior to be attached to the removable Objects. More…

class RemoveBehavior: public MAGES::SceneGraph::BaseBehavior
{
public:
    // properties

    UnityEvent OnRemoved;
    float ReleaseDistance;
    bool PeformOnObjectRelease;
    RemoveActionData.LockAxis AxisToLock;
    bool DestroyObjectOnRemove;

    // methods

    void Start();
    void Update();
    void FinalizeAction();
};

Inherited Members

public:
    // properties

    string ObjectID;
    BaseActionData ActionData;

Detailed Documentation

Behavior to be attached to the removable Objects.

Properties

UnityEvent OnRemoved

Gets the event.

float ReleaseDistance

Gets or sets a value indicating the distance for the object to unlock from its axis so we can freely handle it.

bool PeformOnObjectRelease

Gets or sets a value indicating whether the action performs.

RemoveActionData.LockAxis AxisToLock

Gets or sets a value indicating the axis to lock the object during its removal.

bool DestroyObjectOnRemove

Gets or sets a value indicating whether to destroy the object on remove.

Methods

void Start()

Initialize the Remove Behavior.

void Update()

Update the Remove Behavior.

void FinalizeAction()

Finalize the Action by removing all restrictions.