Turning Pages in a book

Hello,
I’m using cocos creator v3.4.2.
I have checked the Tutorial: Turning pages in a book. This seems to work for v2 but not in v3. How do I add similar functionality in v3?

I have also tried folding. This also doesn’t run in 3.4.2

What do I replace these with?

Screenshot 2022-07-06 182631


Screenshot 2022-07-06 182735

I have changed indicesCount to indexCount is it proper?
Need help regarding adding value to renderData.vertexCount as this value is read-only property.
What should be the alternative for uvDirty and vData?