Unity.GPUAnimation icon indicating copy to clipboard operation
Unity.GPUAnimation copied to clipboard

compile error in 2020.1 branch using 2020.2

Open Ph0t0nX opened this issue 5 years ago • 0 comments

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

Ph0t0nX avatar Jan 04 '21 20:01 Ph0t0nX