I’m trying to make an in-game clock with its own time-passing speed, ability to fast forward, etc. and all animations and day/night cycles and the like would adhere to it. Since this is a one-off system, I decided to make it a static function library.
I want to be able to grab its properties (ex. current time) and display it on the HUD. However, nothing shows up when I attempt to search for my supposedly exposed variables. How should this be properly written?
class UGClock : public UObject
static void Setup();
static void FastForward();
static float CurrentTime;
Static functions work, lack of static properties support is lack of UE4, but C++ is fully functional, so you can make get and set functions for those static variables. Also note as static properties don’t in reflection system, garbage collection won’t work on, so you need to watch out what you do with them