+6 votes

Hey, how is it possible that the tree isn't accessible?

How can you get notified when it will so that you can make up the things you needed to do in the script when the tree wasn't accessible.

To get this message, it's simple :

  • create a scene
  • create a Node and add it to the scene
  • add it a tool script
  • write func ready():
  • then save the file, save the scene, and look at the ouput console
in Engine by (20 points)

1 Answer

+1 vote

Found out how to fix this in GDScript really simply:
Wrap your tree access code in this if statement:

if get_owner() != null:
  # Stuff you want to do with the tree.
by (29 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.
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 webmaster@godotengine.org with your username.