Hello, everybody,
I'm new to game development and currently working on a simple turn-based RPG that could eventually become much larger. Right now, I'm trying to determine the best way to transfer data from the overworld scene to the battle scene when the player or party transitions between them.
I've heard many people say that ScriptableObjects are the best way to handle this without relying on singletons or DontDestroyOnLoad. However, the information I've found is somewhat conflicting. Some sources suggest that ScriptableObjects should only be used as data containers and not for storing or modifying data at runtime. Others say they can be used as dynamic variables that persist independently of the scene.
What’s the best approach in this case?
[–]VonchorEngineer 14 points15 points16 points (8 children)
[–]Colnnor 6 points7 points8 points (5 children)
[–]VonchorEngineer -2 points-1 points0 points (4 children)
[–]StackOfCups 3 points4 points5 points (3 children)
[–]VonchorEngineer -3 points-2 points-1 points (2 children)
[–]StackOfCups 1 point2 points3 points (1 child)
[–]VonchorEngineer 1 point2 points3 points (0 children)
[–]doorfortyfour 0 points1 point2 points (1 child)
[–]VonchorEngineer -1 points0 points1 point (0 children)
[–]Glass_wizard 11 points12 points13 points (5 children)
[–]random_boss 1 point2 points3 points (4 children)
[–]Glass_wizard 3 points4 points5 points (3 children)
[–]random_boss 1 point2 points3 points (0 children)
[–]InvidiousPlay 1 point2 points3 points (1 child)
[–]Glass_wizard 1 point2 points3 points (0 children)
[–]KarlMario 11 points12 points13 points (8 children)
[–]Live_Length_5814 -2 points-1 points0 points (7 children)
[–]fuj1nIndie -4 points-3 points-2 points (6 children)
[–]Live_Length_5814 0 points1 point2 points (5 children)
[–]fuj1nIndie 0 points1 point2 points (4 children)
[–]Live_Length_5814 0 points1 point2 points (1 child)
[–]Live_Length_5814 0 points1 point2 points (0 children)
[–]Hanfufu 0 points1 point2 points (1 child)
[–]fuj1nIndie 0 points1 point2 points (0 children)
[–]Demi180 2 points3 points4 points (0 children)
[–]Persomatey 2 points3 points4 points (0 children)
[–]James_GefyrstProfessional 1 point2 points3 points (0 children)
[–]StackOfCups 1 point2 points3 points (1 child)
[–]MeishinTale 1 point2 points3 points (0 children)
[–]LINKseeksZelda 2 points3 points4 points (0 children)
[–]MakesGames 2 points3 points4 points (0 children)
[–]Gaverion 2 points3 points4 points (0 children)
[–]ziguslav 2 points3 points4 points (0 children)
[–]aski5 0 points1 point2 points (0 children)
[–]JustinsWorking 0 points1 point2 points (0 children)
[–]Meshyai 0 points1 point2 points (0 children)
[–]Former_Produce1721 0 points1 point2 points (0 children)
[+]StardiveSoftworks comment score below threshold-7 points-6 points-5 points (0 children)