0 corresponds to the module completely bent while 100 corresponds to the module completely straight.
What ports can I use it on?
1,2,7,8
Code
var amountOfBend =Magic.modules.flex.bend;
usingMagic;publicclassDemo:MonoBehaviour{ // create a reference to the modulepublicMagic.Modules.FlexModule flex;voidStart() { }voidUpdate() { // access the property of the moduleint amountOfBend =flex.bend; }}