Page 1 of 1

Can't connect my namespace to UnityUIQuestDialogueUI

Posted: Thu Nov 30, 2023 10:16 am
by TrueHumanSoul
Hello!
I'm trying to add some methods into AcceptQuest and DeclineQuest in UnityUIQuestDialogueUI to build a connection between my UI system and Quest Machine, but UnityUIQuestDialogueUI doesn't see my namespace. I tried to add my namespace (Scripts.Quests) into UnityUIQuestDialogueUI usings, but there is an error. Also I dont see any asmdef files, so I can't figuire out, what is a problem here.
I have no problem adding "using PixelCrushers.Wrappers" into my sctipts, but It doesn't work backwards.
Can someone help me please?

Re: Can't connect my namespace to UnityUIQuestDialogueUI

Posted: Thu Nov 30, 2023 10:52 am
by Tony Li
Hi,

Don't directly modify UnityUIQuestDialogueUI. UnityUIQuestDialogueUI's methods are virtual, so you can make a subclass in your own scripts folder and override whatever you need to add. You can't access your own code directly in UnityUIQuestDialogueUI because it's in Plugins, and scripts in Plugins can't see anything that's outside of Plugins. (That said, don't move Quest Machine out of Plugins. Make a subclass.)

Re: Can't connect my namespace to UnityUIQuestDialogueUI

Posted: Thu Nov 30, 2023 11:10 am
by TrueHumanSoul
Understood, thanks you for help and fast feedback! =)

Re: Can't connect my namespace to UnityUIQuestDialogueUI

Posted: Thu Nov 30, 2023 11:33 am
by Tony Li
Glad to help! If you have any questions about setting up the subclass, just let me know! :-)