Interface: IMaterialManager
Core-API.IMaterialManager
Hierarchy
IEventDispatcher
<string
>IDisposable
↳
IMaterialManager
Implemented by
Methods
findOrCreate
▸ findOrCreate(info
, params?
): undefined
| IMaterial
<any
>
Parameters
Name | Type |
---|---|
info | string |
params? | AnyOptions |
Returns
undefined
| IMaterial
<any
>
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:18
generateFromTemplate
▸ generateFromTemplate(name
, params?
): undefined
| IMaterial
<any
>
Parameters
Name | Type |
---|---|
name | string |
params? | AnyOptions |
Returns
undefined
| IMaterial
<any
>
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:19
generateFromTemplateType
▸ generateFromTemplateType(type
, params?
): undefined
| IMaterial
<any
>
Parameters
Name | Type |
---|---|
type | string |
params? | AnyOptions |
Returns
undefined
| IMaterial
<any
>
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:20
findTemplate
▸ findTemplate(name
): undefined
| IMaterialTemplate
Parameters
Name | Type |
---|---|
name | string |
Returns
undefined
| IMaterialTemplate
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:22
registerMaterial
▸ registerMaterial(material
): void
Parameters
Name | Type |
---|---|
material | IMaterial <any > |
Returns
void
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:24
registerMaterialObject
▸ registerMaterialObject(material
): void
Parameters
Name | Type |
---|---|
material | any |
Returns
void
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:26
unregisterMaterial
▸ unregisterMaterial(material
): void
Parameters
Name | Type |
---|---|
material | IMaterial <any > |
Returns
void
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:28
registerMaterialTemplate
▸ registerMaterialTemplate(template
): void
Parameters
Name | Type |
---|---|
template | IMaterialTemplate |
Returns
void
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:29
unregisterMaterialTemplate
▸ unregisterMaterialTemplate(template
): void
Parameters
Name | Type |
---|---|
template | IMaterialTemplate |
Returns
void
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:31
findMaterial
▸ findMaterial(uuid
): undefined
| IMaterial
<any
>
Parameters
Name | Type |
---|---|
uuid | string |
Returns
undefined
| IMaterial
<any
>
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:33
findMaterialsByName
▸ findMaterialsByName(name
): IMaterial
<any
>[]
Parameters
Name | Type |
---|---|
name | string |
Returns
IMaterial
<any
>[]
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:34
getMaterialsOfType
▸ getMaterialsOfType<TM
>(typeSlug
): TM
[]
Type parameters
Name | Type |
---|---|
TM | extends IMaterial <any , TM > = IMaterial <any > |
Parameters
Name | Type |
---|---|
typeSlug | undefined | string |
Returns
TM
[]
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:35
getAllMaterials
▸ getAllMaterials(): IMaterial
<any
>[]
Returns
IMaterial
<any
>[]
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:37
processModel
▸ processModel(object
, options
): IModel
<any
>
Parameters
Name | Type |
---|---|
object | IModel <any > |
options | AnyOptions |
Returns
IModel
<any
>
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:39
processMaterial
▸ processMaterial(material
, options
): IMaterial
<any
>
Parameters
Name | Type |
---|---|
material | IMaterial <any > |
options | AnyOptions |
Returns
IMaterial
<any
>
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:41
registerMaterialExtension
▸ registerMaterialExtension(extension
): void
Parameters
Name | Type |
---|---|
extension | MaterialExtension |
Returns
void
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:43
unregisterMaterialExtension
▸ unregisterMaterialExtension(extension
): void
Parameters
Name | Type |
---|---|
extension | MaterialExtension |
Returns
void
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:44
exportMaterial
▸ exportMaterial(material
, filename?
, minify?
, download?
): File
Parameters
Name | Type |
---|---|
material | IMaterial <any > |
filename? | string |
minify? | boolean |
download? | boolean |
Returns
File
Defined in
webgi/src/extras/asset_manager/AMaterialManager.ts:46
applyMaterial
▸ applyMaterial(material
, nameOrUuid
): boolean
Parameters
Name | Type |
---|---|
material | IMaterial <any > |
nameOrUuid | string |
Returns
boolean