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: