Page 1 of 1

Assigning UI prefabs

Posted: Fri Nov 20, 2020 9:22 pm
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.

Re: Assigning UI prefabs

Posted: Fri Nov 20, 2020 10:03 pm
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.

Re: Assigning UI prefabs

Posted: Sat Nov 21, 2020 12:09 am
by dancinggoat23
Good grief, that's right. I'm getting old. Thanks!

Re: Assigning UI prefabs

Posted: Sat Nov 21, 2020 9:08 am
by Tony Li
Glad to help! Maybe one day Unity will support assigning C# interfaces more easily! :-)