RaptorSuiteHierarchyDrag.NestRule
A module's drop rule.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | delegate | preview, since 0.1.0 |
public delegate bool NestRule(Transform target, GameObject go, out string refusal);Decides whether go may move under target. Return true to decide the drop and set refusal. Return false to leave the drop to other rules. Rules are not asked about drops on the scene root.
| Parameter | Type | Description |
|---|---|---|
target | Transform | The drop target. |
go | GameObject | The object being dragged. |
refusal | out string | Null allows the drop. An empty string refuses it without a message. Any other text is the refusal reason shown. |
Returns: True when this rule decides the drop.
Related types
- RaptorSuiteHierarchyDrag: Drag and drop in the Suite's Hierarchy panel.