Documentation

Unity Engine

Download Unity

Unity Engine

GetDashPattern(Span<float>)

Copies the current dash pattern into the provided span.
Read time 1 minuteLast updated a month ago

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.