- Home /
Boolen Array to a int
public static bool[] levels = new bool[2];
Id like this to equal to something like this
public static bool[] levels = new bool[myInt];
public static int myInt;
But I believe I need to convert the bool var into a int var to get it to work, just not sure how to do this.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613134927im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
pick a random int with the value of 1 from an array 2 Answers
playerprefs 0 Answers
Change weapons / gameObject / Int with one button / key 1 Answer
Changing a GUI String to read as a INT 2 Answers