Mathf.IsPowerOfTwostatic function IsPowerOfTwo (value : int) : booleanDescriptionReturns true if the value is power of two.
JavaScript
// prints false using UnityEngine; import UnityEngine |
|
||||
| Scripting > Runtime Classes > Mathf | ||||
Mathf.IsPowerOfTwostatic function IsPowerOfTwo (value : int) : booleanDescriptionReturns true if the value is power of two.
JavaScript
// prints false using UnityEngine; import UnityEngine |