You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnewErrorResponse($"component_index {componentIndex.Value} out of range. Found {count3D} '{(type3D??typeof(Collider)).Name}' collider(s) on '{go.name}'.");
123
+
if(type3D!=null)
124
+
{
125
+
intcount3D=go.GetComponents(type3D).Length;
126
+
returnnewErrorResponse($"component_index {componentIndex.Value} out of range. Found {count3D} '{type3D.Name}' collider(s) on '{go.name}'.");
127
+
}
125
128
}
126
129
}
127
130
@@ -149,8 +152,11 @@ public static object Assign(JObject @params)
returnnewErrorResponse($"component_index {componentIndex.Value} out of range. Found {count2D} '{(type2D??typeof(Collider2D)).Name}' collider(s) on '{go.name}'.");
155
+
if(type2D!=null)
156
+
{
157
+
intcount2D=go.GetComponents(type2D).Length;
158
+
returnnewErrorResponse($"component_index {componentIndex.Value} out of range. Found {count2D} '{type2D.Name}' collider(s) on '{go.name}'.");
0 commit comments