Dialogue Plugin

So I’m trying to use Get Game Mode in the Dialogue Conditions bp, and my cast to my game mode is failing because “no world was found”, which I’m finding nothing on google about. I did find this link https://forums.unrealengine./development-discussion/c-gameplay-programming/44901-uobject-vs-actor-event-graphs?73680-UObject-vs-Actor-event-graphs= where in the 5th post they describe how to get world from uobject children. So I dug into your files and found this,



    // It is assigned in DialogueUserWidget.cpp just before calling IsConditionMet()
    UPROPERTY(Transient)
    UWorld * World;

    virtual UWorld* GetWorld() const
    {
        return World;
    }


But looking in the DialogueUserWidget.cpp I’m not seeing world being assigned, unless it’s coming from elsewhere and you’re referring to the order of execution.

Basically I just need a way to get the game mode through the conditions, and probably from events as well, but I haven’t checked there.