Class: PrefabParser
Hierarchy
ParserBase
↳
PrefabParser
Constructors
Properties
Methods
Constructors
constructor
• new PrefabParser(): PrefabParser
Returns
Inherited from
ParserBase.constructor
Properties
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
useWebp
▪ Static
useWebp: boolean
= true
Defined in
src/loader/parser/prefab/PrefabParser.ts:26
format
▪ Static
format: ParserFormat
= ParserFormat.BIN
Overrides
ParserBase.format
Defined in
src/loader/parser/prefab/PrefabParser.ts:27
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
avatarDic
• avatarDic: Object
Index signature
▪ [name: string
]: PrefabAvatarData
Defined in
src/loader/parser/prefab/PrefabParser.ts:28
nodeData
• nodeData: PrefabNode
Defined in
src/loader/parser/prefab/PrefabParser.ts:29
Methods
parseString
▸ parseString(str
): void
Parameters
Name | Type |
---|---|
str | string |
Returns
void
Inherited from
ParserBase.parseString
Defined in
src/loader/parser/ParserBase.ts:17
parseJson
▸ parseJson(obj
): void
Parameters
Name | Type |
---|---|
obj | object |
Returns
void
Inherited from
ParserBase.parseJson
Defined in
src/loader/parser/ParserBase.ts:19
parseTexture
▸ parseTexture(buffer
): Texture
Parameters
Name | Type |
---|---|
buffer | ArrayBuffer |
Returns
Inherited from
ParserBase.parseTexture
Defined in
src/loader/parser/ParserBase.ts:23
parse
▸ parse(data
): void
Parameters
Name | Type |
---|---|
data | any |
Returns
void
Inherited from
ParserBase.parse
Defined in
src/loader/parser/ParserBase.ts:27
parseBuffer
▸ parseBuffer(buffer
): Promise
<void
>
Parameters
Name | Type |
---|---|
buffer | ArrayBuffer |
Returns
Promise
<void
>
Overrides
ParserBase.parseBuffer
Defined in
src/loader/parser/prefab/PrefabParser.ts:30
verification
▸ verification(): boolean
Verify parsing validity
Returns
boolean
Overrides
ParserBase.verification