+1 vote

how to get root node using gdscript?
this code doesn't work anymore in godot 3.0


in Engine by (49 points)
edited by

what are you trying to do?
getting viewport size?

func _ready():

this code works as expected with godot 3.0 in my case.

Sorry for the late reply

I'm getting viewport size.

Strange This code now working! must be typo :D

Should i delete this post?

don't have to :)

Please log in or register to answer this question.

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.