Skip to content

Latest commit

 

History

History
183 lines (103 loc) · 2.82 KB

File metadata and controls

183 lines (103 loc) · 2.82 KB

seinjs-gpu-particle-system > Actor

Class: Actor

GPUParticleSystemComponent的一个容器封装。

Hierarchy

SceneActor<IComponentState, Component>

↳ Actor

Actor

Implements

Index

Properties

Methods


Properties

isGPUParticleSystemActor

● isGPUParticleSystemActor: boolean = true

Defined in Actor.ts:18


Methods

forceModifyMat

forceModifyMat(): void

Defined in Actor.ts:44

强制重新生成材质,谨慎使用!

Returns: void


getOption

getOption<Key>(key: Key): IComponentState[Key]

Defined in Actor.ts:37

获取某个配置。

Type parameters:

Key : keyof IComponentState

Parameters:

Name Type
key Key

Returns: IComponentState[Key]


onCreateRoot

onCreateRoot(initOptions: IComponentState): Component

Overrides SceneActor.onCreateRoot

Defined in Actor.ts:23

生成根组件,继承请先super.onCreateRoot()

Parameters:

Name Type
initOptions IComponentState

Returns: Component


pause

pause(): void

Defined in Actor.ts:65

暂停生成。

Returns: void


resume

resume(): void

Defined in Actor.ts:72

唤醒生成。

Returns: void


setOption

setOption<Key>(key: Key, value: IComponentState[Key]): void

Defined in Actor.ts:30

设置某个配置,修改设置后将会根据状况重新生成GeometryMaterial谨慎使用!

Type parameters:

Key : keyof IComponentState

Parameters:

Name Type
key Key
value IComponentState[Key]

Returns: void


start

start(): void

Defined in Actor.ts:51

开始生成。

Returns: void


stop

stop(): void

Defined in Actor.ts:58

停止生成。

Returns: void