I'm writing a plugin to parse a json map file containing position data of sprites. In order for this to work I need to find all object instances on the layout and modify their positions. Currently the editor api only allows me to create new objects but it doesn't give me the access for any of the existing objects in my project.
How should this work?
- Add to IProject interface a method GetObjectType(name) - Look up an IObjectType by a case-insensitive string of its name.
- Add to IObjectType interface a method GetAllWorldInstances() - Returns an read-only array of IWorldnstance that have been created.
These methods were already added in the latest beta releases (see SDK updates), including GetObjectTypeByName() and IObjectType.GetAllInstances(). The documentation is updated at the next stable release.