initial commit
This commit is contained in:
commit
c2bb3893a9
1038 changed files with 75846 additions and 0 deletions
18
runtime_world_environment.gd
Normal file
18
runtime_world_environment.gd
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
@tool
|
||||
extends WorldEnvironment
|
||||
## Applies its environment only at runtime, so the editor viewport stays lit.
|
||||
## Assign your dark torchlight environment to `runtime_environment` in the
|
||||
## inspector instead of the normal `environment` slot.
|
||||
|
||||
@export var runtime_environment: Environment :
|
||||
set(value):
|
||||
runtime_environment = value
|
||||
if not Engine.is_editor_hint():
|
||||
environment = value
|
||||
|
||||
|
||||
func _enter_tree() -> void:
|
||||
if Engine.is_editor_hint():
|
||||
environment = null
|
||||
else:
|
||||
environment = runtime_environment
|
||||
Loading…
Add table
Add a link
Reference in a new issue