Is blueprint using references or pointers?

Hi ,
When dealing with blueprints variables am i dealing with pointers or references? I know this might be obvious since when defining a variable it says “reference object” but i feel like its acting like a pointer more than a “reference” ( i havent seen anyone talks about this )

Thanks for your time.

References, Pointers could crash on Null I believe?
simple data like Int are copies unless otherwise specified

Variables in Blueprint are wrapped in an FProperty, which stores a pointer to your variable.
So to be honest - ALL variables are pointers, and “references” are a pointer to a pointer.

Epic’s choice of “references” as a name is likely due to the fact that many programming languages ​​don’t have such a thing as a “pointer”, and this would create an additional step necessary for understanding.

1 Like

But a reference cannot be null in principle, but a pointer can. :smirk:

1 Like

In blueprint when you try to access a function in a null variable it shows an error
Also refrences cant be null but in blueprints you could make it null when you define a variable and leave it without assigning,

Its weird for me at least

1 Like

Error is much better than a crash ha!
but i’d agree with both of you.

1 Like