Integrating with Brain BuilderΒΆ
Using your own scripts, or scripts downloaded from the Asset Store, inside of Brain Builder could not be simpler. In the User Scripts folder of the palette, you will find all classes specific to your project regardless of their origin or language.
Going back to the project from Custom Blocks, we can disable jumping while on the colored planes by setting the “Jumping Enabled” property of the character by using the following blocks:
- jumping, found in User Scripts/CharacterMotor
- enabled, found in User Scripts/CharacterMotorJumping
And constructing the following two rules:
By dragging the First Person Controller object from the hierarchy directly onto the CharacterMotor variable.
As for your own created scripts, Brain Builder will pick up all public fields, properties and methods from all your classes. Our language presents some limitations regarding varargs methods, but there should be no problems in the majority of cases. An API for creating custom blocks and categorizing methods is on our roadmap.