MaterialRef
public sealed class MaterialRefNamespace MapExpansions
A material taken from a renderer of one of the worlds, matched by name.
Properties
Section titled “Properties”public WorldSide Side { get; set; }Type: WorldSide
Renderer
Section titled “Renderer”public string Renderer { get; set; }Renderer name, compared case-insensitively from the start.
Parent
Section titled “Parent”public string Parent { get; set; }When set, some ancestor’s name starts with this.
public int Slot { get; set; }Material slot of the renderer.
Fallback
Section titled “Fallback”public Color Fallback { get; set; }Colour of the plain material used when the renderer is not found.
Tiling
Section titled “Tiling”public float Tiling { get; set; }Metres of surface one texture repeat covers along and across the road.
Methods
Section titled “Methods”public static MaterialRef From( WorldSide side, string renderer, string parent = null, int slot = 0)Types: WorldSide
public MaterialRef Tiled(float metres)public MaterialRef Or(Color fallback)ToString
Section titled “ToString”public override string ToString()