Im trying to create a Weather system.
At Start, my first implementation is the Time of Day Calcs.
Some complicated calcs I want to use C++ another ones I want Use blue Print.
Basicaly as Web Programer (PHP), I know the concepts of MVC, and i want separete the visual things (in blueprint) from Control things (C++).
In resume, i want to create a Class with a Directional Light fully customizable, and add another components to this.
In my tests, im Using AActor as Parent Class, but i found some issues.
Eg.:
- No mather what component I add, the arrows/move this are gone. The “BP” stays at 0,0,0 and i cant change nothing (transforms controls are gone).
- When i attach a AtmosphericFog component, sometimes when I compile my BP, the editor crashes, when not, the “effect” just gone.
- I added some variables (SunAngle pitch, SunDirection yaw, SunInclination Roll). In Play are fine, but in preview on editor everything stays at 0,0,0. (again transforms are gone).
Basically what I want is a class that natively behave as if I had dropped one DirectionalLight the editor.
Perhaps, a better class to implement this than AActor.
I’ve tried Directly extend a ADirectionalLight but I missed some features such as the ability to implement a Tick function, and leftover waste properties (components), to create a BluePrint.