Class UActionDebugLibrary
Class UActionDebugLibrary
- Defined in File ActionDebugLibrary.h
Inheritance Relationships
Base Type
public UBlueprintFunctionLibrary
class UActionDebugLibrary : public UBlueprintFunctionLibrarySource: Source/Schola/Interactors/Public/Debug/ActionDebugLibrary.h Blueprint Function Library for debugging action dispatch issues.
Use these functions to log action types and safely extract BoxPoints from DictPoints.
Public Static Functions
| Symbol | Details |
|---|---|
LogActionPoint | Log the type and contents of an action Point with detailed information. |
ExtractBoxPointFromDict | Extract a BoxPoint from a DictPoint by key, with detailed logging. |
IsActionDictPoint | Check if an action is a DictPoint. |
IsActionBoxPoint | Check if an action is a BoxPoint. |
GetActionTypeName | Get the type name of an action for debugging. |
LogActionPoint
static void LogActionPoint(const FInstancedStruct &Action, const FString &Context)Log the type and contents of an action Point with detailed information.
Prints the action type name, and if it’s a DictPoint, lists all keys and their types. If it’s a BoxPoint, prints the number of values. Use this in Blueprint before dispatching actions to see what type you’re actually receiving.
Parameters
-
Action – [in] The action to inspect
-
Context – [in] A label for the log message (e.g., “BeforeDispatch”, “Agent0Action”)
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Action | const FInstancedStruct & | The action to inspect |
| 2 | — | Context | const FString & | A label for the log message (e.g., “BeforeDispatch”, “Agent0Action”) |
Attributes: static
Source: Source/Schola/Interactors/Public/Debug/ActionDebugLibrary.h
Implementation: Source/Schola/Interactors/Private/Debug/ActionDebugLibrary.cpp
ExtractBoxPointFromDict
static bool ExtractBoxPointFromDict(const FInstancedStruct &DictAction, const FString &Key, FInstancedStruct &OutBoxPoint)Extract a BoxPoint from a DictPoint by key, with detailed logging.
Safely extracts an individual actuator action from a dictionary of actions. Logs detailed error messages if the key is not found or if the value is not a BoxPoint. Use this to extract individual actuator actions from the agent’s DictPoint action.
Parameters
-
DictAction – [in] The DictPoint containing all actuator actions
-
Key – [in] The key for the actuator (e.g., “MovementInputActuator0”)
-
OutBoxPoint – [out] The extracted BoxPoint (only valid if function returns true)
Returns:
True if extraction succeeded, false otherwise
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | DictAction | const FInstancedStruct & | The DictPoint containing all actuator actions |
| 2 | — | Key | const FString & | The key for the actuator (e.g., “MovementInputActuator0”) |
| 3 | — | OutBoxPoint | FInstancedStruct & | The extracted BoxPoint (only valid if function returns true) |
Attributes: static
Source: Source/Schola/Interactors/Public/Debug/ActionDebugLibrary.h
Implementation: Source/Schola/Interactors/Private/Debug/ActionDebugLibrary.cpp
IsActionDictPoint
static bool IsActionDictPoint(const FInstancedStruct &Action)Check if an action is a DictPoint.
Parameters
Action – [in] The action to check
Returns:
True if the action is a DictPoint, false otherwise
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Action | const FInstancedStruct & | The action to check |
Attributes: static
Source: Source/Schola/Interactors/Public/Debug/ActionDebugLibrary.h
Implementation: Source/Schola/Interactors/Private/Debug/ActionDebugLibrary.cpp
IsActionBoxPoint
static bool IsActionBoxPoint(const FInstancedStruct &Action)Check if an action is a BoxPoint.
Parameters
Action – [in] The action to check
Returns:
True if the action is a BoxPoint, false otherwise
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Action | const FInstancedStruct & | The action to check |
Attributes: static
Source: Source/Schola/Interactors/Public/Debug/ActionDebugLibrary.h
Implementation: Source/Schola/Interactors/Private/Debug/ActionDebugLibrary.cpp
GetActionTypeName
static FString GetActionTypeName(const FInstancedStruct &Action)Get the type name of an action for debugging.
Returns the UStruct name of the action (e.g., “BoxPoint”, “DictPoint”, “MultiDiscretePoint”).
Parameters
Action – [in] The action to inspect
Returns:
The type name as a string, or “null” if the action is invalid
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Action | const FInstancedStruct & | The action to inspect |
Attributes: static
Source: Source/Schola/Interactors/Public/Debug/ActionDebugLibrary.h
Implementation: Source/Schola/Interactors/Private/Debug/ActionDebugLibrary.cpp