Page 1 of 1

How to change node width and height?

Posted: Sun Nov 03, 2019 6:02 am
by ArtPokodo
Is there any opportunity to change node's width and height (number of text lines)? without changing the core code.

Re: How to change node width and height?

Posted: Sun Nov 03, 2019 8:08 am
by Tony Li
Not currently, but I'm considering it.

The Dialogue System's nodes are intentionally the same size as nodes in the Mecanim Animator window, although there's an option to double or triple their width. Dialogue System conversations usually have a large number of nodes, so the default is to make them small enough that a reasonable amount of nodes can fit on the screen at the same time.

Quest Machine quests usually have fewer nodes, so larger nodes are probably acceptable.

If you have any suggestions or feature requests for node sizes, please let me know.

Re: How to change node width and height?

Posted: Mon Nov 04, 2019 8:56 am
by ArtPokodo
Perhaps, my case is rare...
Case: for quest's names Im using the self-explanatory names including quest number: thus most of the names isn't fit node's width. My suggestions are:
Ideal feature: option in Quest Editor:
"Node Size":
Width: XXX px
Height: YYY px
with checkbox: AutoSize

Minimal Enough:
give API to override "public const float DefaultNodeWidth = 120; DefaultNodeHeight = 48;" from QuestNode.cs

Thank you!

Re: How to change node width and height?

Posted: Mon Nov 04, 2019 12:48 pm
by Tony Li
Thanks. I'll take those ideas into account in the next update.