Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CompareTo(GraphicsBufferHandle)

Compares this GraphicsBufferHandle with another to determine their relative positions in the sort order, according to their integer values.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int CompareTo(GraphicsBufferHandle other)

Parameters

The other
GraphicsBufferHandle
to compare with this instance.

Returns

Type

Description

intAn integer that represents the relative sort order positions of the current instance and the other
GraphicsBufferHandle
. Returns a negative integer if this instance precedes
other
. Returns a positive integer if this instance follows
other
. Returns zero if this instance and
other
have the same position in the sort order.