How do I create an AnimLayerInterface in C++?

I want to maintain the AnimLayerInterface in C++ or in the script.

Hi, no, this isn’t possible with layer interfaces. Both layer interfaces and the layer linking process require the anim blueprint compiler and the generated class to work, so they have to be created as blueprints.

If you just want to have a native linked anim graph (rather than a linked layer within an anim graph), that could be possible, although I can’t say for sure since we don’t use that workflow. Generally, it’s more common to nativize event graph functionality in a custom anim instance class - nativizing the actual anim graph within an anim instance is difficult/uncommon.

Can you share more information about your motivation for doing this? That would help to understand if there are any other options.

That’s fine. I just wanted to store more information in the text.