Properties
Static BuiltContext
BuiltContext: {} = null
Type declaration
-
[key: string]: SmartArray<any>
Static Context
Context: {} = null
Static ContextMap
ContextMap: {} = null
Methods
Static Deserialize
- Deserialize(fileData: any, target: any, targetIsResource?: boolean): any
-
Parameters
-
fileData: any
-
target: any
-
targetIsResource: boolean = false
Returns any
Static DeserializeResource
- DeserializeResource(type: string, resourceDescription: any, loadContext: default, dependencies?: string[], uuid?: string): BaseResource
-
Parameters
-
type: string
-
resourceDescription: any
-
loadContext: default
-
Optional dependencies: string[]
-
Optional uuid: string
Static EnterContext
- EnterContext(context: any, contextMap: any): void
-
Parameters
-
context: any
-
contextMap: any
Returns void
Static LeaveContext
-
Returns void
反序列化一个对象。
@param {any} target 是否已经有反序列化的实例对象,某些情况比如Component需要首先调用Entity.protoptype.addComponent的方法产生实例后才能给这个实例的每个属性赋值,这时候就用的到这个参数。
@param {boolean} targetIsResource scriptableAsset的情况下,资源也要走通用序列还模版的能力 不能直接返回uuid