기술 자료

Unity Engine

Unity Engine

IsPowerOfTwo(int)

Returns true if a positive value is a non-zero power of two.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public static bool IsPowerOfTwo(int value)

Parameters

value

A positive value.

Returns

Type

Description

boolTrue if the value is a non-zero, positive power of two.

Remarks

Result is invalid if
value < 0
.