Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
Issue ID
1346334
Regression
Yes
[Mono Upgrade] MissingMethodException thrown when attempting to use IsComObject
Usage of IsComObject now throws a MissingMethodException where previously it would not.
To repro attach the following script to an object and enter playmode:
```
using System;
using UnityEngine;
public class DynamicTest : MonoBehaviour
{
public int test = 10;
// Start is called before the first frame update
void Start()
{
#if DISABLE_COM
Debug.Log("COM DISABLED!!!");
#endif
dynamic dyn = test;
Type t = dyn.GetType();
Debug.Log("Type:"+t.FullName);
}
// Update is called once per frame
void Update()
{
}
}
```
Introduced by the mono upgrade
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.1):
Fixed regression introduced by the mono upgrade where a MissingMethodException was thrown when IsComObject was called.