ParticleEmitterクラス

クラス日本語解説あり

ひとことで言うと

煙・火花・キラキラなどの粒子(パーティクル)を出し続ける演出の部品です。パーツやアタッチメントの中に入れて使います。

公式の説明(英語):A special object that emits customizable 2D particles into the world.

クラスの関係

受け継いでいるクラス:Object → Instance → ParticleEmitter

プロパティ(37)

名前と書き方説明
Acceleration
ParticleEmitter.Acceleration: Vector3
Determines the global-axis acceleration of all active particles, measured in studs per second squared.
Brightness
ParticleEmitter.Brightness: float
Scales the light emitted from the emitter when ParticleEmitter.LightInfluence is 0.
Color
ParticleEmitter.Color: ColorSequence
Determines the color of all active particles over their individual lifetimes.
Drag
ParticleEmitter.Drag: float
Determines the rate at which particles will lose half their speed through exponential decay.
EmissionDirection
ParticleEmitter.EmissionDirection: NormalId
Determines the face of the object that particles emit from.
Enabled
ParticleEmitter.Enabled: boolean
falseにすると粒子が出なくなります。Determines if particles emit from the emitter.
FlipbookBlendFrames
ParticleEmitter.FlipbookBlendFrames: boolean
Determines whether the flipbook frames are blended between.
FlipbookFramerate
ParticleEmitter.FlipbookFramerate: NumberRange
Determines how fast the flipbook texture animates in frames per second.
FlipbookIncompatible
ParticleEmitter.FlipbookIncompatible: string
The error message to display if the Class.ParticleEmitter.Texture|Texture is incompatible for a flipbook.
FlipbookLayout
ParticleEmitter.FlipbookLayout: ParticleFlipbookLayout
Determines the layout of the flipbook texture. Must be None, Grid2x2, Grid4x4, Grid8x8 or Custom.
FlipbookMode
ParticleEmitter.FlipbookMode: ParticleFlipbookMode
Determines the type of the flipbook animation. Must be Loop, OneShot, PingPong, or Random.
FlipbookSizeX
ParticleEmitter.FlipbookSizeX: int
Defines the number of horizontal frames in a custom flipbook layout.
FlipbookSizeY
ParticleEmitter.FlipbookSizeY: int
Defines the number of vertical frames in a custom flipbook layout.
FlipbookStartRandom
ParticleEmitter.FlipbookStartRandom: boolean
Determines whether the animation starts at a random frame chosen per particle instead of always starting at frame zero.
Lifetime
ParticleEmitter.Lifetime: NumberRange
粒子が消えるまでの時間。Defines a random range of ages for newly emitted particles.
LightEmission
ParticleEmitter.LightEmission: float
Determines how much particles' colors are blended with the colors behind them.
LightInfluence
ParticleEmitter.LightInfluence: float
Determines how much particles are influenced by the environmental light.
LockedToPart
ParticleEmitter.LockedToPart: boolean
Determines whether the particles rigidly move with the part they're being emitted from.
Orientation
ParticleEmitter.Orientation: ParticleOrientation
Specifies how to orient particles.
Rate
ParticleEmitter.Rate: float
1秒間に出す粒子の数。Determines the number of particles emitted per second.
Rotation
ParticleEmitter.Rotation: NumberRange
Determines the range of rotations in degrees for newly emitted particles.
RotSpeed
ParticleEmitter.RotSpeed: NumberRange
Determines the range of angular speeds of emitted particles, measured in degrees per second.
Shape
ParticleEmitter.Shape: ParticleEmitterShape
Sets the shape of the emitter to either a box, sphere, cylinder, or disc.
ShapeInOut
ParticleEmitter.ShapeInOut: ParticleEmitterShapeInOut
Sets whether particles emit outward only, inward only, or in both directions.
ShapePartial
ParticleEmitter.ShapePartial: float
Influences particle emission from cylinder, disc, sphere, and box shapes.
ShapeStyle
ParticleEmitter.ShapeStyle: ParticleEmitterShapeStyle
Sets particle emission to either volumetric or surface-only emission.
Size
ParticleEmitter.Size: NumberSequence
Determines the world size over individual particles' lifetimes.
Speed
ParticleEmitter.Speed: NumberRange
Determines a random range of velocities (minimum to maximum) at which new particles will emit, measured in studs per second.
SpreadAngle
ParticleEmitter.SpreadAngle: Vector2
Determines the angles at which particles may be randomly emit, measured in degrees.
Squash
ParticleEmitter.Squash: NumberSequence
Allows for non-uniform scaling of particles, curve-controlled over their lifetime.
Texture
ParticleEmitter.Texture: ContentId
Determines the image rendered on particles.
TextureContent
ParticleEmitter.TextureContent: Content
The image rendered on particles. Supports asset URIs.
TimeScale
ParticleEmitter.TimeScale: float
Value between 0 and 1 that controls the speed of the particle effect.
Transparency
ParticleEmitter.Transparency: NumberSequence
Determines the transparency of particles over their individual lifetimes.
VelocityInheritance
ParticleEmitter.VelocityInheritance: float
Determines how much of the parent's velocity is inherited by particles when emitted.
WindAffectsDrag
ParticleEmitter.WindAffectsDrag: boolean
Whether emitted particles follow the Workspace.GlobalWind vector.
ZOffset
ParticleEmitter.ZOffset: float
Determines the forward-backward render position of particles; used to control what particles render on top/bottom.

メソッド(2)

名前と書き方説明
Clear
ParticleEmitter:Clear(): ()
Clears all particles that have been emitted.
Emit
ParticleEmitter:Emit(particleCount: int): ()
指定した数の粒子を一度に出します。Emits a given number of particles.

受け継いでいるメンバー

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(ParticleEmitter)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む