GameObj
GameObj<
T> =GameObjRaw&T
Defined in: packages/threeplay/src/core/types.ts:156
A game object. T holds the fields contributed by its components, so
add([pos(), health(3)]) returns an object typed with pos and hp.
Type Parameters
Section titled “Type Parameters”T = Record<string, any>