Questions tagged [scriptable-object]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
58 views

Decouple shared data from consumers

I am a former Unity user, and after a big pause in game dev decided to try out Monogame (I'm a software engineer IRL so I'd figure this is the best way to go). In Unity I was using scriptable objects ...
0
votes
1answer
29 views

Equipped weapon does not appear in JSON data

I'm trying to make an RPG style game with equipment using ScriptableObject, but whenever I equip the item, it does not register in my JSON data. Here is the script ...
0
votes
1answer
46 views

Optimal Way to Create Card Templates in Unity 2D

I have a couple questions involving software architecture and best practices in Unity. Although I have some programming knowledge, I am just starting with Unity and C#, and I would like some input ...
0
votes
0answers
353 views

Loading external file data into Scriptable Object in Unity

I've been at this for two long days, trying to figure out a way to handle saving and loading data for a mobile puzzle game I'm working on. The game has level packs and each level pack has multiple ...
0
votes
1answer
744 views

ScriptableObjects events execution order?

Given the code: ...
0
votes
0answers
165 views

Unity - On Custom Editor Update Event

The following code is a snippet of how I'm auto-updating an object whenever a setting changes in the inspector window (for a scriptable object). It's currently not working, but It will work if I put ...
0
votes
1answer
100 views

Extending a ScriptableObject to have a get property instead of a field, without losing serialized data

I have a ScriptableObject that's already used extensively in my project: ...
0
votes
1answer
524 views

ScriptableObject's custom objects begin reset to default?

I'm using ScriptableObjects as a way to serialize objects that I work with in an editor script. I save them as assets using ...
0
votes
1answer
929 views

Ability system in Unity: Scriptable objects and collections of generic types

I've decided to implement an ability system for my game and set the following requirements: Abilities must be MonoBehaviors, that-is, components of Player/NPC ...
0
votes
0answers
67 views

Alternative to Dictionary serialization

I am working on a set of ScriptableObjects that represent base stats for characters in my game. Think Strength, Speed, Intellect, etc. A whole laundry list of em (about 20 stats). I'd like to later be ...
1
vote
1answer
705 views

Serializing nested ScriptableObjects with runtime changes

I'm making an effort to use ScriptableObjects more in my game architecture, after watching a fantastic Unity Unite talk on the subject. The central idea is to use ScriptableObjects, during runtime, as ...
0
votes
1answer
342 views

Using Part of prefab as script parameter

I'm trying add a weapon to Eithan - the third person character. So I want to take his hand, which is part of the prefab Eithan (the weapon location) and use it in the my Player.cs script to ...
0
votes
1answer
40 views

Replacing UI GameObjects with Scriptable Object script

In my game I'm trying to make a series of mock web pages. To make it easier, I thought I'd make all the webpage UI into Scriptable Objects and have a game manager script determining what content to ...