Class TextModeCRTPresetGenerator
Editor utility that writes the shipped CRT presets to TextModeCRTPreset assets
inside the TextMode module's own Resources folder.
Inherited Members
Namespace: Scylla.TextMode.Editor
Assembly: ScyllaTextMode.Editor.dll
Syntax
public static class TextModeCRTPresetGenerator
Remarks
Re-running overwrites the presets with the values in Scylla.TextMode.Editor.TextModeCRTPresetDefaults, which is how a change in code reaches the shipped assets. Existing assets are updated in place, so references to them survive.
Fields
OUTPUT_DIRECTORY
Project-relative folder the presets are written to. The trailing CRT/Presets
segments are what TextModeCRTPresetRegistry scans for.
Declaration
public const string OUTPUT_DIRECTORY = "Assets/Scylla/Framework/TextMode/Resources/CRT/Presets"
Field Value
| Type | Description |
|---|---|
| string |
Methods
Generate()
Creates or refreshes the preset assets in OUTPUT_DIRECTORY. Available from
the menu at Assets > Create > Scylla > TextMode > TextMode CRT Presets.
Declaration
[ScyllaMenuItem(ScyllaMenuGroup.Asset, "TextMode/TextMode CRT Presets")]
public static void Generate()
Remarks
The output folder is created when it is missing. Each preset asset is updated in place if it exists, so references to it survive, and is created otherwise. The registry is refreshed afterwards. A summary is logged, as an error when any preset could not be written.