Blueprint Runtime Error: "Accessed None trying to read property PlayerUI"

@Vinicius_Pires
i created as you said but i wonder where the Name/Function Variable is stored can you enlighten me please.

regards Daniel

1 Like

Sorry for the late :open_mouth:.

I forgot to mention that:

First, I created a BP interface to communicate with the items. In this interface, I added an output called “Name” of type text. Why is that? Because this way you can give a name to any item or character. :slight_smile:

Second, I created a new variable with the same name and type inside the widget with the following specifications:
“instance editable” in the details panel.


Bind the text.

Don’t forget to add the interface to your master item.

Sorry but i didnt get it at the Time, let me try to Describe.

  1. I create a Widget “W_PickupText” and add Overlays and so on (cant find the Backgrund).
  2. Inside the “W_PickupText” i create a Variable “Text” and check the “instance editable” Checkbox and bind the Variable to the Textblock.
  3. I create a BP Interface “BPINT_Pickups” and add a Output called “Text”.
  4. I create a Actor BP “BP_PickupMain” and place a Sphere with Sphere Collision Box and Widget.
  5. I add the Nodes you showed me to the “BP_PickupMain” BP and add the “BPINT_Pickups” to it.

I cant get it to run at the Time.

Is this right?

regards Daniel

Let’s do it this way. Here is the entire project with some comments and straight to the point. I hope it helps you.

Remember to practice the codes and not just copy them. Something that worked for me was always (at least in the beginning) to write the nodes and codes. This exercise helps to fix it in your head. :slight_smile:

Anything just let me know. :v:

Example.rar (7.8 MB)

@Vinicius_Pires
I write the Nodes not simply Copy it, that was i some cases the Problem then i by some Nodes i cant see or understand from or to which Node or Class it points. :sweat_smile:

Now that i showed your Project i was able to Display the Text correctly.
I think add Stats like Damage or something should be nearly the same if i want to Display this, but i will try this to tighten the learned even if i dont need this :slight_smile:

Next i will try to Animate the Character and the Item Pickup roughly.

Thank you very much for your Time and Tips :smiley:

regards Daniel

1 Like

You got it boss!

Well… you could create a structure and add a variable of that structure in your master item BP, from there you can display anything in the widget like damage, condition, all that good stuff. :slight_smile:

Hit me up if you need something else.

Thank you very much :slight_smile:
If i facing some issues i will come back to this offer :smiley:

When this case is closed before i find new Problems i can find you yet over this Thread :slight_smile:

regards Daniel

1 Like

In case i do not see ya, good afternoon, good evening and goodnight! :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.