# I have public variables, but they arent aviable to set up on other blueprints

**URL:** <https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407>\
**Category:** Blueprint\
**Tags:** variables-communicat, unreal-engine, UE4, Blueprint, question\
**Created:** [May 22, 2019, 3:03pm UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407 "2019-05-22T15:03:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3383c386](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3383c386](https://forums.unrealengine.com/u/anonymous_user_3383c386)\
**Post date:** [May 22, 2019, 3:03pm UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407/1 "2019-05-22T15:03:10Z")

</div>

i have public variables, but they arent aviable to set up on other blueprints even they are casting correctly and compiled but thats happen with all blueprints and all variables from other blueprints

 ![277627-s.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/a/a1a20bdee983b28178d06df107eafd186dfe645a.png)

---

<div class="post-metadata">

**Author:** ![SavvyIndoorsman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SavvyIndoorsman](https://forums.unrealengine.com/u/SavvyIndoorsman)\
**Post date:** [May 22, 2019, 3:19pm UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407/2 "2019-05-22T15:19:50Z")

</div>

It looks like your Blueprints are compiling okay. I don’t see the problem in the screenshots you posted. Can you explain the problem a bit further?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3383c386](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3383c386](https://forums.unrealengine.com/u/anonymous_user_3383c386)\
**Post date:** [May 22, 2019, 3:36pm UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407/3 "2019-05-22T15:36:17Z")

</div>

the blueprint when i cast other blueprint, all public variables from that aren’t available to set up or read as you can see on log.png

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3383c386](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3383c386](https://forums.unrealengine.com/u/anonymous_user_3383c386)\
**Post date:** [May 22, 2019, 3:54pm UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407/4 "2019-05-22T15:54:33Z")

</div>

![277630-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/d/ccdeb90b64b0553c9ff5850e4bdf3cdfb8705f02.png)

---

<div class="post-metadata">

**Author:** ![SavvyIndoorsman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SavvyIndoorsman](https://forums.unrealengine.com/u/SavvyIndoorsman)\
**Post date:** [May 22, 2019, 4:21pm UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407/5 "2019-05-22T16:21:08Z")

</div>

If you are trying to change the _default_ value of a variable, that can only be done from within the blueprint class that ‘owns’ that variable.

Specifically, you can’t change the default value for that `OFFLINE` variable from where you show it being highlighted. If you need to change that variable’s default value, you’ll have to do that in your “Login” class.

Everywhere outside of your “Login” class, you’ll need to use a Set node to change that variable’s value.

Hope that makes sense.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3383c386](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3383c386](https://forums.unrealengine.com/u/anonymous_user_3383c386)\
**Post date:** [May 22, 2019, 4:26pm UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407/6 "2019-05-22T16:26:48Z")

</div>

on this image im trying to read the variable to branch node but even the event on “login” blueprint i set checked it still false

---

<div class="post-metadata">

**Author:** ![SavvyIndoorsman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SavvyIndoorsman](https://forums.unrealengine.com/u/SavvyIndoorsman)\
**Post date:** [May 22, 2019, 4:37pm UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407/7 "2019-05-22T16:37:56Z")

</div>

Maybe things are being executed in a different order than you’re expecting. I suggest trying to troubleshoot using debug print nodes or using the blueprint debug system to figure out what’s going on.

---

<div class="post-metadata">

**Author:** ![StudioDeepLake](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/studiodeeplake/32/482051_2.png) [@StudioDeepLake](https://forums.unrealengine.com/u/StudioDeepLake)\
**Post date:** [May 22, 2019, 9:40pm UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407/8 "2019-05-22T21:40:17Z")

</div>

If it’s returning false, then it isn’t being set to “True”.

You’ll have to show where it’s being set to True, and confirming that the change is taking place. You can print the value after setting it to verify.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4f0dbd17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4f0dbd17](https://forums.unrealengine.com/u/anonymous_user_4f0dbd17)\
**Post date:** [May 23, 2019, 10:49am UTC](https://forums.unrealengine.com/t/i-have-public-variables-but-they-arent-aviable-to-set-up-on-other-blueprints/449407/9 "2019-05-23T10:49:18Z")

</div>

What you can do is a print string where you are changing the value of a variable and then another print string where you want to check the value of the variable and see what comes first, if you don’t know the order of your events that should help  
( if one of the print strings is not showing it’s because you are not calling something correctly )
