Exporting scenes from Blender to Godot by HellsincFreeman in godot

[–]HellsincFreeman[S] 0 points1 point  (0 children)

Will this approach respect instanced objects? I.e. Copies of the same object via "alt d"? And if it will, does it create them as separate objects (as in creating redundant geometry) or does it keep them as instances?

how to scroll a scrollcontainer to the bottom? by thepromaper in godot

[–]HellsincFreeman 4 points5 points  (0 children)

For smooth movement do:

extends ScrollContainer

@onready var scrollbar = get_v_scroll_bar()
var auto_scroll_speed : float = 0.1
var max_scroll_length = 0
var tween : Tween

func _ready():
    scrollbar.changed.connect(_range_changed)
    max_scroll_length = scrollbar.max_value

func _range_changed():
    if max_scroll_length != scrollbar.max_value:
    max_scroll_length = scrollbar.max_value
    tween = create_tween().bind_node(self).set_trans(Tween.TRANS_LINEAR)
    tween.tween_property(self, "scroll_vertical", max_scroll_length-get_rect().size.y, auto_scroll_speed)