Insert Action is referring to a specific type of Action that a user has to insert an object to a specific position in order to complete it.
For instance, an insert action blueprint can be seen below:
This blueprint inherits from the
Action Blueprint Explanation¶
Set Insert Prefab
This method sets the Action’s insert actors that will be spawned on Initialize. To set an insert Action you need to spawn two different objects, the grabbable (interactable) item and the final item. The first argument is the path to the interactable blueprint while the second is the path to the final.
The Grabbable Parent and the Final Parent arguments are optional and are used in case these objects need to be spawned as children of already spawned actors.
Set Hologram Object
The Hologram is set for initialization through the Set Hologram Object function.
To create the correct actors you need to set their components as follows.
The Interactable actor needs a prefab constructor component, specifically the InteractablePrefabConstructor.
From this component you need to define that this actor will be used in an insert action, this is done in the Prefab Interactable Type property.
Next on the list is the final placement actor. The final placement actor needs the IntFinalPlacementConstruct component, where you need to setup the Prefab Type as
In addition, you need to reference you interactable actor in the PrefabLerpPlacement component.
You can find theses actor pre-configured from the MAGES Menu,
Create Prefab -> Insert Action.
Adding More to it¶
A more complex example that involves two insert actions as sub-actions is the following:
In the above example, notice how each individual insert action follows the exact same pattern of object initialization.