Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Bug A temporary fix to the Mesh Filter "Type Mismatch" error in latest versions

Discussion in 'Editor & General Support' started by Nianyi_Wang, Jul 15, 2023.

  1. Nianyi_Wang

    Nianyi_Wang

    Joined:
    Sep 9, 2021
    Posts:
    17
    Ever since upgrading to Unity 2022.3.4f1, the mesh slot in MeshFilter became not working.
    The selection panel will not show any mesh, and any previously set values will be prompted "Type Mismatch";
    though the rendering and other stuffs are all fine, it's impossible to manually assign any mesh to any mesh filter.



    I've named the issue but Unity staffs told me it's been staged as duplicated, there was some dude pointing this out back in March, but still it doesn't seem to be getting fixed by any soon.

    Anyways, I found out that if you write a custom editor script for MeshFilter which does absolutely nothing, like this:

    Code (CSharp):
    1. using UnityEngine;
    2. using UnityEditor;
    3.  
    4. [CustomEditor(typeof(MeshFilter))]
    5. public class MeshFilterEditor : Editor {
    6.     public override void OnInspectorGUI() {
    7.         base.OnInspectorGUI();
    8.     }
    9. }
    then eveything will be fine.
     
  2. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53
  3. Nianyi_Wang

    Nianyi_Wang

    Joined:
    Sep 9, 2021
    Posts:
    17
    Thanks for replying, I did got this reply via email, though for some reason I can neither vote nor reply on the issue. There is also absolutely no progress I can see.
     
  4. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53
    Hmmmmm, did you login, as you need to be logged in to vote on it
     
  5. Nianyi_Wang

    Nianyi_Wang

    Joined:
    Sep 9, 2021
    Posts:
    17
    I should have mentioned, I tried to login but it seems the logged-in state is somehow buggy, every half minutes or so I'm redirected to the unity home page & lose my logged-in state. There might be some problems with VPNs (I'm in China so...)
     
  6. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53
    What VPN provider are you using if you don't mind me asking, there is a known issue with NordVPN, which is something to be fixed from their end...
     
  7. Nianyi_Wang

    Nianyi_Wang

    Joined:
    Sep 9, 2021
    Posts:
    17
    I'm using Clash as agent, service provider is
    hitun.io
    , if it helps.
     
  8. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53
    Hmm, then try filling out a Bug Report
    https://unity.com/releases/editor/qa/bug-reporting

    Maybe our CQA team will be able to find something in your logs that could help out with the issue, also don't forget to link this forum thread in the report when you do so.
     
  9. Nianyi_Wang

    Nianyi_Wang

    Joined:
    Sep 9, 2021
    Posts:
    17
    Update: this bug is magically fixed in 2022.3.5f1 on my PC, though there's nowhere to see a fix note.