Table of Contents

Class ContentScanner

Namespace
GrindFest.Content.Editor
Assembly
GrindFest.dll

Scans the content declaration and its prefabs, producing the three generated artifacts of the content platform: index records (hot), full component mirrors (cold) and the asset catalogue.

The declaration used to be Addressables: a group and a set of labels per asset. It is now rules — see ContentDeclaration for what they are and why the marking had to go. The scan itself did not change: kinds still arrive as labels, values are still read out of the encoded component dictionaries by field name, so a new component, field or prefab still needs no change to this file.

public static class ContentScanner
Inheritance
object
ContentScanner

Fields

TraceScan

Writes every asset the scan starts and finishes, with timings, to Library/content-scan-trace.log. Off by default (it costs two file writes per asset); flipped on from the console when a scan has to be attributed to one asset. See the START/END pair in ScanBase(string, Action<string, float>, int, string).

Methods

ScanBase(string, Action<string, float>, int, string)