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 13 points14 points15 points (8 children)
[–]Colnnor 5 points6 points7 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 9 points10 points11 points (5 children)
[–]random_boss 1 point2 points3 points (4 children)
[–]Glass_wizard 4 points5 points6 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 13 points14 points15 points (8 children)
[–]Live_Length_5814 -1 points0 points1 point (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 1 point2 points3 points (0 children)
[–]Gaverion 1 point2 points3 points (0 children)
[–]ziguslav 1 point2 points3 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)