We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efad9fa commit 524965aCopy full SHA for 524965a
1 file changed
Plugins/AssetUsageDetector/Editor/VariableGetter.cs
@@ -1,5 +1,6 @@
1
using System;
2
using System.Reflection;
3
+using System.Text;
4
using UnityEngine;
5
6
namespace AssetUsageDetectorNamespace
@@ -39,7 +40,12 @@ public object Get( object obj )
39
40
}
41
catch( Exception e )
42
{
- Debug.LogException( e );
43
+ StringBuilder sb = Utilities.stringBuilder;
44
+ sb.Length = 0;
45
+ sb.Append( "Error while getting the value of (" ).Append( IsProperty ? ( (PropertyInfo) variable ).PropertyType : ( (FieldInfo) variable ).FieldType ).Append( ") " )
46
+ .Append( variable.DeclaringType ).Append( "." ).Append( Name ).Append( ": " ).Append( e );
47
+
48
+ Debug.LogError( sb.ToString() );
49
return null;
50
51
0 commit comments