Skip to content

Commit

Permalink
Fixed compilation error on 2019.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirkula committed Jan 2, 2020
1 parent a29dc59 commit 51abec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugins/AssetUsageDetector/Editor/AssetUsageDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1447,12 +1447,12 @@ private VariableGetterHolder[] GetFilteredVariablesForType( Type type )
continue;
else if( ( propertyName == "material" || propertyName == "materials" ) &&
( typeof( Renderer ).IsAssignableFrom( currType ) || typeof( Collider ).IsAssignableFrom( currType ) ||
typeof( Collider2D ).IsAssignableFrom( currType )
#if !UNITY_2019_3_OR_NEWER
#pragma warning disable 0618
|| typeof( GUIText ).IsAssignableFrom( currType ) ) )
typeof( GUIText ).IsAssignableFrom( currType ) ||
#pragma warning restore 0618
#endif
typeof( Collider2D ).IsAssignableFrom( currType ) ) )
continue;
else
{
Expand Down

0 comments on commit 51abec2

Please sign in to comment.