# Can changes be made inside blueprint structures?

**URL:** <https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168>\
**Category:** Blueprint\
**Tags:** Struct, Structure, unreal-engine, Blueprint, question\
**Created:** [July 4, 2023, 1:04pm UTC](https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168 "2023-07-04T13:04:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elaborate\_Bagel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elaborate\_Bagel](https://forums.unrealengine.com/u/Elaborate_Bagel)\
**Post date:** [July 4, 2023, 1:04pm UTC](https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168/1 "2023-07-04T13:04:51Z")

</div>

Is it possible to actually change information inside of a structs?  
Here I am attempting to change the ‘life points’ variable within a struct but in doing so I only seem to be able to change it within a local variable.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/0/9c0418d35c2464ec1453e04ce64ed34dc20d0ee6.png)

As evident by printing the variable in another blueprint where it appears to be retaining its default values initially made in the editor.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/4/2046625019f3304ae532338497a85c897911206a.png)

Any information on this is appreciated, thank you.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 4, 2023, 1:08pm UTC](https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168/2 "2023-07-04T13:08:53Z")

</div>

Yes, you can change values of structs. It’s just data.

> [@Elaborate\_Bagel](#):
>
> As evident by printing the variable in another blueprint where it appears to be retaining its default values initially made in the editor.

Not sure I get the _evidence_. You’re updating one struct but printing another… Each actor instance has its own data. Changing a struct belonging to one actor will not make it propagate to another instance.

> I only seem to be able to change it within a local variable.

Why are you calling it a local variable, it’s not local. We’re in the main graph.

---

<div class="post-metadata">

**Author:** ![Elaborate\_Bagel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elaborate\_Bagel](https://forums.unrealengine.com/u/Elaborate_Bagel)\
**Post date:** [July 4, 2023, 1:17pm UTC](https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168/3 "2023-07-04T13:17:57Z")

</div>

Sorry I musn’t have been clear, or maybe I’m doing something silly, but both variable are the using the same struct. Each screenshot is from a different blueprint. I was intending to change the information in the structure so that the other blueprints could fetch it from the struct too. It seems local in that if I change it in the first bp then it stays consistantly changed there but not elsewhere when I try to get it.  
I only named them different because they are in different bps, they are both using the same struct.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/0/c70c12b5a8026348f73461665d854cd86340052f.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 4, 2023, 1:19pm UTC](https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168/4 "2023-07-04T13:19:28Z")

</div>

> [@Elaborate\_Bagel](#):
>
> but both variable are the using the same struct.

It does not matter. They are different variables. They do not know about one another.

In order to Tick Print the change you made, you’d need to access the instance of the actor that changed its own struct.

* * *

Perhaps think of the struct as of a simple string. If I add 3 actor instances, each with a piece of unique text:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/0/cd00dc5953473c1c67564c9bee323adb13b08236.jpeg)

If I now go to the Game Mode and create another string there, it will be just an empty string unless I punch in some text or grab one of the actosr and get its unique text. Structs are no different - they are collections of basic variables.

Variables are just containers data sits in.

---

<div class="post-metadata">

**Author:** ![Elaborate\_Bagel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elaborate\_Bagel](https://forums.unrealengine.com/u/Elaborate_Bagel)\
**Post date:** [July 4, 2023, 1:29pm UTC](https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168/5 "2023-07-04T13:29:45Z")

</div>

It seems I have incorrectly conceptualised structs, I was thinking of the struct as though it were a definitive place to change information within as opposed to being just a variable

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 4, 2023, 1:30pm UTC](https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168/6 "2023-07-04T13:30:43Z")

</div>

It’s just a fancy variable that is difficult to work with and makes the editor crash more than usual. Indispensable, though.

Were you expecting them to behave like they do in C++? You could declare a struct in a framework class and have other actors access it but BPs copy a lot of data, one needs to mindful of that.

---

<div class="post-metadata">

**Author:** ![Elaborate\_Bagel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elaborate\_Bagel](https://forums.unrealengine.com/u/Elaborate_Bagel)\
**Post date:** [July 4, 2023, 1:37pm UTC](https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168/7 "2023-07-04T13:37:54Z")

</div>

I see I see, thank you for straightening that out for me, and for the warning. I haven’t used C++ before no, but I’m flattered in some sense that the line of thinking would lead to that connection.

Also just to say, I see you all over the forums here whenever I look stuff up and you’re great help, keep up the great work.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 3, 2023, 1:38pm UTC](https://forums.unrealengine.com/t/can-changes-be-made-inside-blueprint-structures/1219168/8 "2023-08-03T13:38:01Z")

</div>

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