←back to thread

83 points danieltanfh95 | 1 comments | | HN request time: 0.42s | source
Show context
BoorishBears ◴[] No.44372233[source]
It's been a long minute since my Unity days, but I'm pretty sure what OP wanted was ScriptableObjects with a custom Inspector

If you setup asset serialization to use text, the ScriptableObjects map to semi-editable YAML files (semi- editable because there are some internal members that show up, but nothing an LLM couldn't handle)

replies(3): >>44372334 #>>44372700 #>>44373266 #
1. npinsker ◴[] No.44372700[source]
The downside of that is that cards often have to hook into custom functions that interface with the engine (unless they're sufficiently boring). You can still go with ScriptableObjects if you're willing to e.g. write those functions in Lua and have an interpreter layer, but for all but the largest projects, making each card its own class works well.