PointLight

사용되지 않는 항목 표시

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

포인트라이트는 단일 지점에서 조명을 방출하는 조명 소스입니다. 조명은 포인트라이트의 PointLight.Range에 따라 구형으로 방출됩니다.

포인트라이트가 조명을 제공하려면 BasePart 또는 Attachment(부분 또는 부착물 자체가 Workspace의 후손이어야 함)의 직접 자식이어야 합니다.

포인트라이트가 부품에 부모로 지정되면 조명이 부품의 BasePart.Position에서 발산됩니다.포인트라이트가 첨부 파일에 부모로 지정되면 조명이 첨부 파일의 Attachment.WorldPosition에서 발산됩니다.

더 많은 조명 유형은 또한 참조 섹션을 참조하십시오.

또한 참조하세요

코드 샘플

This example creates a new anchored BasePart named Part at the position {0, 0, 0}.

It then creates a new point light with brightness of 1, Color3 color of {255/255, 255/255, 255/255} (white) and range of 16 studs. The point light's parent is set to the BasePart we created. To view the light, navigate to the part at {0, 0, 0} or move the Part created to a location visible to the player.

Please note that the properties of the created point light can easily be changed by modifying the property values in the code sample below. Additionally, if you have an existing point light, you can also create a similar script that modifies that light instead of creating a new BasePart and light.

Creating a New Point Light

local part = Instance.new("Part")
part.Anchored = true
part.Position = Vector3.new(0, 0, 0)
part.Parent = workspace
local light = Instance.new("PointLight")
light.Color = Color3.new(1, 1, 1)
light.Brightness = 1
light.Range = 16
light.Parent = part

요약

속성

  • 병렬 읽기

    포인트라이트가 비출 영역의 크기.

속성Light에서 상속되었습니다
  • 병렬 읽기

    방출되는 조명의 밝기를 설정하며, 기본값은 1입니다.

  • 병렬 읽기

    방출된 조명의 색상.

  • 병렬 읽기

    설정을 true로 설정하면 원본 개체에서 빛이 방출됩니다.

  • 병렬 읽기

    설정을 true로 설정하면 조명이 장애물로 차단되면 그림자를 표시합니다.

속성

Range

병렬 읽기

포인트라이트가 비출 영역의 크기.

메서드

이벤트