Appearance
@tmrw-realityos/world • Docs
@tmrw-realityos/world / Components / PrefabRenderer
Class: PrefabRenderer
Prefab renderer component
Extends
Constructors
new PrefabRenderer()
new PrefabRenderer():
PrefabRenderer
Returns
Overrides
Defined in
world/components/prefabRenderer.ts:43
Properties
animationMode
animationMode:
eAnimationMode
=0
Defined in
world/components/prefabRenderer.ts:37
currentTime
currentTime:
number
=0
Defined in
world/components/prefabRenderer.ts:36
enabled
enabled:
boolean
=true
Inherited from
Defined in
mustSave
mustSave:
boolean
=true
Inherited from
Defined in
parent?
optional
parent:ComponentsContainer
Inherited from
Defined in
uid
uid:
string
=""
Inherited from
Defined in
url
url:
string
=""
Defined in
world/components/prefabRenderer.ts:35
compName
static
compName:string
="PrefabRenderer"
Overrides
Defined in
world/components/prefabRenderer.ts:33
Accessors
entity
get
entity():undefined
|Entity
set
entity(_v
):void
Parameters
• _v: Entity
Returns
undefined
| Entity
Inherited from
Defined in
Methods
configure()
configure(
o
):void
Parameters
Returns
void
Overrides
Defined in
world/components/prefabRenderer.ts:153
getCompName()
getCompName():
string
Returns
string
Inherited from
Defined in
loadPrefab()
loadPrefab():
void
Returns
void
Defined in
world/components/prefabRenderer.ts:58
onAdded()?
optional
onAdded():void
Returns
void
Inherited from
Defined in
onClick()?
optional
onClick():void
Returns
void
Inherited from
Defined in
onGLTFProcess()
onGLTFProcess(
gltf
,_url
,gltfToNodes
):void
Parameters
• gltf: GlTf
• _url: string
• gltfToNodes: GltfToNodes
Returns
void
Defined in
world/components/prefabRenderer.ts:87
onRemoved()?
optional
onRemoved():void
Returns
void
Inherited from
Defined in
onUpdate()
onUpdate(
dt
):void
Parameters
• dt: number
Returns
void
Overrides
Defined in
world/components/prefabRenderer.ts:47
serialize()
serialize():
void
Returns
void
Inherited from
Defined in
updateMaterials()
updateMaterials():
void
updates materials from GLTF with the custom ones found in the JSON of this component
Returns
void