
unity game engine - Is this how you'd use a scriptableobject?
May 24, 2022 · Is this how you'd use a scriptableobject? Asked 3 years, 7 months ago Modified 3 years, 6 months ago Viewed 1k times
Create Scriptable Object with constant, Unique ID
Nov 21, 2019 · Here is my take on it : Create a custom attribute "ScriptableObjectIdAttribute", you can use it in front of whatever you need to be an id. Make a custom property drawer in order to …
Creating a Scriptable Object in the Unity Editor - Stack Overflow
May 28, 2018 · The problem is: i don't have the ScriptableObject button. I have a script that is a scriptable object (to make sure i even copied the one from the project of the university). I …
unity Scriptable object not working in bulid - Stack Overflow
May 23, 2020 · 6 While changes in ScriptableObject within the UnityEditor are persistent, they are not persistent in a build! When you use the Editor, you can save data to ScriptableObjects …
Unity ScriptableObjects - Read-only fields - Stack Overflow
May 12, 2022 · Say I have a ScriptableObject Item: public class Item : ScriptableObject { public new string name; public string description; public Sprite sprite; } The only issue is that the fields ...
c# - Instantiating ScriptableObjects - Stack Overflow
Aug 14, 2019 · Quote from professional, any thoughts?: SO are simply a class made for data that have handy implications within Unity's serialization. If you are creating a run-time instance of …
Keeping a specific classes in ScriptableObject - Stack Overflow
Feb 3, 2021 · I can refuse the idea with inherited object classes, but in this case, you lost the specificity of the created game item. In that case, how do I organize the base item classes so …
C#/Unity - Unable to save scriptable object to disk
Jul 29, 2021 · An alternative to EditorUtility.SetDirty is to call Undo.RecordObject(scriptableObject) prior to modifying the ScriptableObject; this method also …
Showing ScriptableObjects in dropdown menu and select between …
Jun 16, 2019 · ScriptableObject Dropdown: ScriptableObjectDropdown is an attribute for the Unity Inspector. It is used for showing ScriptableObjects which are created in your project, in …
c# - UnityEvent inside Scriptable Objects - Stack Overflow
May 2, 2024 · public class GameEventSO : ScriptableObject { [SerializeField] UnityEvent unityEvent; GameOver event (GameEventSO) Now, oviously im missing something about how …