文档

Unity Engine

Unity Engine

PickRectObjects(Rect)

Pick GameObjects that lie within a specified screen rectangle.
阅读时间1 分钟最后更新于 2 天前

Definition

public static GameObject[] PickRectObjects(Rect rect)

Parameters

rect

A screen rectangle specified with pixel coordinates.

Returns

Type

Description

GameObject[]

Remarks

This is useful for implementing multi-select tools that allow the user to drag a rectangle around the desired objects.