public void SendEntitySelected(EditableEntity entity, string gizmoType, string sceneId) { onGizmoEventPayload.type = "gizmoSelected"; onGizmoEventPayload.entities = entity ? new string[] { entity.rootEntity.entityId } : null; onGizmoEventPayload.gizmoType = gizmoType != null ? gizmoType : DCLGizmos.Gizmo.NONE; onGizmoEventPayload.transforms = null; if (LOG_MESSAGES) { Debug.Log($"SEND: NotifyGizmosSelectedEvent {JsonUtility.ToJson(onGizmoEventPayload)}"); } WebInterface.SendSceneEvent(sceneId, "gizmoEvent", onGizmoEventPayload); }
private void Deselect(EditableEntity entity) { if (entity != null) { SelectionParentRemoveEntity(entity); OnDeselectedObject?.Invoke(entity); entity.SetDefaultLayer(); } if (selectedEntities.Contains(entity)) { selectedEntities.Remove(entity); } isDirty = true; }
private void NotifyGizmosSelectedEvent(EditableEntity entity, string gizmoType) { builderWebInterface.SendEntitySelected(entity, gizmoType, currentScene.sceneData.id); }
private void OnObjectSelected(EditableEntity entity, string gizmoType) { NotifyGizmosSelectedEvent(entity, gizmoType); }
private void SelectionParentRemoveEntity(EditableEntity entity) { SelectionParentRemoveEntity(entity.transform); }
protected virtual void SetFilters(EditableEntity entity) { }