hytopia 0.1.68 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/server.light._constructor_.md +49 -0
- package/docs/server.light.angle.md +13 -0
- package/docs/server.light.attachedtoentity.md +13 -0
- package/docs/server.light.color.md +13 -0
- package/docs/server.light.despawn.md +17 -0
- package/docs/server.light.distance.md +13 -0
- package/docs/server.light.id.md +13 -0
- package/docs/server.light.intensity.md +13 -0
- package/docs/server.light.isspawned.md +13 -0
- package/docs/server.light.md +573 -0
- package/docs/server.light.offset.md +13 -0
- package/docs/server.light.penumbra.md +13 -0
- package/docs/server.light.position.md +13 -0
- package/docs/server.light.setangle.md +53 -0
- package/docs/server.light.setattachedtoentity.md +53 -0
- package/docs/server.light.setcolor.md +53 -0
- package/docs/server.light.setdistance.md +53 -0
- package/docs/server.light.setintensity.md +53 -0
- package/docs/server.light.setoffset.md +53 -0
- package/docs/server.light.setpenumbra.md +53 -0
- package/docs/server.light.setposition.md +53 -0
- package/docs/server.light.settrackedentity.md +53 -0
- package/docs/server.light.settrackedposition.md +53 -0
- package/docs/server.light.spawn.md +53 -0
- package/docs/server.light.trackedentity.md +13 -0
- package/docs/server.light.trackedposition.md +13 -0
- package/docs/server.light.type.md +13 -0
- package/docs/server.light.world.md +13 -0
- package/docs/server.lighteventpayload.despawn.light.md +11 -0
- package/docs/server.lighteventpayload.despawn.md +53 -0
- package/docs/server.lighteventpayload.md +136 -0
- package/docs/server.lighteventpayload.setangle.angle.md +11 -0
- package/docs/server.lighteventpayload.setangle.light.md +11 -0
- package/docs/server.lighteventpayload.setangle.md +70 -0
- package/docs/server.lighteventpayload.setattachedtoentity.entity.md +11 -0
- package/docs/server.lighteventpayload.setattachedtoentity.light.md +11 -0
- package/docs/server.lighteventpayload.setattachedtoentity.md +70 -0
- package/docs/server.lighteventpayload.setcolor.color.md +11 -0
- package/docs/server.lighteventpayload.setcolor.light.md +11 -0
- package/docs/server.lighteventpayload.setcolor.md +70 -0
- package/docs/server.lighteventpayload.setdistance.distance.md +11 -0
- package/docs/server.lighteventpayload.setdistance.light.md +11 -0
- package/docs/server.lighteventpayload.setdistance.md +70 -0
- package/docs/server.lighteventpayload.setintensity.intensity.md +11 -0
- package/docs/server.lighteventpayload.setintensity.light.md +11 -0
- package/docs/server.lighteventpayload.setintensity.md +70 -0
- package/docs/server.lighteventpayload.setoffset.light.md +11 -0
- package/docs/server.lighteventpayload.setoffset.md +70 -0
- package/docs/server.lighteventpayload.setoffset.offset.md +11 -0
- package/docs/server.lighteventpayload.setpenumbra.light.md +11 -0
- package/docs/server.lighteventpayload.setpenumbra.md +70 -0
- package/docs/server.lighteventpayload.setpenumbra.penumbra.md +11 -0
- package/docs/server.lighteventpayload.setposition.light.md +11 -0
- package/docs/server.lighteventpayload.setposition.md +70 -0
- package/docs/server.lighteventpayload.setposition.position.md +11 -0
- package/docs/server.lighteventpayload.settrackedentity.entity.md +11 -0
- package/docs/server.lighteventpayload.settrackedentity.light.md +11 -0
- package/docs/server.lighteventpayload.settrackedentity.md +70 -0
- package/docs/server.lighteventpayload.settrackedposition.light.md +11 -0
- package/docs/server.lighteventpayload.settrackedposition.md +70 -0
- package/docs/server.lighteventpayload.settrackedposition.position.md +11 -0
- package/docs/server.lighteventpayload.spawn.light.md +11 -0
- package/docs/server.lighteventpayload.spawn.md +53 -0
- package/docs/server.lighteventtype.md +215 -0
- package/docs/server.lightmanager.getallentityattachedlights.md +55 -0
- package/docs/server.lightmanager.getalllights.md +19 -0
- package/docs/server.lightmanager.md +113 -0
- package/docs/server.lightmanager.world.md +13 -0
- package/docs/server.lightoptions.angle.md +13 -0
- package/docs/server.lightoptions.attachedtoentity.md +13 -0
- package/docs/server.lightoptions.color.md +13 -0
- package/docs/server.lightoptions.distance.md +13 -0
- package/docs/server.lightoptions.intensity.md +13 -0
- package/docs/server.lightoptions.md +247 -0
- package/docs/server.lightoptions.offset.md +13 -0
- package/docs/server.lightoptions.penumbra.md +13 -0
- package/docs/server.lightoptions.position.md +13 -0
- package/docs/server.lightoptions.trackedentity.md +13 -0
- package/docs/server.lightoptions.trackedposition.md +13 -0
- package/docs/server.lightoptions.type.md +13 -0
- package/docs/server.lighttype.md +61 -0
- package/docs/server.md +66 -0
- package/docs/server.sceneui.attachedtoentity.md +2 -0
- package/docs/server.sceneui.id.md +2 -0
- package/docs/server.sceneui.isloaded.md +2 -0
- package/docs/server.sceneui.md +18 -0
- package/docs/server.sceneui.offset.md +2 -0
- package/docs/server.sceneui.position.md +2 -0
- package/docs/server.sceneui.state.md +2 -0
- package/docs/server.sceneui.templateid.md +2 -0
- package/docs/server.sceneui.viewdistance.md +2 -0
- package/docs/server.sceneui.world.md +2 -0
- package/docs/server.world.ambientlightcolor.md +13 -0
- package/docs/server.world.ambientlightintensity.md +13 -0
- package/docs/server.world.directionallightcolor.md +13 -0
- package/docs/server.world.directionallightintensity.md +13 -0
- package/docs/server.world.directionallightposition.md +13 -0
- package/docs/server.world.lightmanager.md +13 -0
- package/docs/server.world.md +196 -0
- package/docs/server.world.setambientlightcolor.md +53 -0
- package/docs/server.world.setambientlightintensity.md +53 -0
- package/docs/server.world.setdirectionallightcolor.md +53 -0
- package/docs/server.world.setdirectionallightintensity.md +53 -0
- package/docs/server.world.setdirectionallightposition.md +53 -0
- package/docs/server.worldoptions.ambientlightcolor.md +13 -0
- package/docs/server.worldoptions.ambientlightintensity.md +13 -0
- package/docs/server.worldoptions.directionallightcolor.md +13 -0
- package/docs/server.worldoptions.directionallightintensity.md +13 -0
- package/docs/server.worldoptions.directionallightposition.md +13 -0
- package/docs/server.worldoptions.md +95 -0
- package/examples/lighting/README.md +3 -0
- package/examples/lighting/assets/map.json +13153 -0
- package/examples/lighting/index.ts +120 -0
- package/examples/lighting/package.json +16 -0
- package/package.json +1 -1
- package/server.api.json +3382 -89
- package/server.d.ts +339 -1
- package/server.js +84 -84
package/docs/server.md
CHANGED
@@ -170,6 +170,28 @@ Manages event emission and assigned listener callbacks.
|
|
170
170
|
Manages the game and associated worlds and systems.
|
171
171
|
|
172
172
|
|
173
|
+
</td></tr>
|
174
|
+
<tr><td>
|
175
|
+
|
176
|
+
[Light](./server.light.md)
|
177
|
+
|
178
|
+
|
179
|
+
</td><td>
|
180
|
+
|
181
|
+
Represents a light in a world. Lights can be point lights or spotlights.
|
182
|
+
|
183
|
+
|
184
|
+
</td></tr>
|
185
|
+
<tr><td>
|
186
|
+
|
187
|
+
[LightManager](./server.lightmanager.md)
|
188
|
+
|
189
|
+
|
190
|
+
</td><td>
|
191
|
+
|
192
|
+
Manages Light instances in a world.
|
193
|
+
|
194
|
+
|
173
195
|
</td></tr>
|
174
196
|
<tr><td>
|
175
197
|
|
@@ -486,6 +508,28 @@ Event types an Entity instance can emit.
|
|
486
508
|
Event types a GameServer instance can emit.
|
487
509
|
|
488
510
|
|
511
|
+
</td></tr>
|
512
|
+
<tr><td>
|
513
|
+
|
514
|
+
[LightEventType](./server.lighteventtype.md)
|
515
|
+
|
516
|
+
|
517
|
+
</td><td>
|
518
|
+
|
519
|
+
Event types a Light instance can emit.
|
520
|
+
|
521
|
+
|
522
|
+
</td></tr>
|
523
|
+
<tr><td>
|
524
|
+
|
525
|
+
[LightType](./server.lighttype.md)
|
526
|
+
|
527
|
+
|
528
|
+
</td><td>
|
529
|
+
|
530
|
+
The types a Light can be.
|
531
|
+
|
532
|
+
|
489
533
|
</td></tr>
|
490
534
|
<tr><td>
|
491
535
|
|
@@ -648,6 +692,17 @@ Options for creating an Entity instance.
|
|
648
692
|
An EventRouter event.
|
649
693
|
|
650
694
|
|
695
|
+
</td></tr>
|
696
|
+
<tr><td>
|
697
|
+
|
698
|
+
[LightOptions](./server.lightoptions.md)
|
699
|
+
|
700
|
+
|
701
|
+
</td><td>
|
702
|
+
|
703
|
+
Options for creating a Light instance.
|
704
|
+
|
705
|
+
|
651
706
|
</td></tr>
|
652
707
|
<tr><td>
|
653
708
|
|
@@ -850,6 +905,17 @@ Payloads for events an Entity instance can emit.
|
|
850
905
|
Payloads for events emitted by a GameServer instance.
|
851
906
|
|
852
907
|
|
908
|
+
</td></tr>
|
909
|
+
<tr><td>
|
910
|
+
|
911
|
+
[LightEventPayload](./server.lighteventpayload.md)
|
912
|
+
|
913
|
+
|
914
|
+
</td><td>
|
915
|
+
|
916
|
+
Payloads for events a Light instance can emit.
|
917
|
+
|
918
|
+
|
853
919
|
</td></tr>
|
854
920
|
<tr><td>
|
855
921
|
|
package/docs/server.sceneui.md
CHANGED
@@ -102,6 +102,8 @@ Description
|
|
102
102
|
|
103
103
|
</td><td>
|
104
104
|
|
105
|
+
The entity to which the SceneUI is attached if explicitly set.
|
106
|
+
|
105
107
|
|
106
108
|
</td></tr>
|
107
109
|
<tr><td>
|
@@ -121,6 +123,8 @@ number \| undefined
|
|
121
123
|
|
122
124
|
</td><td>
|
123
125
|
|
126
|
+
The unique identifier for the SceneUI.
|
127
|
+
|
124
128
|
|
125
129
|
</td></tr>
|
126
130
|
<tr><td>
|
@@ -140,6 +144,8 @@ boolean
|
|
140
144
|
|
141
145
|
</td><td>
|
142
146
|
|
147
|
+
Whether the SceneUI is loaded into the world.
|
148
|
+
|
143
149
|
|
144
150
|
</td></tr>
|
145
151
|
<tr><td>
|
@@ -159,6 +165,8 @@ boolean
|
|
159
165
|
|
160
166
|
</td><td>
|
161
167
|
|
168
|
+
The offset of the SceneUI from the attached entity or position.
|
169
|
+
|
162
170
|
|
163
171
|
</td></tr>
|
164
172
|
<tr><td>
|
@@ -178,6 +186,8 @@ boolean
|
|
178
186
|
|
179
187
|
</td><td>
|
180
188
|
|
189
|
+
The position of the SceneUI in the world if explicitly set.
|
190
|
+
|
181
191
|
|
182
192
|
</td></tr>
|
183
193
|
<tr><td>
|
@@ -197,6 +207,8 @@ Readonly<object>
|
|
197
207
|
|
198
208
|
</td><td>
|
199
209
|
|
210
|
+
The state of the SceneUI.
|
211
|
+
|
200
212
|
|
201
213
|
</td></tr>
|
202
214
|
<tr><td>
|
@@ -216,6 +228,8 @@ string
|
|
216
228
|
|
217
229
|
</td><td>
|
218
230
|
|
231
|
+
The template ID of the SceneUI.
|
232
|
+
|
219
233
|
|
220
234
|
</td></tr>
|
221
235
|
<tr><td>
|
@@ -235,6 +249,8 @@ number \| undefined
|
|
235
249
|
|
236
250
|
</td><td>
|
237
251
|
|
252
|
+
The maximum view distance the SceneUI will be visible to the player.
|
253
|
+
|
238
254
|
|
239
255
|
</td></tr>
|
240
256
|
<tr><td>
|
@@ -254,6 +270,8 @@ number \| undefined
|
|
254
270
|
|
255
271
|
</td><td>
|
256
272
|
|
273
|
+
The world the SceneUI is loaded into.
|
274
|
+
|
257
275
|
|
258
276
|
</td></tr>
|
259
277
|
</tbody></table>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [ambientLightColor](./server.world.ambientlightcolor.md)
|
4
|
+
|
5
|
+
## World.ambientLightColor property
|
6
|
+
|
7
|
+
The color of the ambient light.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get ambientLightColor(): RgbColor;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [ambientLightIntensity](./server.world.ambientlightintensity.md)
|
4
|
+
|
5
|
+
## World.ambientLightIntensity property
|
6
|
+
|
7
|
+
The intensity of the ambient light.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get ambientLightIntensity(): number;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [directionalLightColor](./server.world.directionallightcolor.md)
|
4
|
+
|
5
|
+
## World.directionalLightColor property
|
6
|
+
|
7
|
+
The color of the directional light.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get directionalLightColor(): RgbColor;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [directionalLightIntensity](./server.world.directionallightintensity.md)
|
4
|
+
|
5
|
+
## World.directionalLightIntensity property
|
6
|
+
|
7
|
+
The intensity of the directional light.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get directionalLightIntensity(): number;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [directionalLightPosition](./server.world.directionallightposition.md)
|
4
|
+
|
5
|
+
## World.directionalLightPosition property
|
6
|
+
|
7
|
+
The position the directional light originates from.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get directionalLightPosition(): Vector3Like;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [lightManager](./server.world.lightmanager.md)
|
4
|
+
|
5
|
+
## World.lightManager property
|
6
|
+
|
7
|
+
The light manager for the world.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get lightManager(): LightManager;
|
13
|
+
```
|
package/docs/server.world.md
CHANGED
@@ -87,6 +87,48 @@ Description
|
|
87
87
|
</th></tr></thead>
|
88
88
|
<tbody><tr><td>
|
89
89
|
|
90
|
+
[ambientLightColor](./server.world.ambientlightcolor.md)
|
91
|
+
|
92
|
+
|
93
|
+
</td><td>
|
94
|
+
|
95
|
+
`readonly`
|
96
|
+
|
97
|
+
|
98
|
+
</td><td>
|
99
|
+
|
100
|
+
[RgbColor](./server.rgbcolor.md)
|
101
|
+
|
102
|
+
|
103
|
+
</td><td>
|
104
|
+
|
105
|
+
The color of the ambient light.
|
106
|
+
|
107
|
+
|
108
|
+
</td></tr>
|
109
|
+
<tr><td>
|
110
|
+
|
111
|
+
[ambientLightIntensity](./server.world.ambientlightintensity.md)
|
112
|
+
|
113
|
+
|
114
|
+
</td><td>
|
115
|
+
|
116
|
+
`readonly`
|
117
|
+
|
118
|
+
|
119
|
+
</td><td>
|
120
|
+
|
121
|
+
number
|
122
|
+
|
123
|
+
|
124
|
+
</td><td>
|
125
|
+
|
126
|
+
The intensity of the ambient light.
|
127
|
+
|
128
|
+
|
129
|
+
</td></tr>
|
130
|
+
<tr><td>
|
131
|
+
|
90
132
|
[audioManager](./server.world.audiomanager.md)
|
91
133
|
|
92
134
|
|
@@ -168,6 +210,69 @@ The chat manager for the world.
|
|
168
210
|
The chunk lattice for the world.
|
169
211
|
|
170
212
|
|
213
|
+
</td></tr>
|
214
|
+
<tr><td>
|
215
|
+
|
216
|
+
[directionalLightColor](./server.world.directionallightcolor.md)
|
217
|
+
|
218
|
+
|
219
|
+
</td><td>
|
220
|
+
|
221
|
+
`readonly`
|
222
|
+
|
223
|
+
|
224
|
+
</td><td>
|
225
|
+
|
226
|
+
[RgbColor](./server.rgbcolor.md)
|
227
|
+
|
228
|
+
|
229
|
+
</td><td>
|
230
|
+
|
231
|
+
The color of the directional light.
|
232
|
+
|
233
|
+
|
234
|
+
</td></tr>
|
235
|
+
<tr><td>
|
236
|
+
|
237
|
+
[directionalLightIntensity](./server.world.directionallightintensity.md)
|
238
|
+
|
239
|
+
|
240
|
+
</td><td>
|
241
|
+
|
242
|
+
`readonly`
|
243
|
+
|
244
|
+
|
245
|
+
</td><td>
|
246
|
+
|
247
|
+
number
|
248
|
+
|
249
|
+
|
250
|
+
</td><td>
|
251
|
+
|
252
|
+
The intensity of the directional light.
|
253
|
+
|
254
|
+
|
255
|
+
</td></tr>
|
256
|
+
<tr><td>
|
257
|
+
|
258
|
+
[directionalLightPosition](./server.world.directionallightposition.md)
|
259
|
+
|
260
|
+
|
261
|
+
</td><td>
|
262
|
+
|
263
|
+
`readonly`
|
264
|
+
|
265
|
+
|
266
|
+
</td><td>
|
267
|
+
|
268
|
+
[Vector3Like](./server.vector3like.md)
|
269
|
+
|
270
|
+
|
271
|
+
</td><td>
|
272
|
+
|
273
|
+
The position the directional light originates from.
|
274
|
+
|
275
|
+
|
171
276
|
</td></tr>
|
172
277
|
<tr><td>
|
173
278
|
|
@@ -231,6 +336,27 @@ number
|
|
231
336
|
The unique ID of the world.
|
232
337
|
|
233
338
|
|
339
|
+
</td></tr>
|
340
|
+
<tr><td>
|
341
|
+
|
342
|
+
[lightManager](./server.world.lightmanager.md)
|
343
|
+
|
344
|
+
|
345
|
+
</td><td>
|
346
|
+
|
347
|
+
`readonly`
|
348
|
+
|
349
|
+
|
350
|
+
</td><td>
|
351
|
+
|
352
|
+
[LightManager](./server.lightmanager.md)
|
353
|
+
|
354
|
+
|
355
|
+
</td><td>
|
356
|
+
|
357
|
+
The light manager for the world.
|
358
|
+
|
359
|
+
|
234
360
|
</td></tr>
|
235
361
|
<tr><td>
|
236
362
|
|
@@ -408,6 +534,76 @@ Description
|
|
408
534
|
Loads a map into the world.
|
409
535
|
|
410
536
|
|
537
|
+
</td></tr>
|
538
|
+
<tr><td>
|
539
|
+
|
540
|
+
[setAmbientLightColor(color)](./server.world.setambientlightcolor.md)
|
541
|
+
|
542
|
+
|
543
|
+
</td><td>
|
544
|
+
|
545
|
+
|
546
|
+
</td><td>
|
547
|
+
|
548
|
+
Sets the color of the world's ambient light.
|
549
|
+
|
550
|
+
|
551
|
+
</td></tr>
|
552
|
+
<tr><td>
|
553
|
+
|
554
|
+
[setAmbientLightIntensity(intensity)](./server.world.setambientlightintensity.md)
|
555
|
+
|
556
|
+
|
557
|
+
</td><td>
|
558
|
+
|
559
|
+
|
560
|
+
</td><td>
|
561
|
+
|
562
|
+
Sets the intensity of the world's ambient light.
|
563
|
+
|
564
|
+
|
565
|
+
</td></tr>
|
566
|
+
<tr><td>
|
567
|
+
|
568
|
+
[setDirectionalLightColor(color)](./server.world.setdirectionallightcolor.md)
|
569
|
+
|
570
|
+
|
571
|
+
</td><td>
|
572
|
+
|
573
|
+
|
574
|
+
</td><td>
|
575
|
+
|
576
|
+
Sets the color of the world's directional light.
|
577
|
+
|
578
|
+
|
579
|
+
</td></tr>
|
580
|
+
<tr><td>
|
581
|
+
|
582
|
+
[setDirectionalLightIntensity(intensity)](./server.world.setdirectionallightintensity.md)
|
583
|
+
|
584
|
+
|
585
|
+
</td><td>
|
586
|
+
|
587
|
+
|
588
|
+
</td><td>
|
589
|
+
|
590
|
+
Sets the intensity of the world's directional light.
|
591
|
+
|
592
|
+
|
593
|
+
</td></tr>
|
594
|
+
<tr><td>
|
595
|
+
|
596
|
+
[setDirectionalLightPosition(position)](./server.world.setdirectionallightposition.md)
|
597
|
+
|
598
|
+
|
599
|
+
</td><td>
|
600
|
+
|
601
|
+
|
602
|
+
</td><td>
|
603
|
+
|
604
|
+
Sets the position the world's directional light originates from.
|
605
|
+
|
606
|
+
|
411
607
|
</td></tr>
|
412
608
|
<tr><td>
|
413
609
|
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [setAmbientLightColor](./server.world.setambientlightcolor.md)
|
4
|
+
|
5
|
+
## World.setAmbientLightColor() method
|
6
|
+
|
7
|
+
Sets the color of the world's ambient light.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setAmbientLightColor(color: RgbColor): void;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
color
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[RgbColor](./server.rgbcolor.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The color of the light.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
void
|
53
|
+
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [setAmbientLightIntensity](./server.world.setambientlightintensity.md)
|
4
|
+
|
5
|
+
## World.setAmbientLightIntensity() method
|
6
|
+
|
7
|
+
Sets the intensity of the world's ambient light.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setAmbientLightIntensity(intensity: number): void;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
intensity
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
number
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The intensity.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
void
|
53
|
+
|