1. Home
  2. Docs
  3. Advanced Topics
  4. How to use material tilling

How to use material tilling

The Material Tiling structure is used through Graph and Chart. It allows you to fine tune the way a material tiled along a line. This proved useful for dashed lines and pattern lines. In this article we will cover the features of material tiling.

If you check the Stretch check box , the material will be stretched along the axis or chart line. This can be good for gradient lines , and will make the line color change along line.

If Stretch is not checked , the texture is tiled along the axis and chart line. It is important to set the texture wrap mode to repeat when using this option (texture that come with Graph and Chart already have this set) :

When tiling a texture , it is important to specify a tiling factor. The tiling factor is the distance span on which the texture is tiled. For canvas charts , It can be the pixel size of the texture used.

A good way to find the right tile factor by tweaking it’s value and viewing the editor preview of the chart. When the texture looks like it fit well on the axis line , you’ll know you have a good tiling factor.