API Reference › Globals › StaticItemLoader
# Class: StaticItemLoader
# Hierarchy
- StaticItemLoader
# Implements
# Index
# Constructors
# Properties
# Methods
# Constructors
# constructor
+ new StaticItemLoader(creator
: string): StaticItemLoader
Defined in packages/common-core/src/webgl/static-item-loader.ts:25
Parameters:
Name | Type |
---|---|
creator | string |
Returns: StaticItemLoader
# Properties
# creator
• creator: string
_Implementation of Context.creator_
Defined in packages/common-core/src/webgl/static-item-loader.ts:23
# Methods
# loadGLB
▸ loadGLB(url
: string, position?
: Vector3, rotation?
: number, size?
: Vector3, scaling?
: Vector3, color?
: number, colorable?
: boolean, callback?
: function): Promise‹Object3D›
Defined in packages/common-core/src/webgl/static-item-loader.ts:58
Parameters:
▪ url: string
▪Optional
position: Vector3
▪Optional
rotation: number
▪Optional
size: Vector3
▪Optional
scaling: Vector3
▪Optional
color: number
▪Optional
colorable: boolean
▪Optional
callback: function
▸ (percent
: number): void
Parameters:
Name | Type |
---|---|
percent | number |
Returns: Promise‹Object3D›
# loadGLTF
▸ loadGLTF(gltfJSON
: string, position?
: Vector3, rotation?
: number, size?
: Vector3, scale?
: Vector3, color?
: number, colorable?
: boolean, callback?
: function): Promise‹Object3D›
Defined in packages/common-core/src/webgl/static-item-loader.ts:78
Parameters:
▪ gltfJSON: string
▪Optional
position: Vector3
▪Optional
rotation: number
▪Optional
size: Vector3
▪Optional
scale: Vector3
▪Optional
color: number
▪Optional
colorable: boolean
▪Optional
callback: function
▸ (percent
: number): void
Parameters:
Name | Type |
---|---|
percent | number |
Returns: Promise‹Object3D›