Loading...
Searching...
No Matches
SCR_SocketSpawnerPluginWE Interface Reference

World Editor version of Socket Spawner Plugin Uses WorldEditor API for resource selection instead of ResourceManager. More...

Inheritance diagram for SCR_SocketSpawnerPluginWE:
SCR_SocketSpawnerPlugin

Protected Member Functions

override void GetSelectedResources (out array< ResourceName > selectedResources)
 Override to use WorldEditor API for resource selection instead of ResourceManager.
 
- Protected Member Functions inherited from SCR_SocketSpawnerPlugin
void Execute ()
 Execute button handler - triggers the plugin execution.
 
bool Close ()
 Close button handler - closes the configuration dialog.
 
bool ProcessSelectedPrefabs (out array< ResourceName > outPrefabs)
 Collect selected resources from Resource Browser and filter to .et prefabs.
 
bool ProcessSinglePrefab (ResourceName prefabResource, WorldEditor worldEditor, bool clearExistingChildren)
 Process a single prefab: create temp entity, optionally clear children, scan bones, spawn children.
 
bool RefreshBoneMatrixMap (notnull IEntitySource entitySource, notnull out map< string, ref array< vector > > boneMatrixMap, WorldEditorAPI api)
 Build a map of bone names to their transformation matrices from entity animation data Based on RefreshBoneMatrixMap pattern used in SCR_PrefabSocketProcessorPlugin.c.
 
bool ExtractGuidFromBoneName (string boneName, out string guid16, out string suffix)
 Extract GUID16 from bone name pattern: "socket_<GUID16>_<suffix>" (case-insensitive)
 
bool CreateEntityAtBone (string boneName, string guid16, vector position, array< vector > boneMatrix, WorldEditor worldEditor, IEntitySource parentEntitySource)
 Create a child entity at a bone location using GUID-based ResourceName "{GUID16}".
 
void ShowResults ()
 Display results summary in console and dialog box.
 

Additional Inherited Members

- Public Member Functions inherited from SCR_SocketSpawnerPlugin
override void Configure ()
 Display configuration dialog with plugin settings and usage instructions.
 
override void Run ()
 Main execution method - processes selected prefabs and spawns entities at socket bones.
 
- Protected Attributes inherited from SCR_SocketSpawnerPlugin
bool m_bClearChildren
 
bool m_bVerboseOutput
 
int m_iProcessedPrefabs
 
int m_iCreatedEntities
 
int m_iTotalSockets
 
ref array< string > m_aErrors
 

Detailed Description

World Editor version of Socket Spawner Plugin Uses WorldEditor API for resource selection instead of ResourceManager.

Member Function Documentation

◆ GetSelectedResources()

override void SCR_SocketSpawnerPluginWE.GetSelectedResources ( out array< ResourceName > selectedResources)
protected

Override to use WorldEditor API for resource selection instead of ResourceManager.

Parameters
selectedResourcesOutput array to receive selected resource names

Implements SCR_SocketSpawnerPlugin.


The documentation for this interface was generated from the following file: