Skip to content

TileNumbersAttribute

namespace Griff.Scenes;
public sealed class TileNumbersAttribute : FieldEditorAttribute

Marks a property as tiles of a tilemap’s tilesets, by number: a string of numbers and ranges (“10-15, 20”, see ParseTileSet), or a whole number for one tile. The Inspector shows the tilesets’ tiles to click, each picked one marked. The tilemap is the component itself, or the one on its entity.

public override string FitsText { get; }
public override string Describe()
public override bool Fits(Type type)
public override string? Problem(Component component, object? value)
public static IReadOnlyList<int> Read(string? text)

The tile numbers a string holds, in order, ranges filled in.