For loop will loop infinitely when using a variable for end value
complete
Merlin
The For node will loop until the VM timeout is reached if you give it a variable for the end value. This does not happen when you specify and end value in the node itself. Attached is an Udon asset that just loops a number of times specified by a public variable on Start().
Log In
CubedParadox
complete
Fixed in next sdk
Momo the Monster
CubedParadox: still having this issue with
UDONSDK-2019.12.16.21.47_Public
VRCSDK3-2019.12.14.17.08
Here's a barebones example. I'd expect it to print 0/1/2 to the console, as it does if I put a '3' directly as the end count for the loop.
AM1V3WrbMBh9laBrK0i2LEWBXoymG2VlG3TNzRqCfj5l3lx52HK3kOXJdrFH2itMrpN2bUIJo4UiDBKyPp1zvnPQn1+/V+halS2g8acVcm1ZvlNXcYHOl02Aq/PCL0p4VddqOZzP30A4A78In+fzfvvUhyy9t0AJagsbzytlMuY0wTQlBjNHAGsuKSZqJKjj0go6ij9/q5oiFJVH4xX6gcY440OSoGWcpTRO1wnylYWL00kTASIFIyG55VgSYTGTjmHlnMOU59TmOZc81z9JLItmCXJl9X1zcNaXmXZEmxumrS/C8r3+AiZMe/orVPgmKG/gdILG3c1NqCP9zTZC6+R/jvXaDG/ESQZXjanqstDJYAp1E3kfsSHpRjI4bsvQ1nDkoQ21KpPBh1aXhXkLy4/VV/BHWgiVm5xTmTEgIxl5rmcdpn+adlxFLPOd1t015QD99jSF5Y925RnE3qjWc4gVn1S41WVv+csIrquw+WbrXUFfV/WteBlLtdQuOto4jlkGDI8I5RhS4azJLYDju+JlNN1qlxGyq11yUFL2mRoRnhthQGBrFIuArMYqzUaYAuWZSCXNRYqesBvP4+EXlqrsxSGiu7Y8uQYfcx5UHW7tqbWhOmUaE6litoWxWAvLsBQ2pZbnBNyebFN5Z8/Oqfft+cBwByXgoeEeYr/opD3xi8LDBHS7iO/KWbXYPiK95tvVtIrUtgQPsvsOQf54/g6hFF36HM/JLI6/
Momo the Monster
thanks to CubedParadox for the suggestion to use a while loop as a temporary workaround: