Skip to main content

Interface: IMaterialManager

Core-API.IMaterialManager

Hierarchy

  • IEventDispatcher<string>

  • IDisposable

    IMaterialManager

Implemented by

Methods

findOrCreate

findOrCreate(info, params?): undefined | IMaterial<any>

Parameters

NameType
infostring
params?AnyOptions

Returns

undefined | IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:18


generateFromTemplate

generateFromTemplate(name, params?): undefined | IMaterial<any>

Parameters

NameType
namestring
params?AnyOptions

Returns

undefined | IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:19


generateFromTemplateType

generateFromTemplateType(type, params?): undefined | IMaterial<any>

Parameters

NameType
typestring
params?AnyOptions

Returns

undefined | IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:20


findTemplate

findTemplate(name): undefined | IMaterialTemplate

Parameters

NameType
namestring

Returns

undefined | IMaterialTemplate

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:22


registerMaterial

registerMaterial(material): void

Parameters

NameType
materialIMaterial<any>

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:24


registerMaterialObject

registerMaterialObject(material): void

Parameters

NameType
materialany

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:26


unregisterMaterial

unregisterMaterial(material): void

Parameters

NameType
materialIMaterial<any>

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:28


registerMaterialTemplate

registerMaterialTemplate(template): void

Parameters

NameType
templateIMaterialTemplate

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:29


unregisterMaterialTemplate

unregisterMaterialTemplate(template): void

Parameters

NameType
templateIMaterialTemplate

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:31


findMaterial

findMaterial(uuid): undefined | IMaterial<any>

Parameters

NameType
uuidstring

Returns

undefined | IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:33


findMaterialsByName

findMaterialsByName(name): IMaterial<any>[]

Parameters

NameType
namestring

Returns

IMaterial<any>[]

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:34


getMaterialsOfType

getMaterialsOfType<TM>(typeSlug): TM[]

Type parameters

NameType
TMextends IMaterial<any, TM> = IMaterial<any>

Parameters

NameType
typeSlugundefined | 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

NameType
objectIModel<any>
optionsAnyOptions

Returns

IModel<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:39


processMaterial

processMaterial(material, options): IMaterial<any>

Parameters

NameType
materialIMaterial<any>
optionsAnyOptions

Returns

IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:41


registerMaterialExtension

registerMaterialExtension(extension): void

Parameters

NameType
extensionMaterialExtension

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:43


unregisterMaterialExtension

unregisterMaterialExtension(extension): void

Parameters

NameType
extensionMaterialExtension

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:44


exportMaterial

exportMaterial(material, filename?, minify?, download?): File

Parameters

NameType
materialIMaterial<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

NameType
materialIMaterial<any>
nameOrUuidstring

Returns

boolean

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:48