I have a scene that is Tile(Node2D) -> Body(RigidBody2D) -> Sprite(Sprite) -> CollisionShape2D(CollisionShape2D)
I have another scene. The attached gdscript references the sprite scene.
var tile = preload("res://Tile.tscn")
Before instantiation of a single tile, I want to know a tile's width. Something like this:
var width = tile.width
or
var width = tile.Body.Sprite.width
How can I get the width of an uninstantiated sprite?