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 15f7dea commit 137705eCopy full SHA for 137705e
Editor/Tools/UpdateComponentTool.cs
@@ -125,15 +125,16 @@ public override JObject Execute(JObject parameters)
125
return McpUnitySocketHandler.CreateErrorResponse(errorMessage, "update_error");
126
}
127
128
+
129
+ // Ensure field changes are saved
130
+ EditorUtility.SetDirty(gameObject);
131
+ if (PrefabUtility.IsPartOfAnyPrefab(gameObject))
132
+ {
133
+ PrefabUtility.RecordPrefabInstancePropertyModifications(component);
134
+ }
135
136
-
- // Ensure changes are saved
- EditorUtility.SetDirty(gameObject);
- if (PrefabUtility.IsPartOfAnyPrefab(gameObject))
- {
- PrefabUtility.RecordPrefabInstancePropertyModifications(component);
- }
137
138
// Create the response
139
return new JObject
140
{
0 commit comments