-
Notifications
You must be signed in to change notification settings - Fork 61
Description
In ConvertToGPUCharacter.cs, there is a function: AddCharacterComponents(), which contains these lines:
**
//@TODO: Need to expose a public API var method = typeof(RenderMesh).Assembly.GetType("Unity.Rendering.MeshRendererConversion", true).GetMethod("Convert", BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public); /method.Invoke(null, new object[]{entity, manager, system, renderer, bakedData.NewMesh, materials}); **
The new signature looks like:
public static void Convert(EntityManager dstEntityManager, GameObjectConversionSystem conversionSystem, bool attachToPrimaryEntityForSingleMaterial, Renderer meshRenderer, Mesh mesh, List< Material > materials, Dictionary<MaterialLookupKey, Material> createdMaterials, LightMaps lightMaps, int lightmapIndex, Transform root, AABB localBounds)
And as a result, there is an error that says: "TargetParameterCountException: Number of parameters specified does not match the expected number."