Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Fill

Fills the currently defined path.
Read time 1 minuteLast updated 13 days ago

Definition

Fill(FillRule)

Fills the currently defined path.
public void Fill(FillRule fillRule = FillRule.NonZero)

Parameters

fillRule

The fill rule (non-zero or odd-even) to use. Default is non-zero.

Fill(FillRule, int)

Fills the currently defined path and tags every resulting DrawData with the given user identifier, surfaced on
DrawData.userData
in mesh modifiers.
public void Fill(FillRule fillRule, int userData)

Parameters

fillRule

The fill rule (non-zero or odd-even) to use.

userData

User-defined identifier propagated to every DrawData produced by this fill.