Skip to content

Instantly share code, notes, and snippets.

View bramreth's full-sized avatar

Bram bramreth

View GitHub Profile
@TheOrioli
TheOrioli / diagonal_vbox_container.gd
Last active October 17, 2024 22:04
GDScript that offsets children of a VBoxContainer
@tool
extends VBoxContainer
@export var offset: Vector2 = Vector2.ZERO
func _notification(what: int) -> void:
match what:
NOTIFICATION_SORT_CHILDREN:
for i in get_child_count():
var c := get_child(i)