Search Issue Tracker

Fixed in 5.1.0

Votes

1

Found in

5.0.0f2

Issue ID

673824

Regression

No

[WebGL] TypeLoad Exception with Auto-Properties in build

WebGL

-

To reproduce:
- Open the project and build to webgl
- Observe errors:
TypeLoadException: A type load exception has occurred.
System.Type.MakeGenericType (System.Type[] typeArguments)
System.Reflection.MonoProperty.CreateGetterDelegate (System.Reflection.MethodInfo method)
System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index)
FullSerializer.Internal.fsMetaProperty.Read (System.Object context)
FullSerializer.Internal.fsReflectedConverter.TrySerialize (System.Object instance, FullSerializer.fsData& serialized, System.Type storageType)
FullSerializer.fsSerializer.InternalSerialize_4_Converter (System.Object instance, FullSerializer.fsData& data)
FullSerializer.fsSerializer.InternalSerialize_3_ProcessVersioning (System.Object instance, FullSerializer.fsData& data)
FullSerializer.fsSerializer.InternalSerialize_2_Inheritance (System.Type storageType, System.Object instance, FullSerializer.fsData& data)
FullSerializer.fsSerializer.InternalSerialize_1_ProcessCycles (System.Type storageType, System.Object instance, FullSerializer.fsData& data)
FullSerializer.fsSerializer.TrySerialize (System.Type storageType, System.Object instance, FullSerializer.fsData& data)
StringSerializationAPI.Serialize (System.Type type, System.Object value)
Network.Start ()

Workaround is possible by changing 'Network' script:
public class TokenResponse
{
public string access_token { get; set; }
public string token_type { get; set; }
public int expires_in { get; set; }
}

to

public class TokenResponse
{
public string access_token;
public string token_type;
public int expires_in;
}

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.