MissingComponentException: There is no 'MeshFilter' attached to the "Beat Id" game object, but a script is trying to access it.

Vladimir Stanarević 2 months ago updated by Lazlo Bonin (Lead Developer) 1 month ago 4

When I right-click at some objects, if a child is a TextMesh with MeshRenderer but without MeshFilter, I get errors in console. The problem is in Probe.cs, Line 656:

var mesh = renderer.GetComponent()?.sharedMesh;

Windows 10

    Unity Version:
    Peek Version:

    Correction, the line 656 is:

    var mesh = renderer.GetComponent(<Mesh Filter>)?.sharedMesh;

    Working on Fix

    Hi Vladimir,

    Thanks for the report and sorry about the late reply.

    I see where that could happen and I will fix it in the next update.

    In the mean time, can you try this manual fix:

    var mesh = renderer.GetComponent<Mesh Filter>().AsUnityNull()?.sharedMesh;