Skip to content

Commit 40f8df3

Browse files
committed
Updated log message
1 parent 23037ac commit 40f8df3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ComponentAttribute/Assets/ComponentAttribute/ComponentAttribute.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public static class CAExtensions {
8484
private const string MISSING_ERROR = "Component Loader: Unable to load {0}, disabling {1} on {2}";
8585

8686
private const string MISSING_OBJECT = "Component Loader: Unable to find a GameObject named {0}";
87+
private const string MISSING_OBJECT_COMPONENT = "Component Loader: Unable to load {0} on {1} for {2}";
8788
private const string MISSING_OBJECT_ADD = "Component Loader: Adding {0} on {1} for {2}";
8889
private const string MISSING_OBJECT_ERROR = "Component Loader: Unable to find a GameObject named {0}, disabling {1} on {2}";
8990
private const string MISSING_OBJECT_CERROR = "Component Loader: Unable to load {0} on {1}, disabling {2} on {3}";
@@ -142,7 +143,7 @@ public static void LoadComponents( this MonoBehaviour behaviour ) {
142143
behaviour.enabled = false;
143144
return;
144145
} else {
145-
Debug.LogWarningFormat( bGameObject, MISSING, memberType.Name, gObj.name );
146+
Debug.LogWarningFormat( bGameObject, MISSING_OBJECT_COMPONENT, memberType.Name, gObj.name, bType.Name );
146147
continue;
147148
}
148149
}

0 commit comments

Comments
 (0)