Version: 5.3
플레어
트레일 렌더러

라인 렌더러

라인 렌더러(Line Renderer) 컴포넌트는 3D 공간에서 두 개 이상 지점의 배열을 사용하고 각각을 연결하는 직선을 그립니다. 따라서 하나의 라인 렌더러 컴포넌트는 단순한 직선에서 시작해서 복잡한 곡선까지 모두 그릴 수 있습니다. 다만 그려지는 모든 라인은 연속적이어야 합니다. 두 개 이상의 완전히 분리된 선을 그려야 하는 경우, 라인 렌더러를 포함하는 여러 개의 게임 오브젝트를 사용해야 합니다.

라인 렌더러는 1픽셀 너비의 라인을 렌더링하지 않습니다. 라인 렌더러는 월드 단위로서 너비가 존재하는 빌보드 라인(카메라를 마주하는 폴리곤)은 렌더링하고 텍스처로 만들 수도 있습니다. 라인 렌더러는 Trail Renderer와 동일한 알고리즘을 라인을 렌더링하는 데 사용합니다.

프로퍼티

프로퍼티: 기능:
Cast Shadows Determines whether the line casts shadows, whether they should be cast from one or both sides of the line, or whether the line should only cast shadows and not otherwise be drawn. See Renderer-shadowCastingMode in the Script Ref to learn more.
Recieve Shadows 이 옵션을 활성화하는 경우 라인에 섀도우가 적용됩니다.
Materials 이 프로퍼티는 라인을 렌더링하는 데 사용된 머티리얼의 배열을 설명합니다. 라인은 배열 내 각각의 머티리얼에 대해 한 번씩 그려집니다.
Use Light Probes Check this box to enable Light Probes on the line.
Light Probe Anchor If set, this will be used as the interpolation point instead of the Transform position.
Positions These properties decribe an array of Vector3 points to connect.
        Size The number of segments in this line.
Parameters These properties describe a list of parameters for each line.
        StartWidth Width at the first line position.
        EndWidth Width at the last line position.
        Start Color Color at the first line position. Note: This has no effect unless the attached material uses a vertex shader.
        End Color Color at the last line position. Note: This has no effect unless the attached material uses a vertex shader.
Use World Space If enabled, the points are considered as world-space coordinates, instead of being subject to the transform of the GameObject to which this component is attached.

세부 정보

라인 렌더러를 생성하려면 다음 단계를 따르십시오.

  1. Unity 메뉴 바에서 GameObject > __Create Empty__로 이동합니다.
  2. Unity 메뉴 바에서 Component > Effects > __Line Renderer__로 이동합니다.
  3. Drag a Texture or Material onto the Line Renderer. It looks best if you use a particle Shader in the Material.

힌트

  • 라인 렌더러는 하나의 프레임에 모든 버텍스를 배치해야 하는 효과에 유용합니다.
  • The lines may seem to rotate as you move the Camera. This is intentional.
  • 라인 렌더러는 반드시 게임 오브젝트의 유일한 렌더러여야 합니다.
플레어
트레일 렌더러