public void UpdateSelectionPosition(Vector3 newPosition) { if (selectedEntities.Count != 1) { return; } editionGO.transform.position = WorldStateUtils.ConvertSceneToUnityPosition(newPosition, sceneToEdit); UpdateGizmosToSelectedEntities(); }
public void UpdateSelectionPosition(Vector3 newPosition) { if (selectedEntities.Count != 1) { return; } TransformActionStarted(selectedEntities[0].rootEntity, BIWSettings.TRANSLATE_GIZMO_NAME); editionGO.transform.position = WorldStateUtils.ConvertSceneToUnityPosition(newPosition, sceneToEdit); UpdateGizmosToSelectedEntities(); TransformActionEnd(selectedEntities[0].rootEntity, BIWSettings.TRANSLATE_GIZMO_NAME); ActionFinish(BIWCompleteAction.ActionType.MOVE); entityHandler.ReportTransform(true); saveController.TryToSave(); }