Mathf.NextPowerOfTwo

매뉴얼로 전환
public static int NextPowerOfTwo (int value);

설명

Returns the next power of two value.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { Debug.Log(Mathf.NextPowerOfTwo(7)); Debug.Log(Mathf.NextPowerOfTwo(139)); } }