I2 Localization & Assembly Definition

More
4 years 10 months ago #3728 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.

More
4 years 10 months ago #3729 by weyrdworks
Nevermind. Restarting the editor fixed it. I'll keep this here for future reference.
forum.unity.com/threads/custom-editor-inspector-bug.579088/

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago - 4 years 2 months ago #4029 by fspark
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):
  1. 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.
  2. 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 2 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.489 seconds
Template by JoomlaShine