Search Results for

    Show / Hide Table of Contents

    Class FlexalonDragTarget

    A drag target allows a layout to accept dragged FlexalonInteractable objects.

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    FlexalonDragTarget
    Syntax
    [AddComponentMenu("Flexalon/Flexalon Drag Target")]
    [HelpURL("https://www.flexalon.com/docs/dragging")]
    [DisallowMultipleComponent]
    public class FlexalonDragTarget : MonoBehaviour

    Properties

    CanAddObjects

    Whether objects can be added to the layout by dragging them to this target.

    Declaration
    public bool CanAddObjects { get; set; }
    Property Value
    Type Description
    bool

    CanRemoveObjects

    Whether objects can be removed from the layout by dragging them from this target.

    Declaration
    public bool CanRemoveObjects { get; set; }
    Property Value
    Type Description
    bool

    DragTargets

    Declaration
    public static IReadOnlyCollection<FlexalonDragTarget> DragTargets { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<T><FlexalonDragTarget>

    Margin

    Extra margin around the layout size to use for hit testing.

    Declaration
    public Vector3 Margin { get; set; }
    Property Value
    Type Description
    UnityEngine.Vector3

    MaxObjects

    The maximum number of objects that can be added to the layout.

    Declaration
    public int MaxObjects { get; set; }
    Property Value
    Type Description
    int

    MinObjects

    The minimum number of objects that must remain in this layout.

    Declaration
    public int MinObjects { get; set; }
    Property Value
    Type Description
    int
    In This Article
    Back to top Flexalon 3D Layouts