You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followed the Unity guide, using latest 2019.2.6f1. Cloned the repo and copied the folders in as per instructions.
conflict with System.Runtime.CompilerServices.Unsafe.dll (also used by Unity.Mathematics i believe). deleted the one in Ceras, and was able to continue
compiler errors with Color in formatter class. replaced with UnityEngine.Color since i wasnt planning on using colors, was able to finally compile
I was able to run the AOT auto formatter once in another project. updating anything in the custom class has its own set of issues, which i wont get into here.
Now when i modify the custom data class (simple class with a public int and bool) or add a new class with [GenerateFormatter], the autoformatter stalls and hangs the Unity editor. have to force quit.
my SerializerConfig is set up like this as per documentation for Unity + IL2CPP:
var config = new SerializerConfig();
config.Advanced.AotMode = AotMode.Enabled;
GeneratedFormatters.UseFormatters(config);// Also add this line when creating your SerializerConfig if you use IL2CPP
CerasUnityFormatters.ApplyToConfig(config); // Formatters from the UnityExtension for Vector3 etc...
ceras = new CerasSerializer(config);
The text was updated successfully, but these errors were encountered:
just tried setting up v5 from source as per #56 to see if it made any difference
after modifying the editor script to only run autogeneration manually (via a button) I was able to debug a bit more - it seems to hang the editor only if i include an array. List<> is ok.
[GenerateFormatter]
public class NetworkData
{
//public ulong[] compressedPositions; //causes editor hang
public ulong compressedPosition;
public uint compressedRotation;
public ulong compressedPosition2;
public uint compressedRotation2;
public List<ulong> positions; //works!
public List<uint> rotations;
}
(btw the Autogenerator always includes an extra bracket in the Serialize and Deserialize functions)
HI , I want to know how to find if unity use System.Runtime.CompilerServices.Unsafe.dll?
I use ceras version is 4.17 ,i have not throw conflict about you say,
But i build andriod package throw a null exception in Unsafe code..I guess it ignore the original version.maybe it export unsafe.dll version is Unity.
But I am not confirm if true.. could you tell me how to find if the unity use Unsafe.dll?
Followed the Unity guide, using latest 2019.2.6f1. Cloned the repo and copied the folders in as per instructions.
I was able to run the AOT auto formatter once in another project. updating anything in the custom class has its own set of issues, which i wont get into here.
Now when i modify the custom data class (simple class with a public int and bool) or add a new class with [GenerateFormatter], the autoformatter stalls and hangs the Unity editor. have to force quit.
my SerializerConfig is set up like this as per documentation for Unity + IL2CPP:
The text was updated successfully, but these errors were encountered: