I want to retrieve the location of a StaticMeshActor I placed in the Level World.
However, I can’t retrieve its location and got the following error:
> LogPython: Error: Exception: StaticMeshActor: Failed to find property ‘location’ for attribute ‘location’ on ‘StaticMeshActor’
Here is the code:
> location = actor.get_editor_property(‘location’)
I’ve also tried to title-case that property as ‘Location’ and got the same error.
What is the correct way to get the location?