Interface RaycastResultItem Beta

A read-only type describing the result of a raycast.

Hierarchy

  • RaycastResult

Properties

Properties

handle: null | ItemHandle | PlayerHandle

Returns a handle that describes the object hit, or null.

If the object hit is an item, returns ItemHandle.
If the object hit is a player, returns PlayerHandle.
If the object hit is not an item or a player, returns null.

Refer Handles in the top page of Script Reference to know how to handle this value.

hit: Hit

Describes a hit.

object: HitObject

Describes the object hit.

Deprecated

RaycastResult.object is deprecated. Please use RaycastResult.handle instead.

Generated using TypeDoc