Mathf.ClosestPowerOfTwostatic function ClosestPowerOfTwo (value : int) : intDescriptionReturns the closest power of two value.
JavaScript
// prints 8 using UnityEngine; import UnityEngine |
|
||||
| Scripting > Runtime Classes > Mathf | ||||
Mathf.ClosestPowerOfTwostatic function ClosestPowerOfTwo (value : int) : intDescriptionReturns the closest power of two value.
JavaScript
// prints 8 using UnityEngine; import UnityEngine |