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
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."
The text was updated successfully, but these errors were encountered:
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."
The text was updated successfully, but these errors were encountered: