We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 845c307 commit 2a1ce79Copy full SHA for 2a1ce79
src/Hello2.ts
@@ -1,4 +1,4 @@
1
-import { ECS } from '@ir-engine/ecs'
+import { ECS, S } from '@ir-engine/ecs'
2
import { PrimitiveGeometryComponent } from '@ir-engine/engine/src/scene/components/PrimitiveGeometryComponent'
3
import { GeometryTypeEnum } from '@ir-engine/engine/src/scene/constants/GeometryTypeEnum'
4
import { PhysicsSystem } from '@ir-engine/spatial'
@@ -11,10 +11,7 @@ import { Vector3 } from 'three'
11
const HelloComponent = ECS.defineComponent({
12
name: 'ee.hello-tutorial.HelloComponent',
13
jsonID: 'EE_tutorial_hello',
14
-
15
- onInit() {
16
- return { initialized: false }
17
- }
+ schema: S.Object({ initialized: S.Bool(false) })
18
})
19
20
// Define our query
0 commit comments