Table of Contents

Method RegisterAuthoringSource

Namespace
GrindFest.Content
Assembly
GrindFest.dll

RegisterAuthoringSource(Func<string, Object>)

Registers the editor's authoring source: a delegate that turns an address into the project's own asset, so keys resolve from the AssetDatabase instead of from a built content directory.

Called from the editor assembly (see Editor/ContentPipeline/ContentAuthoringSource.cs), which is why it takes a delegate rather than calling AssetDatabase itself. Deliberately has no play-mode guard: the key set can be prepared in edit mode by tooling, and only the delegate is exercised in play mode.

public static void RegisterAuthoringSource(Func<string, Object> resolver)

Parameters

resolver Func<string, Object>