9 if (selectedEntities.Find(parent) != -1)
13 parent = parent.GetParentEntity();
19 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
22 if (!layersManager || !layersManager.IsEditingLayersEnabled())
38 override bool CanBePerformed(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
41 if (!layersManager || !layersManager.IsEditingLayersEnabled())
46 if (ParentInSelection(entity, selectedEntities))
49 if (entity.GetParentEntity())
58 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
64 set<SCR_EditableEntityComponent> entitiesToMove =
new set<SCR_EditableEntityComponent>();
71 entitiesToMove.Insert(entity);
77 layersManager.MoveToLayerAndSelect(entitiesToMove,
null);