class MAGES::SceneGraph::SnapObjectBehavior

Overview

A behavior that can be attached to an object to allow other objects to snap to it. More…

class SnapObjectBehavior: public MonoBehaviour
{
public:
    // properties

    UnityEvent ObjectSnapped;
    GameObject[] AcceptedObjects;
};

Detailed Documentation

A behavior that can be attached to an object to allow other objects to snap to it.

Properties

UnityEvent ObjectSnapped

Gets the event that is triggered when an object is snapped to this object.

GameObject[] AcceptedObjects

Gets or sets the list of objects that can snap to this object.