I’m really sorry to bothering you. But if you don’t mind can we please continue discussing? I don’t understand a several things:
- I used
GetDefaultObject
because I saw a lot of time that usingTSubclassOf
is more safety and help in editor to choose correct object. BUT when I use this I can’t access to the methods and variables of desired class. Because of this I started usingGetDefaultObject
everywhere to access members which I need. What is an alternative way to do it? - Also you says that it is engine object and it just stores the default values BUT I used it a lot of time and didn’t get any errors till yesterday. Also when I used it in other places I correctly got the need objects which I define from Editor so I don’t understand how does it work?
- I still can’t understand why I can access the widget inside
Scoreboard
inBeginPlay
but can’t get access to widget insideScoreboard
inSetScore
? In which moment I loose the widgets which is defined insideScoreboard
?
Sorry if they are stupid questions but I can’t understand the core concepts