Unity code write-off errors

I made a small C # library in mono for Unity3d as a plugin, so that other developers can use the DLL file and they can start coding with it. The library was fine. But when building unity, this error throws UnityException: assembly assemblers fail:

What could be the reason. In some threads, I found that disabling code deletion , set call optimization to be slow and safe, and even use .Net Subset .

My player settings are as follows. Player settings

Answers work as described. But I want to have my own DLLs with the settings of my player. Because I saw a lot of third-party libraries or DLLs that work 100% with the settings of my player. Examples are Prime31 , Neatplug, and even more plugins in a single asset repository.

If you have a solution, let me know.

When creating the library project, I followed the steps mentioned in Unitys Dll Tutorial

+4
source share
2 answers

, .NET 2.0. , , . . : http://docs.unity3d.com/Manual/ReducingFilesize.html

" , Unity API .NET 2.0. Mono, " monotouch " Unitys.NET 2.0. ( " monotouch " : http://developer.xamarin.com/guides/ios/advanced_topics/limitations/). , , . , . , , - , ".

, .NET 2.0, , , .

+1

Nullable. - :

var i = Math.Max(1, SomeClass.NullableProperty ?? DefaultValue);
0

Source: https://habr.com/ru/post/1537364/


All Articles