Local Co-op Series (Pt 1: player anim)

Pt7: Widget resize (when split screen) and closing



Open Player Base BP
modify Update Cams Command with select float node:
image.png

Readjust widget menu when split screen:


Open Player HUD_W
Set size box as variable and rename it, set 1920 width
image.png
In graph, add custom event
image.png

Back to Player Base BP, add:
image.png

Not work for me, original before setting this BP looks better

Open/Close widget menu:


Back to Player HUD W
Set Inventory canvas hidden in visibility
image.png
set as variable
In graph, create custom event, add input
image.png
image.png

Add Action mapping in project setting:
image.png

To PlayerBase BP:
add variables and:
image.png


Update Item in datatable


Open Item data table DT to update image
image.png
image.png
Move the staek and health potion BP in scene to reactivate the construction script
Now should work
image.png
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.