Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error in 2020.1 branch using 2020.2 #7

Open
Ph0t0nX opened this issue Jan 4, 2021 · 0 comments
Open

compile error in 2020.1 branch using 2020.2 #7

Ph0t0nX opened this issue Jan 4, 2021 · 0 comments

Comments

@Ph0t0nX
Copy link

Ph0t0nX commented Jan 4, 2021

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."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant