#How to get position from a Marker2D
1 messages · Page 1 of 1 (latest)
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.
1 messages · Page 1 of 1 (latest)
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?
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.