Particle effect context The particle system is composed of several particle emitters and sub-emitters. The particle emitter emits particles over time, and the sub-emitter emits particles from the particles emitted by the particle emitter.
More...
Particle effect context The particle system is composed of several particle emitters and sub-emitters. The particle emitter emits particles over time, and the sub-emitter emits particles from the particles emitted by the particle emitter.
- Warning
- In the NvsParticleSystemContext class, all public APIs are used in the UI thread! ! !
◆ appendPositionToEmitterPositionCurve()
void com.meicam.sdk.NvsParticleSystemContext.appendPositionToEmitterPositionCurve |
( |
String |
emitterName, |
|
|
float |
timeSec, |
|
|
float |
emitterPositionX, |
|
|
float |
emitterPositionY |
|
) |
| |
|
inline |
Append a path position to the particle emitter curve at the specified time point.
- Parameters
-
emitterName | emitter name |
timeSec | time point |
emitterPositionX | particle emitter's X coordinate |
emitterPositionY | particle emitter's Y coordinate |
◆ finalize()
void com.meicam.sdk.NvsParticleSystemContext.finalize |
( |
| ) |
throws Throwable |
|
inlineprotected |
◆ setContextInterface()
void com.meicam.sdk.NvsParticleSystemContext.setContextInterface |
( |
long |
contextInterface | ) |
|
|
inlineprotected |
◆ setEmitterEnabled()
void com.meicam.sdk.NvsParticleSystemContext.setEmitterEnabled |
( |
String |
emitterName, |
|
|
boolean |
enable |
|
) |
| |
|
inline |
Set whether to enable the emitter.
- Parameters
-
emitterName | emitter name |
enable | enable or disable, default mode is enable. |
◆ setEmitterParticleSizeGain()
void com.meicam.sdk.NvsParticleSystemContext.setEmitterParticleSizeGain |
( |
String |
emitterName, |
|
|
float |
emitterGain |
|
) |
| |
|
inline |
Set the size gain of the particles emitted by the particle emitter.
- Parameters
-
emitterName | emitter name |
emitterGain | emission size gain |
◆ setEmitterPosition()
void com.meicam.sdk.NvsParticleSystemContext.setEmitterPosition |
( |
String |
emitterName, |
|
|
float |
emitterPositionX, |
|
|
float |
emitterPositionY |
|
) |
| |
|
inline |
Set the particle emitter's position.
- Parameters
-
emitterName | emitter name |
emitterPositionX | particle emitter's X coordinate |
emitterPositionY | particle emitter's Y coordinate |
◆ setEmitterRateGain()
void com.meicam.sdk.NvsParticleSystemContext.setEmitterRateGain |
( |
String |
emitterName, |
|
|
float |
emitterGain |
|
) |
| |
|
inline |
Set the rate gain of the particles emitted by the particle emitter.
- Parameters
-
emitterName | emitter name |
emitterGain | emission rate gain |
The documentation for this class was generated from the following file: