Abstract
Abstract
transformAbstract
worldAbstract
worldAbstract
worldAbstract
worldAbstract
worldAbstract
worldAbstract
worldAbstract
addAbstract
addAbstract
destroyAbstract
getAbstract
getAbstract
getAbstract
getAbstract
getAbstract
getAbstract
getAbstract
removeStatic
addStatic
addAdd a new component (or move an existing component) to the provided object
object to add the component to
if an instance is provided it will be moved to the new object, if a type is provided a new instance will be created and moved to the new object
Optional
init: Partial<NoInternalNeedleEngineState<FilterStartingWith<FilterTypes<T, Function>, "_">>>optional init object to initialize the component with
Optional
opts: { Static
addStatic
destroyStatic
destroyDestroys a object on all connected clients (if you are in a networked session)
object to destroy
Optional
context: ContextStatic
findStatic
findStatic
findStatic
foreachStatic
getStatic
getStatic
getStatic
getStatic
getStatic
getStatic
getStatic
getStatic
instantiateCreates a new instance of the provided object (like cloning it including all components and children)
object to instantiate
options for the instantiation (e.g. with what parent, position, etc.)
Static
instantiateCreates a new instance of the provided object. The new instance will be created on all connected clients
object to instantiate
options for the instantiation
Static
invokeStatic
invokeStatic
isIf the object is active in the hierarchy (e.g. if any parent is invisible or not in the scene it will be false)
object to check
Static
isIf the object is active (same as go.visible)
Static
isStatic
isStatic
iterateStatic
markStatic
moveStatic
removeStatic
removeStatic
setGenerated using TypeDoc
All {@type Object3D} types that are loaded in Needle Engine do automatically receive the GameObject extensions like
addComponent
etc.Many of the GameObject methods can be imported directly via
@needle-tools/engine
as well: