double swap home button activating

hello! recently played in pubg mobile and noticed that the home button (played on xr) is not activating after the first swap and you need to double swap it to minimize the game. I wonder how to make the same button in unity? can you please send me a source to it

Replies

I have the same question, who can help?

Add a Comment

I found the answer,just use UIViewController‘s property preferredScreenEdgesDeferringSystemGestures.