Unfortunately, this method does not work if the game is built using IL2CPP. I would be grateful if a fix could be made.