s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Components
ParticleEmitter
chevron_left Components
class
ParticleEmitter

Constructors

lockParticleEmitter

Fields

lockevaluatedRateOverDistancecrop_dintime

Properties

data_objectBurstdata_objectDelaydata_objectDeltadata_objectDestroyOnEnddata_objectDurationdata_objectEmitRandomdata_objectIsBurstingdata_objectLoopdata_objectRatedata_objectRateOverDistance

Methods

functionsEmitlockEmitOverDistancelockGetBurstCountlockGetRateCountlockOnBurstlockOnDisabledlockOnEnabledfunctionsResetEmitter
menu
ParticleEmitter
Creates particles. Should be attached to a Sandbox.ParticleEffect.
class Sandbox .account_tree extends Component
abstractSandbox.Engine

build Constructors 1

ParticleEmitter ()

crop_din Fields 2

evaluatedRateOverDistance
float
time
float

data_object Properties 10

Burst
ParticleFloat
How many particles to emit, in a burst
Delay
ParticleFloat
How many seconds to wait before the emitter starts
Delta
float
0-1, the life time of the emitter
DestroyOnEnd
bool
Whether to destroy the GameObject when the emitter finishes (only applies when Loop is false)
Duration
ParticleFloat
How long the emitter should run for, after the Delay
EmitRandom
float
0-1, a random number to be used for this loop of the emitter
IsBursting
bool
True if we're doing a burst
Loop
bool
Whether the emitter should restart after finishing
Rate
ParticleFloat
How many particles to emit over time
RateOverDistance
ParticleFloat
How many particles to emit per 100 units moved

functions Methods 8

Emit (target)
bool
EmitOverDistance ()
GetBurstCount ()
int
Allows child emitters to override how many particles are in a burst
GetRateCount ()
int
Allows child emitters to override how many particles are in a rate
OnBurst ()
OnDisabled ()
OnEnabled ()
ResetEmitter ()

Inheritance

Component
ParticleEmitter
ParticleBoxEmitter
ParticleConeEmitter
ParticleModelEmitter
ParticleRingEmitter
ParticleSphereEmitter
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter