I am running the following project:All is good. In Editor I have:
image.png26.08 KBWhen I start the scene, these values are transferred to the code:
10:26:53 Generic [Startup] WorldGenerator.OnLoad begin (radius=15, maxTrees=61, volume=Boxfish.Library.NetworkedVoxelVolume)
BTW: I'm logging w/ this code: image.png49.63 KBI also have this file:
image.png64.92 KBIf I add code, e.g. the selected block => the file is compiled by s&box. However, now something shitty happens. Somehow when the scene starts, cf. first picture, the values from the UI DON'T arrive in the code:
10:34:04 Generic [Startup] WorldGenerator.OnLoad begin (radius=4, maxTrees=16, volume=null)
Other symptom: I modify the logging code, e.g. I add a "9999" in the string:
Log.Info( $"[Startup] WorldGenerator.OnLoad 9999 begin (radius={WorldRadius}, maxTrees={MaxTrees}, volume={Volume})" );
s&box says that it compiles. But at runtime I don't see those 9999. So somehow, the binary code hasn't been updated.
To solve this, the only way is to close/reopen the s&box editor.