- Preparing search index...
- The search index is not available
pc-ex
Methods
Static
processNodeDeep
- processNodeDeep(node: Entity | GraphNode, childNodeCallback?: ((childNode: Entity | GraphNode) => void), modelCallback?: ((model: RenderComponent | ModelComponent) => void), meshInstanceCallback?: ((meshInstance: MeshInstance, index: number) => void)): void
-
Parameters
-
node: Entity | GraphNode
-
Optional
childNodeCallback: ((childNode: Entity | GraphNode) => void)
-
- (childNode: Entity | GraphNode): void
-
Parameters
-
childNode: Entity | GraphNode
Returns void
-
Optional
modelCallback: ((model: RenderComponent | ModelComponent) => void)
-
- (model: RenderComponent | ModelComponent): void
-
Parameters
-
model: RenderComponent | ModelComponent
Returns void
-
Optional
meshInstanceCallback: ((meshInstance: MeshInstance, index: number) => void)
-
- (meshInstance: MeshInstance, index: number): void
-
Parameters
-
meshInstance: MeshInstance
-
index: number
Returns void
Returns void
Static
recoverAllMats
- recoverAllMats(node: Entity | GraphNode): void
-
Returns void
Static
saveAllMats
- saveAllMats(node: Entity | GraphNode): void
-
Returns void
Static
setChunksDeep
- setChunksDeep(node: Entity | GraphNode, chunks: { [index: string]: string }, batchGroupId?: string): void
-
Parameters
-
node: Entity | GraphNode
-
chunks: { [index: string]: string }
-
Optional
batchGroupId: string
Returns void
Static
setMatsDeep
- setMatsDeep(node: Entity | GraphNode, mat: Material, batchGroupId?: string): void
-
Parameters
-
node: Entity | GraphNode
-
mat: Material
-
Optional
batchGroupId: string
Returns void
Static
toggleWireFrame
- toggleWireFrame(node: Entity | GraphNode, state: boolean): void
-
Parameters
-
node: Entity | GraphNode
-
state: boolean
Returns void
递归处理实例上的所有模型和meshInstance