Skip to content

Class: PrefabMeshParser

Hierarchy

  • ParserBase

    PrefabMeshParser

Constructors

Properties

Methods

Constructors

constructor

new PrefabMeshParser(): PrefabMeshParser

Returns

PrefabMeshParser

Inherited from

ParserBase.constructor

Properties

format

Static format: ParserFormat = ParserFormat.BIN

Overrides

ParserBase.format

Defined in

src/loader/parser/prefab/PrefabMeshParser.ts:14


baseUrl

baseUrl: string

Inherited from

ParserBase.baseUrl

Defined in

src/loader/parser/ParserBase.ts:11


initUrl

initUrl: string

Inherited from

ParserBase.initUrl

Defined in

src/loader/parser/ParserBase.ts:12


loaderFunctions

Optional loaderFunctions: LoaderFunctions

Inherited from

ParserBase.loaderFunctions

Defined in

src/loader/parser/ParserBase.ts:13


userData

Optional userData: any

Inherited from

ParserBase.userData

Defined in

src/loader/parser/ParserBase.ts:14


data

data: any

Inherited from

ParserBase.data

Defined in

src/loader/parser/ParserBase.ts:15

Methods

parserMeshs

parserMeshs(bytesStream, prefabParser): void

Parameters

NameType
bytesStreamBytesArray
prefabParserPrefabParser

Returns

void

Defined in

src/loader/parser/prefab/PrefabMeshParser.ts:19


parseString

parseString(str): void

Parameters

NameType
strstring

Returns

void

Inherited from

ParserBase.parseString

Defined in

src/loader/parser/ParserBase.ts:17


parseJson

parseJson(obj): void

Parameters

NameType
objobject

Returns

void

Inherited from

ParserBase.parseJson

Defined in

src/loader/parser/ParserBase.ts:19


parseTexture

parseTexture(buffer): Texture

Parameters

NameType
bufferArrayBuffer

Returns

Texture

Inherited from

ParserBase.parseTexture

Defined in

src/loader/parser/ParserBase.ts:23


parse

parse(data): void

Parameters

NameType
dataany

Returns

void

Inherited from

ParserBase.parse

Defined in

src/loader/parser/ParserBase.ts:27


parseBuffer

parseBuffer(buffer): Promise<void>

Parameters

NameType
bufferArrayBuffer

Returns

Promise<void>

Overrides

ParserBase.parseBuffer

Defined in

src/loader/parser/prefab/PrefabMeshParser.ts:16


verification

verification(): boolean

Verify parsing validity

Returns

boolean

Overrides

ParserBase.verification

Defined in

src/loader/parser/prefab/PrefabMeshParser.ts:154