csharp
public readonly record struct BehaviorLayoutOptionsHow far apart a laid-out tree puts things.
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 NodeWidthHow wide a box is, in graph units.
public float RowHeightHow far apart two levels are.
public float GapThe least space between two boxes on one level.
public float AttachmentHeightHow much each attachment row adds to a box.
public static BehaviorLayoutOptions DefaultWhat 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