feat(plugin): add terrain3d plugin installation

This commit is contained in:
Rijad Zuzo
2026-07-03 13:05:56 +02:00
parent 5e171ae63a
commit 595233e5df
225 changed files with 13008 additions and 41 deletions
+23
View File
@@ -0,0 +1,23 @@
@tool
extends Node
@onready var terrain: Terrain3D = find_child("Terrain3D")
func _ready():
if not Engine.is_editor_hint() and has_node("UI"):
$UI.player = $Player
# Load Sky3D into the demo environment if enabled
if Engine.is_editor_hint() and has_node("Environment") and \
Engine.get_singleton(&"EditorInterface").is_plugin_enabled("sky_3d"):
$Environment.queue_free()
var sky3d = load("res://addons/sky_3d/src/Sky3D.gd").new()
sky3d.name = "Sky3D"
add_child(sky3d, true)
move_child(sky3d, 1)
sky3d.owner = self
sky3d.current_time = 10
sky3d.enable_editor_time = false