Skip to main content

Blueprint node

Category: XRLIVE | ACTORS Registers a Material Parameter Collection (MPC) asset to have all its scalar and vector parameters reset to their default values when the visual closes.
PinTypeDescription
MPCUMaterialParameterCollection*The MPC asset to register

Example

Event BeginPlay

Register MPC for Reset
    MPC: MPC_VisualGlobals
Then later in your visual, change MPC values freely:
Set Scalar Parameter Value (MPC_VisualGlobals, "Intensity", 0.8)
Set Vector Parameter Value (MPC_VisualGlobals, "Color", ...)
When the visual closes, all parameters are automatically restored to the default values stored in the MPC_VisualGlobals asset.

Notes

  • Register the MPC once on Event BeginPlay — you only need to call this node once per MPC regardless of how many times you write to it.
  • The defaults are read from the MPC asset itself (the values shown in the asset editor), not from when you registered it.
  • If multiple visuals share the same MPC, always register it so each visual starts from a known state.