Skip to content

PrefabCountsAttribute

namespace Griff.Scenes;
public sealed class PrefabCountsAttribute : FieldEditorAttribute

Marks a list of strings as prefabs and how many of each, a line each: “Enemy 4”, “Potion 1-2” (a number picked between them) or “Gold” (one). The Inspector lists them a row each, the prefab picked from the project’s and how many set.

public override string FitsText { get; }
public override string Describe()
public override bool Fits(Type type)
public static ValueTuple<string, int, int> Read(string line)

A line read: the prefab and the fewest and most of it.