ultimate-unreal-engine-mcp 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools/editor/index.js +11 -6
- package/package.json +1 -1
|
@@ -120,20 +120,25 @@ export function registerEditorTools(server, bridge) {
|
|
|
120
120
|
property_name: z.string().describe('The UPROPERTY name to set (e.g., RoomID, RoomDoor, DoorCurve)'),
|
|
121
121
|
value: z.union([z.string(), z.number(), z.boolean()]).describe('The value to set — string for name/text/actor label/asset path, number for int/float, boolean for bool'),
|
|
122
122
|
value_type: z.enum(['bool', 'int', 'float', 'string', 'name', 'text', 'actor', 'asset']).describe('Type of the value'),
|
|
123
|
+
component_name: z.string().optional().describe('Optional subcomponent name (e.g. DoorMesh) to set the property on instead of the actor'),
|
|
123
124
|
}),
|
|
124
125
|
annotations: {
|
|
125
126
|
readOnlyHint: false,
|
|
126
127
|
destructiveHint: false,
|
|
127
128
|
},
|
|
128
129
|
}, withKnownIssues('ue_set_actor_property', async (args) => {
|
|
130
|
+
const payload = {
|
|
131
|
+
actor_label: args.actor_label,
|
|
132
|
+
property_name: args.property_name,
|
|
133
|
+
value: args.value,
|
|
134
|
+
value_type: args.value_type,
|
|
135
|
+
};
|
|
136
|
+
if (args.component_name) {
|
|
137
|
+
payload['component_name'] = args.component_name;
|
|
138
|
+
}
|
|
129
139
|
return sendOrDisconnect(_bridge, {
|
|
130
140
|
type: 'actor.setProperty',
|
|
131
|
-
payload
|
|
132
|
-
actor_label: args.actor_label,
|
|
133
|
-
property_name: args.property_name,
|
|
134
|
-
value: args.value,
|
|
135
|
-
value_type: args.value_type,
|
|
136
|
-
},
|
|
141
|
+
payload,
|
|
137
142
|
});
|
|
138
143
|
}));
|
|
139
144
|
// --------------------------------------------------------------------------
|