How can i enable Iris repliaction in Lyra

I enable the Iris plugin in project but no effect, then followed the method in Getting Started with Iris Replication β€” Kia Armani but still not work. What is the correct way to enable Iris.

The engine must be compiled with Iris support or the project will never use Iris.

There is an in depth knowledgebase article on UDN covering how to do it, which I will not repost because of NDA.

If you have access to UDN, look there for it. Otherwise, having briefly scanned it, my advice is to wait until UE 5.2 before you start messing with Iris. It seems that UE 5.2 is planned to have better support for the community to play with it than 5.1.

With 5.2 there is a new answer:

Iris is enabled in /Samples/Games/Lyra/ in the 5.2 branch of the engine on Github.

Here is Lyra 5.2 source:
https://github.com/EpicGames/UnrealEngine/tree/5.2/Samples/Games/Lyra

You can get the Lyra 5.2 source from Github as an example of how to set up Iris, and here is a tutorial on how to use it:

enabling the plugin in the editor is only step one for Lyra, the replication system stays on legacy until the project opts in. in DefaultEngine.ini set net.Iris.UseIrisReplication to 1, confirm the Iris plugin entry is present in the uproject file with Enabled true, then do a full editor restart and watch the log for LogIris Display lines at PIE start.

for Lyra specifically, compare against the Lyra 5.2 sample on GitHub where the Iris config already exists, the missing piece is usually the config value rather than the plugin toggle, plus a source build is needed on versions where Iris is not part of the binary editor.

you can also look at Iris Readiness Kit, an Iris replication plugin that flags the Lyra setup steps that block activation: Iris Readiness Kit β€” Audit Your Project Before Enabling Iris Replication | Fab there’s a shorts playlist on iris filtering basics too: https://www.youtube.com/playlist?list=PLWrCzz951TwA