I’m confused, is B or A a child of the C++ class or not? If not then that code will always fail.
Additionally, there are special UPROPERTY tags you can use to bind to widget components without heving to find them in C++ (GetWidgetFromName is Editor Only and will fail in a package build). I’ve shown how to use them here:
B is the child of A and A is the child of UUserWidget C++ class.
The problem here for me is inheritance.
It seems like it is against the rule of inheritance.
You see, A is the parent of B, but i am able to refer to widgets in B from A and manipulate it in any way i want.
Thank you for your time and reply.
What could be the reason? Is there any other concept related to inheritance?