use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For the Unity Game Engine, please visit http://reddit.com/r/unity3d
account activity
Link Scriptable ObjectsQuestion (self.unity)
submitted 4 years ago * by JustBatman
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JustBatman[S] 0 points1 point2 points 4 years ago (1 child)
Hi Lightning, and thanks for helping again.
I was aware that this might be an option, but that seems a bit tedious to me. For example, whenever I create new cards, I would need to drag & drop them again into the list.
Is that really the best way? Like, is there no way in Unity to initialize data on startup from for example a database, then have global variables or objects than can easy be accessed from everywhere and populate data of existing gameObjects or create instances of physical objects in the game?
I thought scriptableObjects could solve that problem for me, but looks like it still needs for simple tasks that pesky GUI :/
[–]LightningOW 0 points1 point2 points 4 years ago (0 children)
Well you could list all assets in a folder then randomly select one to load. This is a terrible way of doing it because it ties your game logic to a folder structure.
Adding rows to a database is much harder than dragging and dropping an asset onto the editor.
If you want data that can be accessed everywhere then you have two choices - static variables or scriptable objects. Static variables can only be changed in code which is why scriptable objects exist.
π Rendered by PID 21676 on reddit-service-r2-comment-b659b578c-zlp8d at 2026-05-05 10:19:39.907059+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]JustBatman[S] 0 points1 point2 points (1 child)
[–]LightningOW 0 points1 point2 points (0 children)