ドキュメント

Unity Engine

Unity Engine

GetDashPattern(Span<float>)

Copies the current dash pattern into the provided span.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public int GetDashPattern(Span<float> values)

Parameters

The destination span. Must have a length greater than or equal to the current dash pattern length. Pass an empty span to query the required length without copying.

Returns

Type

Description

intThe number of elements in the dash pattern. If
values
is too short to hold the pattern, returns 0 and no data is copied.