Class FlexalonDragTarget
A drag target allows a layout to accept dragged FlexalonInteractable objects.
Inheritance
object
FlexalonDragTarget
Syntax
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 |
---|---|
IReadOnlyCollection<><FlexalonDragTarget> |
Margin
Extra margin around the layout size to use for hit testing.
Declaration
public Vector3 Margin { get; set; }
Property Value
Type | Description |
---|---|
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 |