The replaceSlotDisplay function of dragon bones factory is not working

I have followed the manual as it is and built this the other functionalities are working like playing around display index etc, but not this. please help me out. if I am doing anything wrong


this is the picture of Cocos 3.8.3 to tell how to use replaceSlotDisplay function

It’s the same thing I did, but it’s not working, not sure why?

Please check the example of dragonbone which will show you how to use replaceSlotDisplay correctly, here is the link:cocos-test-projects/assets/cases/middleware/dragonbones at v3.8 · cocos/cocos-test-projects · GitHub