Trail

Trail : Instance

Overview

๋ฌผ์ฒด๊ฐ€ ์ด๋™ํ•  ๋•Œ ๋‚จ๊ธฐ๋Š” ์ž”์ƒ(๊ถค์ ) ํšจ๊ณผ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ์ธ์Šคํ„ด์Šค๋กœ, ๊ฒ€๊ธฐ ํšจ๊ณผ, ์Šคํ”ผ๋“œ ๋ถ€์ŠคํŠธ, ๋งˆ๋ฒ• ๊ถค์ , ์ด์•Œ ํ”์  ๊ฐ™์€ ํšจ๊ณผ๋ฅผ ๋งŒ๋“ค ๋•Œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.

Part์™€ ๊ฐ™์€ ํŠน์ • ์˜ค๋ธŒ์ ํŠธ์˜ ์ž์‹์œผ๋กœ ์„ค์ •ํ•˜์—ฌ ํ•ด๋‹น ์˜ค๋ธŒ์ ํŠธ์˜ ์›€์ง์ž„์— ๋”ฐ๋ผ ํšจ๊ณผ๋ฅผ ํ‘œ์‹œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Properties

Color

ColorSequence

Trail์ด ์ƒ์„ฑ๋˜๊ณ  ์‚ฌ๋ผ์งˆ ๋•Œ ์–ด๋–ค ์ƒ‰์ƒ์œผ๋กœ ์ ์ง„์ ์œผ๋กœ ํ‘œ์‹œ๋ ์ง€ ColorSequence๋ฅผ ์ด์šฉํ•˜์—ฌ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Trail์— ํ…์Šค์ฒ˜๊ฐ€ ์ ์šฉ๋œ ๊ฒฝ์šฐ, ํ•ด๋‹น ํ…์Šค์ฒ˜ ์œ„์— ์ด ์ƒ‰์ƒ์ด ์˜ค๋ฒ„๋ ˆ์ด๋˜์–ด ํ‘œํ˜„๋ฉ๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.Color = ColorSequence.new(Color3.fromRGB(255, 0, 0))

ColorTexture

string

Trail์— ํ‘œํ˜„ํ•  ์ƒ‰์ƒ ํ…์Šค์ฒ˜๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.ColorTexture = "ovdrassetid://1234"

ColorTextureLength

number

Trail์— ์ ์šฉ๋œ ์ƒ‰์ƒ ํ…์Šค์ฒ˜์˜ ๊ธธ์ด๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.ColorTextureLength = 5

ColorTextureSpeed

number

Trail์— ์ ์šฉ๋œ ์ƒ‰์ƒ ํ…์Šค์ฒ˜์˜ ์†๋„๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.ColorTextureSpeed = 10

AlphaTexture

string

Trail์— ํ‘œํ˜„ํ•  ์•ŒํŒŒ ํ…์Šค์ฒ˜๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.AlphaTexture = "ovdrassetid://1234"

AlphaTextureLength

number

Trail์— ์ ์šฉ๋œ ์•ŒํŒŒ ํ…์Šค์ฒ˜์˜ ๊ธธ์ด๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.AlphaTextureLength = 5

AlphaTextureSpeed

number

Trail์— ์ ์šฉ๋œ ์•ŒํŒŒ ํ…์Šค์ฒ˜์˜ ์†๋„๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.AlphaTextureSpeed = 10

Transparency

NumberSequence

Trail์ด ์ƒ์„ฑ๋˜๊ณ  ์‚ฌ๋ผ์งˆ ๋•Œ NumberSequence๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํˆฌ๋ช…๋„๊ฐ€ ์ ์ง„์ ์œผ๋กœ ๋ณ€ํ™”ํ•˜๋„๋ก ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.Transparency = NumberSequence.new(0.8)

Enabled

bool

Trail์˜ ํ‘œ์‹œ ์—ฌ๋ถ€๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Trail์˜ ๊ถค์ ์ด ๋‚จ์•„์žˆ๋Š” ์ƒํƒœ์—์„œ Enabled๋ฅผ false๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด ์ฆ‰์‹œ ์‚ฌ๋ผ์ง‘๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.Enabled = false

Lifetime

number

Trail์˜ ๊ถค์ ์ด ๋ช‡ ์ดˆ ๋™์•ˆ ์œ ์ง€๋ ์ง€๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.LifeTime = 0.5

Width

number

Trail์˜ ๋„ˆ๋น„๋ฅผ ์ง€์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.Width = 100

WidthScale

NumberSequence

Trail์˜ ๋„ˆ๋น„๋ฅผ NumberSequence๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ ์ง„์ ์œผ๋กœ ๋ณ€ํ™”ํ•˜๋„๋ก ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.WidthScale = NumberSequence.new(3)

Offset

Vector3

Trail์˜ ์œ„์น˜๋ฅผ ๋ถ€๋ชจ ๊ฐ์ฒด๋ฅผ ๊ธฐ์ค€์œผ๋กœ ์ƒ๋Œ€์ ์œผ๋กœ ์กฐ์ •ํ•˜๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.

Code Samples

local Trail = script.Parent

Trail.Offset = Vector3.new(0, 100, 0)

Methods

Events

See also

VFX

Last updated