12 foreach (var list
in FindObjectsOfType<ReorderableList>())
14 list.OnElementDropped.AddListener(ElementDropped);
21 DebugLabel.text +=
"Dropped Object: " + droppedStruct.DroppedObject.name +
"\n";
22 DebugLabel.text +=
"Is Clone ?: " + droppedStruct.IsAClone +
"\n";
23 if (droppedStruct.IsAClone)
24 DebugLabel.text +=
"Source Object: " + droppedStruct.SourceObject.name +
"\n";
25 DebugLabel.text +=
string.Format(
"From {0} at Index {1} \n", droppedStruct.FromList.name, droppedStruct.FromIndex);
26 DebugLabel.text +=
string.Format(
"To {0} at Index {1} \n", droppedStruct.ToList.name, droppedStruct.ToIndex);
Credit Erdener Gonenc - @PixelEnvision.