Search Unity

Using PrefabUtility.GetPrefabAssetType(...) causes warning spam when used in OnValidate

Discussion in 'Prefabs' started by xVergilx, Sep 15, 2018.

  1. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Is there something can be done to remove the warnings? Previous versions of GetPrefabType() didn't causes such warnings.

    400+ of them doesn't help when my scripts are getting validated on the run.
    This is on Unity 2018.3.0b1.
     
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Extra suggestion - remove the warning completely for OnValidate call.