Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetDashPattern(Span<float>)

Copies the current dash pattern into the provided span.
Read time 1 minuteLast updated 6 days 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.