Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

math.asuint

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static uint asuint(int x);

Parameters

Parameter Description
x The int bits to copy.

Returns

uint The uint with the same bit pattern as the input.

Description

Returns the bit pattern of an int as a uint.


Declaration

public static uint2 asuint(int2 x);

Parameters

Parameter Description
x The int2 bits to copy.

Returns

uint2 The uint2 with the same bit pattern as the input.

Description

Returns the bit pattern of an int2 as a uint2.


Declaration

public static uint3 asuint(int3 x);

Parameters

Parameter Description
x The int3 bits to copy.

Returns

uint3 The uint3 with the same bit pattern as the input.

Description

Returns the bit pattern of an int3 as a uint3.


Declaration

public static uint4 asuint(int4 x);

Parameters

Parameter Description
x The int4 bits to copy.

Returns

uint4 The uint4 with the same bit pattern as the input.

Description

Returns the bit pattern of an int4 as a uint4.


Declaration

public static uint asuint(float x);

Parameters

Parameter Description
x The float bits to copy.

Returns

uint The uint with the same bit pattern as the input.

Description

Returns the bit pattern of a float as a uint.


Declaration

public static uint2 asuint(float2 x);

Parameters

Parameter Description
x The float2 bits to copy.

Returns

uint2 The uint2 with the same bit pattern as the input.

Description

Returns the bit pattern of a float2 as a uint2.


Declaration

public static uint3 asuint(float3 x);

Parameters

Parameter Description
x The float3 bits to copy.

Returns

uint3 The uint3 with the same bit pattern as the input.

Description

Returns the bit pattern of a float3 as a uint3.


Declaration

public static uint4 asuint(float4 x);

Parameters

Parameter Description
x The float4 bits to copy.

Returns

uint4 The uint4 with the same bit pattern as the input.

Description

Returns the bit pattern of a float4 as a uint4.