Change line_separation in RichTextLabel

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bethleem

Can I change the value of line_separation from a RichTextLabel in GDScript?

If try somenthing like “line_separation=5” in ready(), it tells me that the variable isn´t declared in the current scope.
I know I can change it from the inspector but I need to change it on runtime. Any chance?

Thx!

:bust_in_silhouette: Reply From: jgodfrey

You want something like this:

$RichTextLabel.set("custom_constants/line_separation", 25)