#How to get position from a Marker2D

1 messages · Page 1 of 1 (latest)

wispy nebula
#

When I try to get the position via Marker2D.position I get Invalid get index 'position' (on base Marker2D). I In the inspector the Marker has its Position properties under Node2D. How can I get the position in script?

swift mica
#

Marker2D is a node TYPE not a node/object. You cant access properties of a type you need to instantiate it and then you can access the property on the instantiated object.