| 속성 | 세부 사항 |
|---|---|
| Texture | 입자에 렌더링될 이미지를 결정합니다. 이는 각 입자의 시각적 외관을 정의하는 데 중요합니다. |
| Color | 입자의 수명 동안 색상을 제어하며, 색상 간 부드러운 전환을 지원합니다. |
| Transparency | 입자의 수명 동안 투명도를 설정하여 페이딩 효과를 허용합니다. |
| Size | 입자의 수명 동안 크기를 지정합니다. 이는 동적으로 변할 수 있으며, 성장 또는 축소 효과를 허용합니다. |
| Lifetime | 각 입자가 자동으로 제거되기 전의 지속 시간을 정의합니다. |
| Rate | 초당 방출되는 입자의 수를 결정합니다. |
| Speed | 방출 시 입자의 초기 속도를 제어합니다. |
| Rotation | 입자의 회전 각도를 지정하며, 시간이 지남에 따라 변할 수 있습니다. |
| Direction | 입자가 방출되는 초기 방향을 도 단위로 설정합니다. |
| SpreadAngle | 지정된 방향에서의 무작위성을 정의하여 입자가 확산되도록 합니다. |
| VelocityInheritance | 입자가 방출 시 발사기의 속도의 일부를 상속받을 수 있습니다. |
| EmissionDirection | 입자의 방출 방향을 발사기의 방향과 관련하여 설정합니다. |
| Drag | 입자가 얼마나 빨리 감속하는지를 결정하여 공기 저항을 시뮬레이션합니다. |
| Acceleration | 입자에 일정한 가속도를 적용하여 중력 효과 등을 생성합니다. |
| LightEmission | 입자가 얼마나 빛을 방출하거나 발광하는지를 결정하여 다양한 배경에서 입자의 가시성을 높입니다. |
| LightInfluence | 입자가 환경광에 얼마나 영향을 받는지를 지정하여 입자가 주변 환경과 어떻게 혼합되는지를 결정합니다. |
| LockedToPart | 설정 시, 입자는 발사기가 이동 객체에 부착된 경우 발사기와 함께 이동합니다. |
| ZOffset | 입자의 실제 위치를 변경하지 않고 세계의 다른 객체에 대한 입자의 렌더링 순서를 조정합니다. |
local part = script.Parent
-- Create a ParticleEmitter
local particleEmitter = Instance.new("ParticleEmitter")
-- Set properties of the ParticleEmitter
particleEmitter.Parent = part -- Attach the emitter to the part
particleEmitter.Texture = "rbxassetid://83139619689306" -- Set a texture ID for the particles
particleEmitter.Rate = 50 -- Particles per second
particleEmitter.Lifetime = NumberRange.new(1, 2) -- Life time of particles in seconds
particleEmitter.Speed = NumberRange.new(10, 20) -- Speed range of particles
particleEmitter.SpreadAngle = Vector2.new(360, 360) -- Spread angle to emit particles in all directions
-- Optionally, customize other properties like Color, Size, Transparency, etc.
particleEmitter.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0), Color3.fromRGB(255, 150, 0)) -- Yellow to orange gradient
particleEmitter.Size = NumberSequence.new(0.5, 1) -- Start and end sizes of particles
-- Enable/Disable the emitter programmatically
particleEmitter.Enabled = true -- Start emitting particles생산성을 높일 수 있는 더 많은 유용한 도구를 찾고 계신가요?
더 많은 도구 둔러보기