Home Game Development Viewing Wrapper/Container Courses from a Scriptable Object within the Unity Inspector

Viewing Wrapper/Container Courses from a Scriptable Object within the Unity Inspector

0
Viewing Wrapper/Container Courses from a Scriptable Object within the Unity Inspector

[ad_1]

I am making a phrase sport to show children learn how to learn and promote literacy. As a part of that, I made a Scriptable Object that is principally a bunch of nested Lists, till it reaches the underside node:

utilizing System.Collections.Generic;
utilizing UnityEngine;
utilizing Unity.VisualScripting;
 
[CreateAssetMenu(fileName = "New WordPronunciationData", menuName = "Word Pronunciation Data", order = 51)]
 
public class WordPronunciationData : ScriptableObject
{
 
    [System.Serializable]
 
    [IncludeInSettings(true)]
        public class NeemUnitContainer {
        public Checklist<NeemUnit> NeemUnitContainers;
}
 
    [System.Serializable]
 
    [IncludeInSettings(true)]
        public class Syllable {
        public Checklist<NeemUnitContainer> Syllables;
}
 
    [System.Serializable]
 
    [IncludeInSettings(true)]
    public class NeemUnit {
        [SerializeField]
        public Checklist<FlexNeem> individualNeem;
         
    }
 
    [System.Serializable]
 
    [IncludeInSettings(true)]
    public class FlexNeem{
        [SerializeField]
        public NeemData superNeem;
     
        [SerializeField]
        public FeemData Feem;
 
    }
 
    [System.Serializable]
 
    [IncludeInSettings(true)]
    public class CompleteWordList{        
            public Checklist<Syllable> completeWord;
    }
    public Checklist<CompleteWordList> allWords;
 
}

It is working nice, and I can view and edit information within the Scriptable Objects completely.

enter image description here

However when I attempt to pull information from the Scriptable Object into Scene variables… I am unable to see them within the graph’s Inspector.

enter image description here

Nonetheless for the underside node in my Scriptable Object… I outlined the category as calling 2 different Scriptable Objects:

    [System.Serializable]
 
    [IncludeInSettings(true)]
    public class FlexNeem{
        [SerializeField]
        public NeemData superNeem;
     
        [SerializeField]
        public FeemData Feem;
 
    }

And after I create a variable and put information from these into them, they do present up very properly within the Inspector.

enter image description here

However in some way after I make a container/wrapper class round this to make a Checklist, after which put that information right into a variable… it now not exhibits up in a Inspector containing that variable.

enter image description here

That is making debugging a lot more durable. I can solely see what number of objects are within the listing, not what the merchandise is.

Is that this simply the character of making so many wrapper/container lessons with lists? Is there a method I might view the wrapper/container lessons within the Inspector, fairly than simply seeing “No Inspector For…”?

If anybody has ideas or recommendation, I’d significantly recognize it! Thanks!!

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here