gfolf2/addons/terrain_3d/utils/transform_changed_notifier.gd

15 lines
245 B
GDScript3
Raw Normal View History

2024-10-20 21:47:57 +00:00
@tool
extends Node3D
signal transform_changed
func _ready() -> void:
assert(Engine.is_editor_hint())
set_notify_transform(true)
func _notification(what: int) -> void:
if what == NOTIFICATION_TRANSFORM_CHANGED:
transform_changed.emit()