Save scene

Is it possible to save the whole scene?
Or do I need to write code to commit each object in the scene?

I don’t follow. Doesn’t blender already save the scenes for you?

I think the implication is during game runtime.

Yes, I would like to save the scene while game runtime.
I tried to save the scene objects separately, but when assembling to android I got an error

Build command failed.
Error while executing process C:\Users\Serge\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {–build D:\ArmoryProject\WaterWorld\build_WaterWorld\android-native-build\WaterWorld\app.externalNativeBuild\cmake\debug\arm64-v8a --target kore}
[1/668] Building CXX object CMakeFiles/kore.dir/52101fbdd4a8416670d96effb9414afd/android-native-build/Sources/src/iron/system/VirtualInput.cpp.o
[2/668] Building CXX object CMakeFiles/kore.dir/D_/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/kha/Assets.cpp.o
[3/668] Building CXX object CMakeFiles/kore.dir/52101fbdd4a8416670d96effb9414afd/android-native-build/Sources/src/iron/system/VirtualButton.cpp.o
[4/668] Building CXX object CMakeFiles/kore.dir/52101fbdd4a8416670d96effb9414afd/android-native-build/Sources/src/iron/object/ParticleSystem.cpp.o
[5/668] Building CXX object CMakeFiles/kore.dir/D_/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/iron/system/Mouse.cpp.o
[6/668] Building CXX object CMakeFiles/kore.dir/D_/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/iron/system/Keyboard.cpp.o
[7/668] Building CXX object CMakeFiles/kore.dir/D_/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/iron/system/Audio.cpp.o
[8/668] Building CXX object CMakeFiles/kore.dir/52101fbdd4a8416670d96effb9414afd/android-native-build/Sources/src/iron/system/GamepadStick.cpp.o
[9/668] Building CXX object CMakeFiles/kore.dir/D_/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/iron/system/Input.cpp.o
[10/668] Building CXX object CMakeFiles/kore.dir/D_/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/kha/AlignedQuad.cpp.o
[11/668] Building CXX object CMakeFiles/kore.dir/D_/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/iron/object/Particle.cpp.o
[12/668] Building CXX object CMakeFiles/kore.dir/52101fbdd4a8416670d96effb9414afd/android-native-build/Sources/src/iron/object/SpeakerObject.cpp.o
[13/668] Building CXX object CMakeFiles/kore.dir/D_/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/iron/object/Tilesheet.cpp.o
[14/668] Building CXX object CMakeFiles/kore.dir/D_/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/iron/system/Pen.cpp.o
In file included from D:\ArmoryProject\WaterWorld\build_WaterWorld\android-native-build\Sources\src\iron\system\VirtualButton.cpp:2:
In file included from D:/Armory/armsdk/Kha/Backends/Kore/khacpp/include\hxcpp.h:352:
D:/Armory/armsdk/Kha/Backends/Kore/khacpp/include/Array.h:351:49: warning: offset of on non-standard-layout type ‘hx::ArrayBase’ [-Winvalid-offsetof]
static inline int baseOffset() { return (int)offsetof(ArrayBase,mBase); }
^ ~~~~~
C:\Users\Serge\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\6.0.2\include\stddef.h:120:24: note: expanded from macro ‘offsetof’
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
In file included from D:\ArmoryProject\WaterWorld\build_WaterWorld\android-native-build\Sources\src\iron\system\VirtualButton.cpp:2:
In file included from D:/Armory/armsdk/Kha/Backends/Kore/khacpp/include\hxcpp.h:352:
D:/Armory/armsdk/Kha/Backends/Kore/khacpp/include/Array.h:352:50: warning: offset of on non-standard-layout type ‘hx::ArrayBase’ [-Winvalid-offsetof]
static inline int allocOffset() { return (int)offsetof(ArrayBase,mAlloc); }
^ ~~~~~~
C:\Users\Serge\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\6.0.2\include\stddef.h:120:24: note: expanded from macro ‘offsetof’
#define offsetof(t, d) __builtin_offsetof(t, d)
^ ~
In file included from D:\ArmoryProject\WaterWorld\build_WaterWorld\android-native-build\Sources\src\iron\system\VirtualButton.cpp:2:
In file included from D:/Armory/armsdk/Kha/Backends/Kore/khacpp/include\hxcpp.h:352:
D:/Armory/armsdk/Kha/Backends/Kore/khacpp/include/Array.h:353:51: warning: offset of on non-standard-layout type ‘hx::ArrayBase’ [-Winvalid-offsetof]
static inline int lengthOffset() { return (int)offsetof(ArrayBase,length); }
^ ~~~~~~
C:\Users\Serge\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\6.0.2\include\stddef.h:120:24: note: expanded from macro ‘offsetof’
#define offsetof(t, d) _builtin_offsetof(t, d)
^ ~
3 warnings generated.
[15/668] Building CXX object CMakeFiles/kore.dir/D
/ArmoryProject/WaterWorld/build_WaterWorld/android-native-build/Sources/src/iron/object/Uniforms.cpp.o
In file included from D:\ArmoryProject\WaterWorld\build_WaterWorld\android-native-build\Sources\src\iron\system\VirtualInput.cpp:2:
In file included from D:/Armory/armsdk/Kha/Backends/Kore/khacpp/include\hxcpp.h:352:
D:/Armory/armsdk/Kha/Backends/Kore/khacpp/include/Array.h:351:49: warning: offset of on non-standard-layout type ‘hx::ArrayBase’ [-Winvalid-offsetof]
static inline int baseOffset() { return (int)offsetof(ArrayBase,mBase); }

I’m not all too familiar with cmake, but this looks like the warning flag is being passed, so all of the harmless warnings become errors. As for how to turn off that flag, I’ll need to do some research.

Is your Armory version fully updated?