기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


Flare asset reference

Explore the properties in the Flare asset to create and configure a Flare.
읽는 시간 1분최근 업데이트: 22일 전

Explore the properties in the Flare asset to create and configure a Flare.

Property

Function

ElementsThe number of Flare images included in the Flare.
        Image IndexWhich Flare image to use from the Flare Texture for this Element.
        PositionThe Element's offset along a line running from the containing GameObject's position through the screen center. 0 = GameObject position, 1 = screen center.
        SizeThe size of the element.
        ColorColor tint of the element.
        Use Light ColorIf the Flare is attached to a Light, enabling this will tint the Flare with the Light's color.
        RotateIf enabled, bottom of the Element will always face the center of the screen, making the Element spin as the Lens Flare moves around on the screen.
        ZoomIf enabled, the Element will scale up when it becomes visible and scale down again when it isn't.
        FadeIf enabled, the Element will fade in to full strength when it becomes visible and fade out when it isn't.
Flare TextureA texture containing images used by this Flare's Elements. It must be arranged according to one of the TextureLayout options.
Texture LayoutHow the individual Flare Element images are laid out inside the Flare Texture (see Configuring Flare Elements: Understand texture layouts for further details).
Use FogIf enabled, the Flare will fade away with distance fog. This is used commonly for small Flares.