Advertisement
Guest User

Untitled

a guest
Sep 28th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. UE4 v4.9.1 - blank bp project, optimise for mobile, scaled graphics, no default content
  2.  
  3. create MyGameMode (gamemode)
  4. create MyPlayerController (player controller)
  5. create UI_level1 (user widget)
  6. create UI_level2 (user widget)
  7. create UI_level3a (user widget)
  8. create UI_level3b (user widget)
  9. create UI_level3c (user widget)
  10. create UI_level3a_sub (user widget)
  11. create UI_level3b_sub (user widget)
  12. create UI_level3c_sub (user widget)
  13.  
  14. edit UI_level1, drag in UI_level2
  15. edit UI_level2, add a widget switcher, drag UI_level3a UI_level3b UI_level3c into the widget switcher
  16. edit UI_level3a, drag in UI_level3a_sub [also do this for 3b and 3c]
  17. add a text box to the 'sub' widgets so you can see which one is visible
  18.  
  19. edit MyPlayerController, create UI_level1 and add it to viewport, add input to 1,2 and 3 to set the widget switcher index to 0,1 and 2
  20. set world properties to use MyGameMode and MyPlayerController
  21.  
  22. compile and save everything
  23.  
  24. PIE
  25.  
  26. At this point it should run and let you switch between the three widget pages and correctly show each one on screen as you switch with the keys assigned in MyPlayerController
  27.  
  28. Close the editor, reopen the project.
  29.  
  30. PIE
  31.  
  32. This test project works, my main project will result in the RPG tab not showing anything and the [REINST] note showing up on hover.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement