Skip to content

compile error in 2020.1 branch using 2020.2 #7

@Ph0t0nX

Description

@Ph0t0nX

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions