Announcement

Collapse
No announcement yet.

The C++ UMG Tutorial is obsolete as of at least 4.14

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    The C++ UMG Tutorial is obsolete as of at least 4.14

    Tutorial in question link:
    https://docs.unrealengine.com/latest...UMG/index.html

    The tutorial located at the aobe link is now outdated. As of at least 4.14 when you follow all of the steps you will not be able to interact with the buttons (you can click once using the initial PIE focusing click, and not at all in stand alone). It appears between 4.9 - 4.14 a change occurred where you now need to specify to set the input mode to allow for UI interactions.


    Suggested change:
    On page 2 (https://docs.unrealengine.com/latest...G/2/index.html). When configuring the game mode add the following lines to the "BeginPlay" function:

    FInputModeDataBase* inputMode = new FInputModeGameUIOnly();
    GetWorld()->GetFirstPlayerController()->SetInputMode(inputMode);


    I ended up moving the above tid bit to a "MenuPlayerController" class just because it seemed a bit cleaner to me. If there is a better solution or I am doing something way off and anyone feels like sharing, thanks in advance.

    #2
    Originally posted by Brennen1350 View Post
    Tutorial in question link:
    https://docs.unrealengine.com/latest...UMG/index.html

    The tutorial located at the aobe link is now outdated. As of at least 4.14 when you follow all of the steps you will not be able to interact with the buttons (you can click once using the initial PIE focusing click, and not at all in stand alone). It appears between 4.9 - 4.14 a change occurred where you now need to specify to set the input mode to allow for UI interactions.


    Suggested change:
    On page 2 (https://docs.unrealengine.com/latest...G/2/index.html). When configuring the game mode add the following lines to the "BeginPlay" function:

    FInputModeDataBase* inputMode = new FInputModeGameUIOnly();
    GetWorld()->GetFirstPlayerController()->SetInputMode(inputMode);


    I ended up moving the above tid bit to a "MenuPlayerController" class just because it seemed a bit cleaner to me. If there is a better solution or I am doing something way off and anyone feels like sharing, thanks in advance.
    Thanks for pointing that out! I'll take a look at it and get it updated as soon as possible.

    Comment

    Working...
    X