Announcement

Collapse
No announcement yet.

[Solved] Cast To GameInstance...Issue...Variable Empty

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

    [Solved] Cast To GameInstance...Issue...Variable Empty

    I have a Avtor BP. In the Construction Scipt i call Event in App-GameInstance. But after this the Variable is Empty?

    Click image for larger version  Name:	1.PNG Views:	2 Size:	118.5 KB ID:	1549232

    Here is the GameInstance BP:

    Click image for larger version  Name:	2.PNG Views:	2 Size:	131.6 KB ID:	1549233

    Here is the Output:

    Click image for larger version  Name:	3.PNG Views:	2 Size:	8.2 KB ID:	1549234


    Edit: Added Tags

    #2
    i changed DATA Variable to expose on Spawn
    and get this Output now:

    Click image for larger version

Name:	1.PNG
Views:	436
Size:	50.4 KB
ID:	1549240

    Comment


      #3
      The yellow output is from the player controller BP: (The Actor BP is draged into the Level)

      Click image for larger version  Name:	1.PNG Views:	1 Size:	56.6 KB ID:	1549242

      Comment


        #4
        Where is the best place to create the Data from the Table? This should be done only once. But The Actor have to stay in the Level for other reasons.

        Comment


          #5
          I forgot that i had a calling in the Level Blueprint... i disconnected it and get this output:

          Click image for larger version

Name:	1.PNG
Views:	441
Size:	77.8 KB
ID:	1549265

          Click image for larger version

Name:	2.PNG
Views:	430
Size:	14.2 KB
ID:	1549266

          Comment


            #6
            GameInstance: high-level manager object for an instance of the running game. Spawned at game creation and not destroyed until game instance is shut down. Running as a standalone game, there will be one of these. Running in PIE (play-in-editor) will generate one of these per PIE instance.
            Therefore, getting a ref of the gameinstance in the construction script is not a good idea.

            Comment


              #7
              Thank you!!!
              I will find another solution

              Comment

              Working...
              X