Hello,
I have a need to have a list of all keys used in components of the same type placed on different prefabs. I have considered several implementation methods, but unfortunately, all of them have encountered some issues. Solving any of these issues would allow me to achieve the desired logic:
- Modifying and saving changes through code in base assets like cc.Prefab or cc.JsonAsset. If these changes are made now, they happen in a file that’s stored in operative memory.
- A savable global object. Currently, all changes to global objects are reset upon cocos reload/scene transition.
- Creating a dynamically changing Enum, which isn’t updated upon page reload.
Also, within the scope of these questions, there are inquiries about working with Custom cc.Asset. If there’s any information available on working with them, I’d greatly appreciate it. Thank you:)
I’m trying to address these issues in CocosCreator 2.4.11. This solution is needed for a more accurate interaction with the editor.