However for some reason, the cast always fails, I have tried activating the event without the cast, however, it doesn’t activate and I am left scratching my head. If anyone has a solution for this, that would be amazing. Sadly, I need some rest, it’s 5am and I have spent five hours trying to fix this issue, to no avail.
not much info here, blueprint looks ok but if I had to guess maybe the Object being passed into the Something method is not a Stats type or does not derive from Stats.
what is the Object you are passing into to the Something method?
it either needs to be of Stats type or has to be based on the Stats type (inherited from Stats).
Yeah but how are you firing this function? Some event should be triggering the Something function and when it does, it needs to pass in some kind of reference.
well that doesn’t answer the question to where are you calling the Somthing function from and what is that (yaboi_Event) event?
is the UMG displaying correctly?
is it added to the viewport?
Well there’s your problem, you are passing in “Self” from within “Plant” so you are passing in a “self” reference “plant type”, you need to get and pass in the “Stats” UMG reference.