Suppose I have a game object and a factory in it, called “parts_factory”. To create an object with this factory I have to call something like:
factory.create("#parts_factory", vmath.vector3(), nil, {}, nil)
If I want then to rename factory in the editor to any other name (like "spare_parts_factory) I also need to refactor the script because otherwise, it contains the wrong url. Is there any other way to get a component id except just hard-coding string, so I wouldn’t need to rename it in all the places I use it during refactoring? Otherwise, it becomes very tedious and difficult to refactor if a component is referenced from many places.