0 votes

So, the question was already posed and answered, but this approach won't work for me:

extends Node2D

var FancyTSButton = preload("res://addons/FancyTSButton/FancyTSButton.gd")

func _ready():
    var button = FancyTSButton.new()

After running it, nothing at all happens. The only error it reports is !is_inside_tree() is true while pointing to line 3. Any ideas?

in Engine by (840 points)

1 Answer

0 votes
Best answer

Never mind. Didn't add as child.

by (840 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.