For example:
- Code: Select all
[CompilerWarning] [CS0618] 'PrefabUtility.GetPrefabType(Object)' is obsolete:
'Use GetPrefabAssetType and GetPrefabInstanceStatus to get the full picture about Prefab types.'
Compiler Warning at Assets/AmplifyColor/Plugins/Editor/AmplifyColorEffectEditorBase.cs:72 column 33
70: {
71: GameObject effectPrefab = PrefabUtility.GetPrefabParent( effect.gameObject ) as GameObject;
-->72: PrefabType effectPrefabType = PrefabUtility.GetPrefabType( effect.gameObject );
73: bool effectIsPrefab = ( effectPrefabType != PrefabType.None && effectPrefabType != PrefabType.PrefabInstance );
74: bool effectHasPrefab = ( effectPrefab != null );