From bbf65d67ad1b3fc6376a11d1f661fefed8d846cb Mon Sep 17 00:00:00 2001 From: HexaField Date: Mon, 1 Apr 2024 20:29:56 -0700 Subject: [PATCH] rename-scene-gltf-source --- src/components/BubbleEmitterComponent.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/BubbleEmitterComponent.ts b/src/components/BubbleEmitterComponent.ts index a822272..5c549be 100644 --- a/src/components/BubbleEmitterComponent.ts +++ b/src/components/BubbleEmitterComponent.ts @@ -1,8 +1,8 @@ -import { EntityUUID } from '@etherealengine/ecs' import { createEntity, defineComponent, Entity, + EntityUUID, getComponent, getMutableComponent, removeEntity, @@ -10,7 +10,8 @@ import { SimulationSystemGroup, useComponent, useEntityContext, - useExecute + useExecute, + UUIDComponent } from '@etherealengine/ecs' import { getState, NO_PROXY } from '@etherealengine/hyperflux' @@ -105,10 +106,8 @@ export const BubbleEmitterComponent = defineComponent({ //For example ensuring there is only one bubble being added const bubbleEntity = createEntity() setComponent(bubbleEntity, BubbleComponent) - setComponent(bubbleEntity, EntityTreeComponent, { - parentEntity: entity, - uuid: MathUtils.generateUUID() as EntityUUID - }) + setComponent(bubbleEntity, EntityTreeComponent, { parentEntity: entity }) + setComponent(bubbleEntity, UUIDComponent, MathUtils.generateUUID() as EntityUUID) emitterComponent.bubbleEntities.merge([bubbleEntity]) }