You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+[Submitting your own actions, conditions, ect](#making-commits)
@@ -675,6 +676,25 @@ public static class BehaviorTreeBuilderExtensions {
675
676
}
676
677
```
677
678
679
+
## Formatting Issues
680
+
681
+
If you are using an auto formatter it will probably mangle your code formatting with the builder syntax. To avoid this you can turn off formatting like so in JetBrains Rider. If you need a specific IDE, it shouldn't be too hard to google the specific formatting disable comment you need.
682
+
683
+
```c#
684
+
// @formatter:off
685
+
_tree=newBehaviorTreeBuilder(gameObject)
686
+
.Sequence()
687
+
.Condition("Custom Condition", () => {
688
+
returntrue;
689
+
})
690
+
.Do("Custom Action", () => {
691
+
returnTaskStatus.Success;
692
+
})
693
+
.End()
694
+
.Build();
695
+
// @formatter:on
696
+
```
697
+
678
698
## Nightly Builds
679
699
680
700
To access nightly builds of `develop` that are package manager friendly you'll need to manually edit your `Packages/manifest.json` as so.
0 commit comments