Complete Cocos Creator port with level bundles, themes, and tooling.
Adds level prefabs, theme assets, audio, extensions, and deployment scripts for the Unity WebGL migration. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
13
extensions/plugin-import-2x/creator/convertor/mtl.ts
Normal file
13
extensions/plugin-import-2x/creator/convertor/mtl.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
import { ImporterBase } from '../common/base';
|
||||
import { Material } from "../components/Material";
|
||||
|
||||
export class MaterialImporter extends ImporterBase {
|
||||
type: string = 'base';
|
||||
async import(): Promise<boolean> {
|
||||
this._3dMeta.ver = '1.0.9';
|
||||
this._3dMeta.importer = 'material';
|
||||
this._2dTo3dSource = await Material.migrate(this.readJSONSync());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user