Appearance
RoyInterface / Exports / resource/material/RoyMaterialTemplate / RoyMaterialTemplateMgr
Class: RoyMaterialTemplateMgr
resource/material/RoyMaterialTemplate.RoyMaterialTemplateMgr
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new RoyMaterialTemplateMgr(): RoyMaterialTemplateMgr
Returns
Properties
instance
▪ Static
Private
instance: RoyMaterialTemplateMgr
m_matTemplateMap
• Protected
m_matTemplateMap: Map
<string
, RoyMaterialTemplate
>
Accessors
matTemplateMap
• get
matTemplateMap(): Map
<string
, RoyMaterialTemplate
>
Returns
Map
<string
, RoyMaterialTemplate
>
Methods
getInstance
▸ getInstance(): RoyMaterialTemplateMgr
Returns
get
▸ get(templateName
): RoyMaterialTemplate
Parameters
Name | Type |
---|---|
templateName | string |
Returns
register
▸ register(matTemplate
): void
Parameters
Name | Type |
---|---|
matTemplate | RoyMaterialTemplate |
Returns
void
createMatInstance
▸ createMatInstance(templateName
, transDataInfo?
): RoyMaterialInstance
Parameters
Name | Type |
---|---|
templateName | string |
transDataInfo? | RoyTransDataInfo |