Versions with this page:
Versions without this page:
Devuelve el siguiente valor que sea potencia de dos.
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Example() { Debug.Log(Mathf.NextPowerOfTwo(7)); Debug.Log(Mathf.NextPowerOfTwo(139)); } }