Showing Alert with Header and Body text from code.
Posted: Mon Aug 01, 2022 9:07 am
Hello,
as title said , I'm trying to show alert as in example, when quest started (data for Alert stored in Quest asset) but from code.
ShowAlert method have 3 overloads, I saw that when I'm use method with only string parameter code flow bypassing instatiation of Container Template, which messing with my UI design. I was trying using ShowAlert(string questID, List<QuestContent>) but all data nescesary should be Scriptable Object, tryied to ScriptableObject.CreateInstance<HeadingTextQuestContent>() but it's null.
So there is my question, is there any way to use your already written code to show alert from my own code like Quest does or I have to write my own solution?
as title said , I'm trying to show alert as in example, when quest started (data for Alert stored in Quest asset) but from code.
ShowAlert method have 3 overloads, I saw that when I'm use method with only string parameter code flow bypassing instatiation of Container Template, which messing with my UI design. I was trying using ShowAlert(string questID, List<QuestContent>) but all data nescesary should be Scriptable Object, tryied to ScriptableObject.CreateInstance<HeadingTextQuestContent>() but it's null.
So there is my question, is there any way to use your already written code to show alert from my own code like Quest does or I have to write my own solution?