Vixen
caa30e12
csharp
public readonly record struct BehaviorLayoutOptions

How far apart a laid-out tree puts things.

Read the guide page for this →

Remarks

⚠ The defaults are Default, not the primary constructor's. A record struct's new() is the zero value — the parameter defaults only apply when somebody names the constructor — so a caller that passed nothing and a caller that wrote new() would get a layout with a row height of zero, which stacks the whole tree on one line and reads as the layout being broken rather than as an empty struct.

Fields and properties (5)

  • public float NodeWidth

    How wide a box is, in graph units.

  • public float RowHeight

    How far apart two levels are.

  • public float Gap

    The least space between two boxes on one level.

  • public float AttachmentHeight

    How much each attachment row adds to a box.

  • public static BehaviorLayoutOptions Default

    What a tree is laid out with when nobody has said otherwise.

Methods (1)

  • public BehaviorLayoutOptions(float NodeWidth, float RowHeight, float Gap, float AttachmentHeight)

    How far apart a laid-out tree puts things.

Used by (1)

  • BehaviorTreeLayoutVixen.Editor.Ai