Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/UInteractiveToolsContext
Syntax
TUniqueFunction< UInputRouter &42;(const FContextInitInfo &)> CreateInputRouterFunc
Remarks
Initialize() calls these functions to create the main child objects needed to operate the Tools Framework - InputRouter, ToolManager, GizmoManager, TargetManager, ContextStore. Default implementations are set up in the UInteractiveToolsContext() constructor, however users of the framework are free to replace these with subclasses, or do more complex initialization, by replacing these functions with their own versions before calling Initialize(). (the same could be accomplished by subclassing and overriding Initialize(), however using these lambda functions will be a safer alternative in many cases)