Skip to main content
Version: Reality 4.27

Exporting Blueprint Functions

Function exporting is a Reality Editor feature that affects the Reality Setup for calling functions in real-time. You can export INPUT/OUTPUT parameters to the function that will be exposed. You can call the function on Reality Setup.

Rules of Function Exposing

  • ZDActor Component component must be attached to the Actor object.
  • The exposed function must be declared as public.

Implementation

  • Create a new Actor instance. Rename it as ExampleActor. Double click on it.
  • Click ADD COMPONENT search for “ZD” and attach ZD ACTOR component on Components tab.

  • Click ADD NEW +FUNCTION on the My Blueprint tab. Rename it as SimpleFunction.

  • After selecting the function, on the Details Panel (on the right side), click the + to add the parameter.

  • Add Boolean and Vector parameters.

  • Click COMPILE and then click SAVE. Close the blueprint.

  • Put your actor into the level.
  • Click PLAY on Reality Editor. Switch to the RealiyHub.

  • Click ExampleActor on Reality Setup. Investigate the properties tab. The function parameters that we added (Boolean Param and Vector) param will be shown. You can execute the function on the Reality Setup.