Preparing search index...
The search index is not available
elixr
elixr
GameObject
Class GameObject<TEventMap>
Type Parameters
TEventMap
extends
Object3DEventMap
=
Object3DEventMap
Hierarchy
Object3D
<
TEventMap
>
GameObject
Rigidbody
Player
XRController
Implements
EntityLike
Index
Constructors
constructor
Properties
active
component
Mask
is
Game
Object
Methods
add
Component
clone
copy
destroy
get
Component
get
Component
Types
has
Component
remove
Component
Constructors
constructor
new
Game
Object
<
TEventMap
>
(
world
:
World
)
:
GameObject
<
TEventMap
>
Type Parameters
TEventMap
extends
Object3DEventMap
=
Object3DEventMap
Parameters
world:
World
Returns
GameObject
<
TEventMap
>
Properties
active
active
:
boolean
= true
component
Mask
component
Mask
:
number
= 0
Readonly
is
Game
Object
is
Game
Object
:
boolean
= true
Methods
add
Component
add
Component
<
T
>
(
componentClass
:
T
, initialData
?:
{
[key:
string
]
:
any
;
}
)
:
Component
Type Parameters
T
extends
typeof
Component
Parameters
componentClass:
T
initialData:
{
[key:
string
]
:
any
;
}
= {}
[
key:
string
]:
any
Returns
Component
clone
clone
(
_recursive
?:
boolean
)
:
GameObject
<
TEventMap
>
Parameters
Optional
_recursive:
boolean
Returns
GameObject
<
TEventMap
>
copy
copy
(
_source
:
GameObject
<
TEventMap
>
, _recursive
?:
boolean
)
:
GameObject
<
TEventMap
>
Parameters
_source:
GameObject
<
TEventMap
>
Optional
_recursive:
boolean
Returns
GameObject
<
TEventMap
>
destroy
destroy
(
)
:
void
Returns
void
get
Component
get
Component
<
T
>
(
componentClass
:
{
bitmask
:
number
;
defaults
:
{
[key:
string
]
:
any
;
}
;
new
(
_cm
:
ComponentManager
, _mi
:
number
)
:
T
;
}
)
:
T
Type Parameters
T
extends
Component
<
T
>
Parameters
componentClass:
{
bitmask
:
number
;
defaults
:
{
[key:
string
]
:
any
;
}
;
new
(
_cm
:
ComponentManager
, _mi
:
number
)
:
T
;
}
new
(
_cm
:
ComponentManager
, _mi
:
number
)
:
T
Parameters
_cm:
ComponentManager
_mi:
number
Returns
T
bitmask
:
number
defaults
:
{
[key:
string
]
:
any
;
}
[
key:
string
]:
any
Returns
T
get
Component
Types
get
Component
Types
(
)
:
typeof
Component
[]
Returns
typeof
Component
[]
has
Component
has
Component
<
T
>
(
componentClass
:
T
)
:
boolean
Type Parameters
T
extends
typeof
Component
Parameters
componentClass:
T
Returns
boolean
remove
Component
remove
Component
<
T
>
(
componentClass
:
T
)
:
void
Type Parameters
T
extends
typeof
Component
Parameters
componentClass:
T
Returns
void
GitHub
NPM
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Modules
elixr
Game
Object
constructor
active
component
Mask
is
Game
Object
add
Component
clone
copy
destroy
get
Component
get
Component
Types
has
Component
remove
Component