Announcement

Collapse
No announcement yet.

User Widget Initialize seems to be called multiple times?

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

    User Widget Initialize seems to be called multiple times?

    Hello,

    I'm not sure if this is even a bug, but it's confusing me.

    I have a Main Menu widget CPP class that the initialize function seem to continue to fire off and on the entire time the game is being played.

    bool MainMenu::Initialize()
    {
    bool InitSuccess = Super::Initialize();
    UE_LOG(LogTemp, Warning, TEXT("Main Menu Initialized"))
    // more code
    etc.
    return true;
    }

    while in PIE I notice the log prints the string pretty consistently (I haven't timed it, but it's every few seconds).

    The MainMenu widget is being created in the begin play function of the player controller class.

    I don't really understand why this would log more than once?

    Is it something to be worried about?

    #2
    Hi,
    I gave it a shot my self, I don't have that problem, try print everytime you playercontroller falls begin play maybe there is the issue.

    Comment

    Working...
    X