Version: Unity 6.3 LTS (6000.3)
LanguageEnglish
  • C#

Painter2D.GetDashPattern

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public int GetDashPattern(Span<float> values);

Parameters

Parameter Description
values 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

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

Description

Copies the current dash pattern into the provided span.