-
Notifications
You must be signed in to change notification settings - Fork 244
Call Blueprint Owner Function
Krzysiek Justyński edited this page Jun 16, 2024
·
4 revisions
This feature became deprecated with the introduction of Flow AddOns wiki
This allows us to call blueprint functions on owning objects from the Flow Graph. This is quite a significant feature added by contributed by LindyHopperGT.
-
UFlowAsset
has anExpectedOwnerClass
property. This is used to scrape the eligible callable functions from. In practice, the Flow Graph can be owned by this class or any subclass and the functions will still bind correctly. - The
DefaultExpectedOwnerClass
can be configured in the Flow project settings (defaults to UFlowComponent, which has no functions, so you'll likely want to change it) - Owner classes must implement
IFlowOwnerInterface
to be findable in theExpectedOwnerClass
drop-down. - The CallOwnerFunction FlowNode can select an eligible function and allow the author to configure the params object
- The eligible functions accept a single "Params Object" input parameter. This is subclassable to add additional variables and define the pins for the Flow Ndoe.
- Pins for
CallOwnerFunction
are auto-populated with those defined by the function's params object. - If the new Adaptive Node Titles feature is enabled, the
CallOwnerFunction
title will update to include the function name. - The eligible functions return an output pin name to trigger (or None, if no pin should be triggered).
- The
Params Object
class can override blueprint functions for Pre and Post Execute, to fill in dynamically sourced parameters. - The
Params Object
class may also override a blueprint function to determine if an output pin should "Finish" the node (the default is true).
- See the example Flow Component that has three functions:
DanceParty
,StayOutAllNight
, andBoringFunction
. - There are 2 example params objects:
ExampleFlowOwnerParams
andTimerFlowOwnerParams
. -
DanceParty
andStayOutAllNight
both accept theTimerFlowOwnerParams
. -
BoringFunction
accepts theExampleFlowOwnerParams
. -
DanceParty
andBoringFunction
blueprints showcase how to access the input names, the executed input name, the output names, and other user-defined properties from the params object.
Got any questions? Discuss things related to the plugin on the dedicated Discord server.
- Overview
- Guides
- Legacy
- API
- Releases