Questions tagged [scriptable-object]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
113 views

How to design an upgradeable skill system?

In my game skills can be leveled up to modify base stats like reducing cooldown by 20% and increasing fired projectile count by one. How would I architect the system so that each skill has its own ...
user avatar
  • 63
1 vote
1 answer
38 views

How to get data from a Scriptable Object into a Prefab template

I made a Unity Prefab where about 5 things vary. I then made an invisible GameObject where I use Visual Scripting to hardwire the 5 differing items, in order to create the various GameObjects I need. ...
user avatar
  • 163
-1 votes
1 answer
43 views

Adding a color picker to a Scriptable Object

I made a Scriptable Object, and added a bunch of fields to it: string, Vector3, Sprite, etc. So far, so good! I'd like to also add a field with a simple color picker in it, that allows me to set the ...
user avatar
  • 163
1 vote
0 answers
70 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 ...
user avatar
  • 161
0 votes
1 answer
30 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 ...
user avatar
0 votes
1 answer
116 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 ...
user avatar
0 votes
0 answers
526 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 ...
user avatar
  • 121
2 votes
1 answer
1k views

ScriptableObjects events execution order?

Given the code: ...
user avatar
0 votes
0 answers
215 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 ...
user avatar
0 votes
1 answer
141 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: ...
user avatar
0 votes
1 answer
978 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 337
0 votes
0 answers
236 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 ...
user avatar
  • 792
1 vote
1 answer
888 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 ...
user avatar
0 votes
1 answer
344 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 ...
user avatar
  • 3
0 votes
1 answer
47 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 ...
user avatar
  • 169