Skip to content

Commit

Permalink
Merge pull request #3 from EtherealEngine/rename-scene-gltf-source
Browse files Browse the repository at this point in the history
rename-scene-gltf-source
  • Loading branch information
HexaField authored Apr 4, 2024
2 parents e250853 + bbf65d6 commit 876cf8f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/BubbleEmitterComponent.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { EntityUUID } from '@etherealengine/ecs'
import {
createEntity,
defineComponent,
Entity,
EntityUUID,
getComponent,
getMutableComponent,
removeEntity,
setComponent,
SimulationSystemGroup,
useComponent,
useEntityContext,
useExecute
useExecute,
UUIDComponent
} from '@etherealengine/ecs'

import { getState, NO_PROXY } from '@etherealengine/hyperflux'
Expand Down Expand Up @@ -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])
}

Expand Down

0 comments on commit 876cf8f

Please sign in to comment.