[QuestPopup] variable not working in List<CustomClass>

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
laurelhach
Posts: 18
Joined: Fri Jan 01, 2021 2:59 pm

[QuestPopup] variable not working in List<CustomClass>

Post by laurelhach »

Hi Tony,

I'm trying to create a

Code: Select all

List<QuestProperties>() 
to access custom information for my quests. Unfortunately, the QuestEntryPopup doesn't seem to work in a custom class as it seems it can't find any quest variable. It is working though if the quest variable is outside of the class (in the main class).

Code: Select all

    [Serializable]
    public class QuestProperties
    {
        [QuestPopup]
        public string quest;

        [QuestEntryPopup]
        public int questEntry;

        [QuestState]
        public QuestState questState;
    }
Any idea on how I could make it work?
User avatar
Tony Li
Posts: 22134
Joined: Thu Jul 18, 2013 1:27 pm

Re: [QuestPopup] variable not working in List<CustomClass>

Post by Tony Li »

I'm afraid that's a limitation of the [QuestPopup] and [QuestEntryPopup] attributes. I'll see what I can do to remove the limitation in a future release.
laurelhach
Posts: 18
Joined: Fri Jan 01, 2021 2:59 pm

Re: [QuestPopup] variable not working in List<CustomClass>

Post by laurelhach »

Thank you! :)
Post Reply