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
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;
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment