36 lines
1.1 KiB
Markdown
36 lines
1.1 KiB
Markdown
# Point Light
|
|
|
|
### Type
|
|
pre-defined
|
|
|
|
### 3D
|
|
No visible mesh. Represents an omnidirectional point light source that emits light equally in all directions.
|
|
Default spawn height is y=2.
|
|
|
|
### Custom Args:
|
|
| Key | Type | Implemented | Description |
|
|
|---|---|---|---|
|
|
| color | hexColor | ⚠️ (Creator tbd) | Color of the light |
|
|
| intensity | float | ⚠️ **See note below.** | Light intensity (default 1). |
|
|
| grabable | `"true"` / `"false"` | ⚠️ | Whether the item can be grabbed in-experience (common to all types) |
|
|
|
|
### Special Notes:
|
|
**Key name discrepancy:** The database save format uses `intensity` as the argument key, but `PointLightItemBehaviour.cs` reads `brightness`. Light intensity args may not apply at runtime unless this is resolved.
|
|
|
|
### Example:
|
|
|
|
```json
|
|
{
|
|
"position": { "x": 0.0, "y": 2.0, "z": 0.0 },
|
|
"rotation": { "x": 0.0, "y": 0.0, "z": 0.0 },
|
|
"scale": { "x": 1.0, "y": 1.0, "z": 1.0 },
|
|
"type": "pre-defined",
|
|
"resourcename": "Point Light",
|
|
"item-custom-args": [
|
|
{ "argument": "color", "value": "#ff0000" },
|
|
{ "argument": "intensity", "value": "50" }
|
|
],
|
|
"item-custom-args-adv": null
|
|
}
|
|
```
|