AssetReference.editorAsset on Android?

When trying to build for Android, I get this:

‘error CS1061: ‘AssetReference’ does not contain a definition for ‘editorAsset’ and no accessible extension method ‘editorAsset’ accepting a first argument of type ‘AssetReference’ could be found (are you missing a using directive or an assembly reference?)’

I’m in unity 2020.3.33f1

Is this just a limitation of Android, or does anyone have any leads on how to fix this?

Nothing from the editor API can be used in a build. the .editorAsset is surrounded by #if UNITY_EDITOR pre-processors (hence ‘editor’ in the name), so it can’t be used in any build on any platform.

You will need to change your approach.

Ah, makes sense. Thanks!