LocalizedAsset Property Drawer exception when using List or Array

Any time we want to use a list or an array of LocalizedAssets (eg. LocalizedSprite) the inspector stops working and a NullReferenceException is spammed to the console.
This does not happen when using the type directly:

// this works
public LocalizedSprite locSprite;
// the follow does not work
public List<LocalizedSprite> locSpriteList:
public LocalizedSprite[] locSpriteArray;

We tracked this down to the variable ‘assetType’ being null in LocalizedReferencePropertyDrawer.cs:141. I think there may be more stuff that relies on that variable to not be null, although I did not check. I suspect the instance is not properly created/initialized when used inside an array/a list?

Is there a way to fix this without waiting for a new version? We are using version “0.9.0-preview”.

Hi,
We have fixed this in 0.10.0 which we hope to have released in the next few days.

You can fix it now. Here is the change. You will need to move the package out of the package cache and into the project Package folder to be able to make changes

Hi karl_jones,
Thank you!