firstindextrue - eisclimber/ExPresS-XR GitHub Wiki

QuizUtility.FirstIndexTrue(bool[])

Method in QuizUtility

Summary

Extracts the first index where an entry is true. Returns -1 if none is true.

public static int FirstIndexTrue(bool[] pressedStates);

Parameters

Name Description
bool[] pressedStates Array of booleans

Returns

Index of first true

⚠️ **GitHub.com Fallback** ⚠️