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?


Solution:Jump to solution
the current lightweights system means that walls/foundations/beams etc use ZERO additional uobjects per building
7 Replies
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.
OK thanks
What is the real benefit of Lightweight?
Does it charge faster?
Does it use less memory?
Less UOjects. A lightweight is just an instanced mesh, instead of an actor with multiple UObjects.
I suggest removing those logs on begin play unless you actively need them for troubleshooting something
Yes, of course, I only need them for debugging.
When I publish the mod, I remove them all.
Solution
the current lightweights system means that walls/foundations/beams etc use ZERO additional uobjects per building
OK thank you