Skip to content

Commit 7ef290d

Browse files
committed
fix imports
1 parent b68e4ec commit 7ef290d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/BasicSystem.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect } from 'react'
22

3-
import { EntityUUID } from '@etherealengine/ecs'
3+
import { Engine, EntityUUID } from '@etherealengine/ecs'
44
import { isClient } from '@etherealengine/common/src/utils/getEnvironment'
55
import { SimulationSystemGroup, defineSystem, getComponent, setComponent } from '@etherealengine/ecs'
66
import { ECSState } from '@etherealengine/ecs/src/ECSState'
@@ -123,7 +123,11 @@ const execute = () => {
123123
counter = 0
124124

125125
const entityUUID = `basic-${elapsedSeconds}` as EntityUUID
126-
const action = BasicActions.spawnAction({ entityUUID, position: new Vector3(Math.random(), 1, Math.random()) })
126+
const action = BasicActions.spawnAction({
127+
parentUUID: getComponent(Engine.instance.originEntity, UUIDComponent),
128+
entityUUID,
129+
position: new Vector3(Math.random(), 1, Math.random())
130+
})
127131
dispatchAction(action)
128132
}
129133

0 commit comments

Comments
 (0)