I have a StaticBody2D
that I create dynamically and set the name
var static_body = StaticBody2D.new()
static_body.name = 'howdy'
I get the name from an Area2D
overlap
for body in get_overlapping_bodies():
print(body.name)
but this prints something like @[email protected]
rather than howdy
(the name I set)
How do I get and/or set the name correctly to get the same name I set?