Adjust world gravity at runtime?

I tried to use this code, but GetWorldSettings is unavailable function for me