Assigning UI prefabs

Announcements, support questions, and discussion for Quest Machine.
Post Reply
dancinggoat23
Posts: 29
Joined: Mon Mar 02, 2020 1:44 pm

Assigning UI prefabs

Post by dancinggoat23 »

Hello

My apologies if this has been answered before, but I couldn't find the info.

I've discovered that I can't assign the UI prefabs to either the Quest Machine or to the player's Quest Journal, as they are implemented with the wrappers. These do not appear to implement the needed interfaces, so the inspector won't allow me to assign them in the editor. Am I doing something wrong? I don't remember having this problem before.
User avatar
Tony Li
Posts: 22101
Joined: Thu Jul 18, 2013 1:27 pm

Re: Assigning UI prefabs

Post by Tony Li »

Hi,

In this case, it's not the wrappers. It's because those fields use C# interfaces (should you be inclined to care about that technical detail).

To assign it, please drag the component heading itself into the field. See page 46 of the manual for a screenshot.
dancinggoat23
Posts: 29
Joined: Mon Mar 02, 2020 1:44 pm

Re: Assigning UI prefabs

Post by dancinggoat23 »

Good grief, that's right. I'm getting old. Thanks!
User avatar
Tony Li
Posts: 22101
Joined: Thu Jul 18, 2013 1:27 pm

Re: Assigning UI prefabs

Post by Tony Li »

Glad to help! Maybe one day Unity will support assigning C# interfaces more easily! :-)
Post Reply