Skip to content

Class UActionDebugLibrary

Class UActionDebugLibrary

  • Defined in File ActionDebugLibrary.h

Inheritance Relationships

Base Type

  • public UBlueprintFunctionLibrary
class UActionDebugLibrary : public UBlueprintFunctionLibrary

Source: 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

SymbolDetails
LogActionPointLog the type and contents of an action Point with detailed information.
ExtractBoxPointFromDictExtract a BoxPoint from a DictPoint by key, with detailed logging.
IsActionDictPointCheck if an action is a DictPoint.
IsActionBoxPointCheck if an action is a BoxPoint.
GetActionTypeNameGet 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”)

#DirectionNameTypeDescription
1Actionconst FInstancedStruct &The action to inspect
2Contextconst 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

#DirectionNameTypeDescription
1DictActionconst FInstancedStruct &The DictPoint containing all actuator actions
2Keyconst FString &The key for the actuator (e.g., “MovementInputActuator0”)
3OutBoxPointFInstancedStruct &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

#DirectionNameTypeDescription
1Actionconst 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

#DirectionNameTypeDescription
1Actionconst 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

#DirectionNameTypeDescription
1Actionconst FInstancedStruct &The action to inspect

Attributes: static

Source: Source/Schola/Interactors/Public/Debug/ActionDebugLibrary.h

Implementation: Source/Schola/Interactors/Private/Debug/ActionDebugLibrary.cpp