編輯

共用方式為


RaycastResultComparer Class

Definition

Compares the Raycast Results from Unity's Graphic & Physics Raycasters.

public ref class RaycastResultComparer : System::Collections::Generic::IComparer<Microsoft::MixedReality::Toolkit::Physics::ComparableRaycastResult>
public class RaycastResultComparer : System.Collections.Generic.IComparer<Microsoft.MixedReality.Toolkit.Physics.ComparableRaycastResult>
type RaycastResultComparer = class
    interface IComparer<ComparableRaycastResult>
Public Class RaycastResultComparer
Implements IComparer(Of ComparableRaycastResult)
Inheritance
RaycastResultComparer
Implements

Constructors

RaycastResultComparer()

Properties

Comparers

Methods

Compare(ComparableRaycastResult, ComparableRaycastResult)
CompareRaycastsByCanvasDepth(ComparableRaycastResult, ComparableRaycastResult)
CompareRaycastsByDistance(ComparableRaycastResult, ComparableRaycastResult)
CompareRaycastsByLayerMaskPrioritization(ComparableRaycastResult, ComparableRaycastResult)
CompareRaycastsBySortingLayer(ComparableRaycastResult, ComparableRaycastResult)
CompareRaycastsBySortingOrder(ComparableRaycastResult, ComparableRaycastResult)

Extension Methods

GetReversed<TElement>(IComparer<TElement>)

Gets a comparer that sorts elements in the opposite order of the original comparer.

Applies to