Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug so about the prefabs that disappear

Discussion in '2020.1 Beta' started by laurentlavigne, Apr 23, 2020.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,000
    it also happened in 2018 LTS, isn't that when you guys switched over to Neo prefabs?
    upload_2020-4-22_23-9-44.png
    so it seems to happen with 100% consistency when you import a project from a previous version of unity and some of the API was removed, like, say, [RPC]

    Definitely not user friendly
    A good motivator to fix scripts though.

    since it's a deeply rooted bug I logged it in 2018LTS, you can trace the root more easily like that
    case #1240728
     
  2. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,000
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,000
    Once the scripts are fixed unity does another pass at converting assets.

    That's odd so I looked through the project and found this AssetPostProcessor. Could this be the reason for such behavior?

    Code (CSharp):
    1. using UnityEngine;
    2. using UnityEditor;
    3. using System.Collections;
    4. using System.Collections.Generic;
    5.  
    6. public class GeneralPostProcessor : AssetPostprocessor {
    7.  
    8.     void OnPreprocessModel ()
    9.     {
    10.         ModelImporter importer = assetImporter as ModelImporter;
    11.         importer.materialName = ModelImporterMaterialName.BasedOnMaterialName;
    12.         importer.materialSearch = ModelImporterMaterialSearch.Everywhere;
    13.     }
    14. }