Get RAPTOR

RaptorSuiteHierarchyDrag.NestRule

A module's drop rule.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editordelegatepreview, 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.

ParameterTypeDescription
targetTransformThe drop target.
goGameObjectThe object being dragged.
refusalout stringNull 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.