Timeline for Structuring a Scriptable Object so that it has a List or an Array of 2 other Scriptable Objects
Current License: CC BY-SA 4.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 7, 2022 at 20:24 | comment | added | kanamekun | Thank you, yes that fixed it! | |
| Jul 7, 2022 at 15:17 | comment | added | PepeOjeda | Oh, It's probably just that the list is not marked as public in that snippet that I posted. | |
| Jul 7, 2022 at 14:13 | comment | added | kanamekun | It's a Visual Scripting issue, so I posted it here: forum.unity.com/threads/… | |
| Jul 7, 2022 at 10:52 | comment | added | kanamekun | I'll post it as a separate question? Then can include screenshots... | |
| Jul 7, 2022 at 10:46 | comment | added | PepeOjeda | Should be about the same. How are you trying to access it, and what problem are you getting? | |
| Jul 7, 2022 at 10:41 | comment | added | kanamekun | I am able to add data to the new SuperNeemData Scriptable Object very easily - it's fantastic! But am having trouble accessing the data... it must work differently from accessing data in a more standard Scriptable Object? | |
| Jul 7, 2022 at 10:19 | vote | accept | kanamekun | ||
| Jul 7, 2022 at 10:19 | comment | added | kanamekun | That is absolute perfection, thank you so so much!! I will be using this pattern a lot in my Scriptable Objects in the years to come!!! | |
| Jul 7, 2022 at 9:29 | comment | added | PepeOjeda | I added an edit with the general shape of how I would implement it. | |
| Jul 7, 2022 at 9:28 | history | edited | PepeOjeda | CC BY-SA 4.0 |
added 404 characters in body
|
| Jul 7, 2022 at 9:22 | comment | added | kanamekun | That sounds amazing! But beyond my abilities... any advice or pointers would be greatly appreciated!! | |
| Jul 7, 2022 at 9:09 | comment | added | PepeOjeda | Ah, well, following that same idea you could have the SuperNeem scriptable object, which contains a List of... let's call it AuxNeem, which is a normal c# class marked as System.Serializable that has the references to both Neem and Feem. If you serialze that list, you now have the SuperNeem SO containing the formed pairs, editable through the inspector. | |
| Jul 7, 2022 at 8:36 | comment | added | kanamekun | Thanks for the detailed answer!! I could create two separate Lists... one for Feems and one for Neems. And then match them up so that the [0] slot on both Lists gets run together through a Super Neem Prefab... hoping there's a less kludgy way though? | |
| Jul 7, 2022 at 8:05 | history | answered | PepeOjeda | CC BY-SA 4.0 |