Questions tagged [scriptable-object]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
55 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
64 views

ScriptableObjects events execution order?

Given the code: ...
0
votes
0answers
42 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
56 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
69 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
289 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
34 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
301 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
333 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
32 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 ...
0
votes
0answers
22 views

.asset file scriptable object data file is not loading with AssetDatabase.LoadAssetAtPath

I am trying to dynamically assign .assset file into my class variablebut its is not loading anything in the variable: ...