Localization: implementing custom CSV columns

Hi, we’re writing a localization package on top of Unity Localization.

I’m trying to export some custom metadata to CSV, and I have problems overriding CsvColumns (almost copied the CsvCustomColumnsExample).

I think the problem is getting the CsvHelper dependency right. It’s not listed among com.unity.localization dependencies, so I’d have to introduce it manually to my package, and that seems to be causing versioning clash and compiler not recognizing my methods overriding those from CsvColumns class.

Is CsvHelper intentionally omitted from com.unity.localization dependencies, and if so, how should I properly include it in my own plugin (which has com.unity.localization in its dependencies)?

Thanks!

CsvHelper is included inside of Unity.Localization.ThirdParty.Editor.dll. Add this as a dependency to your asmdef, in the same way as Unity.Localization.Editor.asmdef

Thanks, that worked!

For the future reference, in order to add a DLL to one’s asmdef, one needs to check “Override References” checkbox in the Assembly Definition Asset inspector.

2 Likes