Variable is not blueprint accessable, please fix markup or cease accessing this....

UE5.1 Trying to create private local variables in function and trying to save a value in them to extract at output


How do I fix this?

Hey

Make sure you’re not limiting the variable’s accessibility in the blueprint
image

If it’s a variable created in CPP you have to especify it’s limits in blueprint

UPROPERTY(BlueprintReadWrite) int Upgrade Sum; 

Hey, this is a local variable inside a function. I don’t have the listed properties for it

Not sure why Unreal’s gotta make problems out of thin air

Is it possible that you have another variable with the same name that is not a Local variable?

3 Likes

Nope. This is the only variable of this type.

Oh no I think I forgot to state that this is UE5.1 and any local variable I try to connect to output pin gives me this error, not just this one.

Is your project somethnig you started in UE4 or a previous version of UE5? That can cause some warnings/errors like this.

If not, please give more info about in what kind of blueprint the varaible is, if it’s a child BP, if it was made from a CPP class or any other info that can help understand the error.

I’m using the MMO Kit in UE5.1. Regardless of what blueprint I use, i am unable to connect any local variable of a function to its output. Its some kind of “feature” theyve implemented as the warning clearly states that it will be thrown as an error “in the future”. I guess the future is UE5.1

Sorry, I haven’t used MMO Kit. If the issue is related to that I can’t help you

Nope, not a problem with the kit itself, although it could have been updated from an older version of unreal

I just ran into this issue myself on UE4.27.

Turns out the issue is having a variable of the same name as the return variable in the Return Node.

I.e. you have an int variable called “Upgrade Sum” and you’re also returning “Upgrade Sum” as a return variable.

Changing the name of either should fix the issue.

9 Likes