I2 Localization & Assembly Definition
- weyrdworks
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
5 years 7 months ago #3728
by weyrdworks
I2 Localization & Assembly Definition was created by weyrdworks
Hi. I have a project with several modules in their own respective AssemDefs and they aren't able to see the I2 namespace. I tried defining an assembly definition for I2 and another for its editor folder (both referencing each other to resolve the subsequent errors) but now I'm getting an error when I view the LanguageSource files
Instance of LanguageSourceInspector couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.
Please Log in or Create an account to join the conversation.
- weyrdworks
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
5 years 7 months ago #3729
by weyrdworks
Replied by weyrdworks on topic I2 Localization & Assembly Definition
Nevermind. Restarting the editor fixed it. I'll keep this here for future reference.
forum.unity.com/threads/custom-editor-inspector-bug.579088/
forum.unity.com/threads/custom-editor-inspector-bug.579088/
Please Log in or Create an account to join the conversation.
4 years 11 months ago - 4 years 11 months ago #4029
by fspark
Replied by fspark on topic I2 Localization & Assembly Definition
Did you not get a cyclic reference error when referencing the assembly definitions files with each other?
What worked for me was the following (including TextMeshPro):
You may have to quit and restart the Unity editor to resolve any reference errors.
What worked for me was the following (including TextMeshPro):
- Add an Assembly Definition under the I2 folder (root folder) e.g. I2AsmDef and in the inspector, edit its Assembly Definition References to include Unity.TextMeshPro. I also had 'Any Platform' enabled.
- Add a second Assembly Definition e.g. I2EditorAsmDef under the I2/Localization/Scripts/Editor folder and in the inspector, edit its Assembly Definition References to include Unity.TextMeshPro and the I2AsmDef assembly definition created earlier in step 1. Deselect all platforms and only enable 'Editor'.
You may have to quit and restart the Unity editor to resolve any reference errors.
Last edit: 4 years 11 months ago by fspark.
The following user(s) said Thank You: likudo
Please Log in or Create an account to join the conversation.
Time to create page: 0.130 seconds