C# Класс UnityEngine.EventSystems.RaycastResult

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
depth int
distance float
index float
module BaseRaycaster
screenPosition Vector2
sortingLayer int
sortingOrder int
worldNormal Vector3
worldPosition Vector3

Открытые методы

Метод Описание
Clear ( ) : void

Reset the result.

ToString ( ) : string

Описание методов

Clear() публичный Метод

Reset the result.

public Clear ( ) : void
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

depth публичное свойство

The relative depth of the element.

public int depth
Результат int

distance публичное свойство

Distance to the hit.

public float distance
Результат float

index публичное свойство

Hit index.

public float index
Результат float

module публичное свойство

BaseInputModule that raised the hit.

public BaseRaycaster,UnityEngine.EventSystems module
Результат BaseRaycaster

screenPosition публичное свойство

The screen position from which the raycast was generated.

public Vector2 screenPosition
Результат Vector2

sortingLayer публичное свойство

The SortingLayer of the hit object.

public int sortingLayer
Результат int

sortingOrder публичное свойство

The SortingOrder for the hit object.

public int sortingOrder
Результат int

worldNormal публичное свойство

The normal at the hit location of the raycast.

public Vector3 worldNormal
Результат Vector3

worldPosition публичное свойство

The world position of the where the raycast has hit.

public Vector3 worldPosition
Результат Vector3