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?

asked Feb 26, 2018 in Engine by Footurist (830 points)

1 Answer

0 votes
Best answer

Never mind. Didn't add as child.

answered Feb 26, 2018 by Footurist (830 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 How to use this Q&A? before posting your first questions.