### Run Code in Generating Phase with NDMF Source: https://modular-avatar.nadena.dev/docs/extending Use this pattern to execute custom code during the Generating phase of Modular Avatar processing. Ensure your plugin is configured to run before the 'nadena.dev.modular-avatar' plugin. ```csharp [assembly: ExportsPlugin(typeof(SetViewpointPlugin))] namespace nadena.dev.ndmf.sample { public class MyPlugin : Plugin { protected override void Configure() { InPhase(BuildPhase.Generating) .BeforePlugin("nadena.dev.modular-avatar") .Run("Do something", ctx => { /* ... */ }); } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.