FGBuildable Wall LightWeight : Multiple initialization?

1/ I correctly create a FGBuildable Wall LightWeight with the Data instance completed. 2/ I place a Log Display in the Construction event and the BeginPlay event. 3/ This Log Display appears 20 times (for both events) when I create the item and when I reload the game. 4/ If I destroy the item, save it, and reload the game, this Log Display still shows the 20 repetitions. 5/ If I don't use LightWeight, I only have one Log Display shown, and it disappears when I destroy the item. Is this normal?
No description
No description
Solution:
the current lightweights system means that walls/foundations/beams etc use ZERO additional uobjects per building
Jump to solution
7 Replies
D4rk
D4rk3d ago
This is normal, the buildable actor is destroyed when its converted to a lightweight instance, and respawned as a temp when the buildgun is used near it. I would not worry about it.
Jean Michel
Jean MichelOP3d ago
OK thanks What is the real benefit of Lightweight? Does it charge faster? Does it use less memory?
D4rk
D4rk3d ago
Less UOjects. A lightweight is just an instanced mesh, instead of an actor with multiple UObjects.
Robb
Robb3d ago
I suggest removing those logs on begin play unless you actively need them for troubleshooting something
Jean Michel
Jean MichelOP3d ago
Yes, of course, I only need them for debugging. When I publish the mod, I remove them all.
Solution
Robb
Robb3d ago
the current lightweights system means that walls/foundations/beams etc use ZERO additional uobjects per building
Jean Michel
Jean MichelOP3d ago
OK thank you

Did you find this page helpful?