rojo/.cursor/rules/roblox/reference/engine/classes/Light.yaml
2026-02-02 12:08:47 -06:00

101 lines
2.3 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: Light
type: class
memory_category: Instances
summary: |
Light is a root class for dynamic lighting related objects.
description: |
Light is a root class for dynamic lighting related objects.
code_samples: []
inherits:
- Instance
descendants:
- PointLight
- SpotLight
- SurfaceLight
tags:
- NotCreatable
deprecation_message: ''
properties:
- name: Light.Brightness
summary: |
Sets how bright the emitted light is, defaults to 1.
description: |
Sets how bright the emitted light is, defaults to 1.
code_samples: []
type: float
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Appearance
serialization:
can_load: true
can_save: true
capabilities:
- Basic
- name: Light.Color
summary: |
The color of the emitted light.
description: |
The color of the emitted light.
code_samples: []
type: Color3
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Appearance
serialization:
can_load: true
can_save: true
capabilities:
- Basic
- name: Light.Enabled
summary: |
If set to true, light will be emitted from the source object.
description: |
If set to true, light will be emitted from the source object.
code_samples: []
type: boolean
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Appearance
serialization:
can_load: true
can_save: true
capabilities:
- Basic
- name: Light.Shadows
summary: |
If set to true, will project shadows if light is blocked by an obstacle.
description: |
If set to true, will project shadows if light is blocked by an obstacle.
code_samples: []
type: boolean
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Appearance
serialization:
can_load: true
can_save: true
capabilities:
- Basic
methods: []
events: []
callbacks: []