Page 1 of 1

Using Text Mesh Pro Input Field?

Posted: Fri Nov 20, 2020 4:31 pm
by WeakInteractive
Hello, I've been scratching my head over this for a while and figured I should just ask.

I've been trying to get the Input Field for the "Basic Standard Dialogue UI" working with TMP. Replacing the regular text/ input field components with TMP equivalents doesn't work for me. Either the Caret flips out, or the text field doesn't scale properly, or some combination of various other issues that are too numerous to list.

Is there an example I can copy from somewhere, or is there something simple I'm missing?

Also, completely unrelated question, but I was wondering if there was any way to organize variables in the latest version as shown here: https://www.pixelcrushers.com/dialogue_ ... ables.html

Thank you!

Re: Using Text Mesh Pro Input Field?

Posted: Fri Nov 20, 2020 5:10 pm
by Tony Li
Hi,
WeakInteractive wrote: Fri Nov 20, 2020 4:31 pmI've been trying to get the Input Field for the "Basic Standard Dialogue UI" working with TMP. Replacing the regular text/ input field components with TMP equivalents doesn't work for me. Either the Caret flips out, or the text field doesn't scale properly, or some combination of various other issues that are too numerous to list.
Try importing the latest preview version of TextMesh Pro from the Package Manager window. Older versions of TextMesh Pro's Input Field had lots of issues.
WeakInteractive wrote: Fri Nov 20, 2020 4:31 pmAlso, completely unrelated question, but I was wondering if there was any way to organize variables in the latest version as shown here: https://www.pixelcrushers.com/dialogue_ ... ables.html
That's a screenshot from the old version 1.x. The Variables section no longer uses those foldouts, as it was terribly unwieldy. Variables are now in a reorderable list. However, if you variable names have the form "group.name1", "group.name2", etc., you can select Menu > Use Group Foldouts, and it will put the variables in foldouts by group.

There's also now a separate Variable Viewer window that's handy to have open while the Dialogue Editor is viewing a different section, or if you want a quick view of the runtime values of variables during play.

Re: Using Text Mesh Pro Input Field?

Posted: Sat Nov 21, 2020 12:14 am
by WeakInteractive
Hey, thanks for the response!

Unfortunately, I'm already using the latest version of TMP, I think I'm just going to use a workaround, as I can't figure out how to make the automatic layouts work.

As for the variable grouping, that's exactly what I was looking for! Grouping them like that is extremely convenient and I'm glad it's a feature. Not sure if it's in the documentation, but I couldn't find it.

Thanks for the help!

Re: Using Text Mesh Pro Input Field?

Posted: Sat Nov 21, 2020 9:26 am
by Tony Li
I think that info is tucked away in an obscure corner of the manual. I'll add a section to make it easier to find.