Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


asint

Returns the bit pattern of a uint as an int.
Read time 2 minutesLast updated 11 days ago

Definition

asint(uint)

Returns the bit pattern of a uint as an int.
public static int asint(uint x)

Parameters

The uint bits to copy.

Returns

Type

Description

intThe int with the same bit pattern as the input.

asint(uint2)

Returns the bit pattern of a uint2 as an int2.
public static int2 asint(uint2 x)

Parameters

The uint2 bits to copy.

Returns

Type

Description

int2The int2 with the same bit pattern as the input.

asint(uint3)

Returns the bit pattern of a uint3 as an int3.
public static int3 asint(uint3 x)

Parameters

The uint3 bits to copy.

Returns

Type

Description

int3The int3 with the same bit pattern as the input.

asint(uint4)

Returns the bit pattern of a uint4 as an int4.
public static int4 asint(uint4 x)

Parameters

The uint4 bits to copy.

Returns

Type

Description

int4The int4 with the same bit pattern as the input.

asint(float)

Returns the bit pattern of a float as an int.
public static int asint(float x)

Parameters

The float bits to copy.

Returns

Type

Description

intThe int with the same bit pattern as the input.

asint(float2)

Returns the bit pattern of a float2 as an int2.
public static int2 asint(float2 x)

Parameters

The float2 bits to copy.

Returns

Type

Description

int2The int2 with the same bit pattern as the input.

asint(float3)

Returns the bit pattern of a float3 as an int3.
public static int3 asint(float3 x)

Parameters

The float3 bits to copy.

Returns

Type

Description

int3The int3 with the same bit pattern as the input.

asint(float4)

Returns the bit pattern of a float4 as an int4.
public static int4 asint(float4 x)

Parameters

The float4 bits to copy.

Returns

Type

Description

int4The int4 with the same bit pattern as the input.