Improve world authoring workflow
This commit is contained in:
parent
67d17074b2
commit
0d26f30172
18 changed files with 682 additions and 138 deletions
24
world/below_world_failsafe.gd
Normal file
24
world/below_world_failsafe.gd
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@tool
|
||||
class_name BelowWorldFailsafe
|
||||
extends PlayerWaterTrigger
|
||||
|
||||
@export_group("Failsafe Authoring")
|
||||
## Saved coverage volume that catches players below the playable world.
|
||||
@export_node_path("CollisionShape3D")
|
||||
var coverage_shape_path: NodePath = ^"Coverage"
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
super()
|
||||
if Engine.is_editor_hint():
|
||||
update_configuration_warnings()
|
||||
|
||||
|
||||
func _get_configuration_warnings() -> PackedStringArray:
|
||||
var warnings := PackedStringArray()
|
||||
var coverage := get_node_or_null(coverage_shape_path) as CollisionShape3D
|
||||
if coverage == null:
|
||||
warnings.append("Add the saved Coverage collision shape.")
|
||||
elif coverage.shape == null:
|
||||
warnings.append("Assign a shape to the failsafe Coverage node.")
|
||||
return warnings
|
||||
Loading…
Add table
Add a link
Reference in a new issue