While working on my inventory system i stumbled across an odd issue.
This works perfectly:


However the following gives out errors after playing in the editor (Accessed none errors pointing to an empty construction script):

This also does not work, and the cast fails:


It's not an issue since i've figured out how to make it work, I'm just wondering if somebody could explain why this happens? It compiles just fine.
Does the UMG widget have the player character as an owner, and therefore has to use the reference created inside of the player blueprint?
This works perfectly:
However the following gives out errors after playing in the editor (Accessed none errors pointing to an empty construction script):
This also does not work, and the cast fails:
It's not an issue since i've figured out how to make it work, I'm just wondering if somebody could explain why this happens? It compiles just fine.
Does the UMG widget have the player character as an owner, and therefore has to use the reference created inside of the player blueprint?
Comment