Content-Length: 18475 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Mathf.IsPowerOfTwo.html
Returns true if the value is power of two.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { // prints false Debug.Log(Mathf.IsPowerOfTwo(7));
// prints true Debug.Log(Mathf.IsPowerOfTwo(32)); } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Mathf.IsPowerOfTwo.html
Alternative Proxies: