public bool SetPoints (List<Vector2> points);

Parámetros

pointsA list of Vector2 used to set the points. This list must contain at least two points.

Valor de retorno

bool Returns true if the list contains two or more points and the points are correctly set. Returns false otherwise.

Descripción

Sets all the points that define a set of continuous edges.

If the provided points list contains less than two points then false is returned indicating the points were not set. Any points that are not valid such as them being NaN or Infinite are set to Vector2.zero.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961