@specter-automation/test 1.0.119 → 1.0.120

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.
@@ -166,6 +166,7 @@ export interface SpawnOptions {
166
166
  rotation?: Rotator;
167
167
  properties?: Record<string, any>;
168
168
  spawnController?: boolean;
169
+ name?: string;
169
170
  }
170
171
  export interface ClickOptions {
171
172
  strategy?: 'hardware' | 'broadcast' | 'function';
@@ -633,6 +633,9 @@ class SpecterWorld {
633
633
  const properties = options?.properties;
634
634
  const spawnController = options?.spawnController;
635
635
  await this.evaluate("SpawnActor", { assetPath, tag, location, rotation, properties, spawnController }, assetName, tag);
636
+ if (options?.name) {
637
+ return this.actorByTag(tag).named(options.name);
638
+ }
636
639
  return this.actorByTag(tag);
637
640
  }
638
641
  // ==========================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@specter-automation/test",
3
- "version": "1.0.119",
3
+ "version": "1.0.120",
4
4
  "description": "Playwright integration for Unreal Engine automation via Specter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",