0
Geplant

Building to Android compiler error: Missing reference to SharedMemoryInterface in SharedMemoryInterfaceEditor

Henrik Nordlund vor 1 vor einem Jahr in realvirtual.io Starter and Professional aktualisiert von Support vor 1 vor einem Jahr 3

When switching build mode to Android, the SharedMemoryInterfaceEditor is still compiled but SharedMemoryInterface is not.

First line in SharedMemoryInterface:

#if UNITY_STANDALONE_WIN

First line in SharedMemoryInterfaceEditor:

#if (UNITY_EDITOR && !UNITY_EDITOR_OSX && !UNITY_EDITOR_LINUX)


Clearly, in android, the  SharedMemoryInterface is not declared but SharedMemoryInterfaceEditor is, leading to compiler error.

Work around: Change first line in SharedMemoryInterfaceEditor to:

#if (UNITY_EDITOR && UNITY_STANDALONE_WIN && !UNITY_EDITOR_OSX && !UNITY_EDITOR_LINUX)

Antwort

Antwort
Wird überprüft

Thanks a lot - which version are you using. In the current release we are able to build to Android? The compiler define  of your work around is a solution - in current release it should be solved by the assembly definition.

Antwort
Wird überprüft

Thanks a lot - which version are you using. In the current release we are able to build to Android? The compiler define  of your work around is a solution - in current release it should be solved by the assembly definition.