I need help quickly please I have a project due by the end of the month.
It would help incredibly helpful to know why “DialogueTrigger” does not show the “name” and “sentences” sections of “Dialogue_77”.
This text conversation describes my error best:
So both your dialogue77 and dialogue trigger are monobehaviors. that means that when you add the first monobehavior(dialogue77) into your dialogue class, the inspector thinks that you want to drag and drop a reference component from somewhere onto the dialogue trigger. It won’t draw the variables of the referenced component without some kind of custom inspector.
Now if you don’t need to have 2 components, then make dialogue77 just a normal class with no inheritance, make sure its serializable, and then declare it inside of dialogue trigger, then it will show up.
[System.Serializable]
public class Dialogue77
{
public string name;
public List<string> elements = new List<string>();
}