Mathf.ClosestPowerOfTwo Manual     Reference     Scripting  
Scripting > Runtime Classes > Mathf
Mathf.ClosestPowerOfTwo

static function ClosestPowerOfTwo (value : int) : int

Description

Returns the closest power of two value.

eg. 7 returns 8 or 19 returns 16