How to change node width and height?

Announcements, support questions, and discussion for Quest Machine.
Post Reply
ArtPokodo
Posts: 4
Joined: Fri Oct 25, 2019 4:39 am

How to change node width and height?

Post by ArtPokodo »

Is there any opportunity to change node's width and height (number of text lines)? without changing the core code.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to change node width and height?

Post 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.
ArtPokodo
Posts: 4
Joined: Fri Oct 25, 2019 4:39 am

Re: How to change node width and height?

Post 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!
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to change node width and height?

Post by Tony Li »

Thanks. I'll take those ideas into account in the next update.
Post Reply