Page 1 of 1

Wider StateNodes in Editor window

Posted: 2017/07/08 20:59
by igor
Hi,

In ArborEditorWindow, I want a wider-version of "Rect" for any "node"
Which script to change width, to get more pixels?

Thanks!

Re: Wider StateNodes in Editor window

Posted: 2017/07/08 22:58
by caitsithware
Hi.

The width can't be changed for now.

I will consider the specification that you can change the width by dragging the side of the node.

Re: Wider StateNodes in Editor window

Posted: 2017/07/09 00:25
by IgorAherne
Ok, thanks!

Is there a script I can change, so that I have 300px width of all nodes (permanently)?
Like an editor script or a Drawer (because I have all source code)

Re: Wider StateNodes in Editor window

Posted: 2018/02/23 05:10
by caitsithware
At the moment there is no script which can be easily changed.
Since we are processing so that the width of all nodes is 300px fixed, you need to edit ArborEditorWindow.cs.

The code to change is as follows:
  • Setting of Node.position at node creation location such as CreateState().
  • "position.width = 300;" in OnGraphGUI().
Do you always want to be able to change from script?
I will consider attributes that can specify the width of the node if necessary.
For example:

Code: Select all

static class CustomNodeSettings
{
    [CustomNodeWitdh]
    static float GetNodeWidth(Node node)
    {
        return 600f;
    }
}

Wider StateNodes in Editor window

Posted: 2018/10/05 00:44
by BryanLar
You are right, i have make the modification, normaly its ok now