Questions tagged [scriptable-object]
The scriptable-object tag has no summary.
31 questions
0
votes
1
answer
82
views
Scriptable object lists influencing each other?
I have 2 scriptable object inventories; one acts as the starting inventory and the other acts as the current one. I add objects to the current inventory but I set it's values to the starting inventory ...
0
votes
0
answers
53
views
Unity Editor Api for scriptable object apply on Edit Mode
So i want to design an editor which has the following requirements.
Suppose i already have a prefab called Player.prefab and script attached as Player.cs
And have a scriptable object called ...
3
votes
0
answers
240
views
How can I set the asset icon of a ScriptableObject depending on its properties?
I want to set an icon for scriptable-object according to it's properties.
I succeeded, but the end result was not what I wanted.
I used RenderStaticPreview in it's ...
0
votes
0
answers
83
views
Creating ScriptableObject through script
I need to create a ScriptableObject through script, So I used AssetDatabase.CreateAsset but it creates inside project folders only.
So is there a way to create the ...
3
votes
0
answers
445
views
How to find references to a Scriptable Object in all scenes
I'm going through the code of an open-source Unity project that uses Scriptable Objects as event channels. Currently, when I see a script raise an event (broadcast) through a SO channel, I have no way ...
1
vote
0
answers
1k
views
Is it bad practice to invoke Unity event(s) in Update method?
I've delved into scriptable objects in a small hobby project of mine and have to say I very much like them. I'm interested in how they can work with the built-in Unity Events to handle a lot of the ...
0
votes
0
answers
120
views
Initializing prefabs with different scripts
I am creating a tower defense game.
Currently I have 2 different tower types 'Shooting tower', amd 'Unit tower'.
I have a Scriptable object to initialize the tower. It contains some tower properties ...
0
votes
1
answer
321
views
How to replicate TextMesh Pro Gradient ScriptableObject Interface?
I'm creating a scriptable object to store the color scheme for each level in my Brick Breaker game. There are a lot of options for how to input colors, but the way that TextMesh Pro does it for their ...
0
votes
1
answer
1k
views
How to create instance of child scriptable object base on string?
I am working on an Unity3D project and I have a base scriptable object and several child classes that inherit from this parent class.
...
0
votes
1
answer
111
views
Best way to dynamically enumerate a list of types, and then route tasks based on those types?
I am programming a Jobs Queue in Unity, so that I can send Tasks/Jobs to a central queue where the tasks will be processed.
First, I defined 3 possible job types inside of a Scriptable Object.
...
0
votes
1
answer
1k
views
How to use a Custom Class as a Dictionary Key in Unity, where one of the objects in the class is a List
I have a ScriptableObject that holds the data that I will put into a Dictionary:
...
2
votes
6
answers
350
views
Modelling Two Way Relationship in Unity for Scriptable Objects
How does one model two-way relationships for scriptable objects?
Let's say we have a number of items in-game, and each item can be obtained by different conditions. Some may require you to complete a ...
0
votes
0
answers
178
views
Viewing Wrapper/Container Classes from a Scriptable Object inside of the Unity Inspector
I'm making a word game to teach kids how to read and promote literacy. As part of that, I made a Scriptable Object that's basically a bunch of nested Lists, until it reaches the bottom node:
...
2
votes
2
answers
7k
views
Structuring a Scriptable Object so that it has a List or an Array of 2 other Scriptable Objects
I created three Scriptable Objects for my Unity word game:
FeemData - This is to hold information on letters
NeemData - This is to hold information on pronunciation
SuperNeemData - This is to hold #1 ...
1
vote
1
answer
769
views
Putting a List of Scriptable Objects inside of another Scriptable Object
I'm making a word game in Unity.
I've made two Scriptable Objects. The first one is for FeemData.
...