Affecting a charaters gravity

hey guys, this is my first post, and pretty new to unity. I would like to know how to affect a characters gravity. For example, if he is walking on the moon, how can he walk around the moon without falling off, or lets say he has these magnetic boots that allow him to walk up walls. I know it can be done because i have seen it in some games i have played.

Welcome!

Adding a rigid body to your object can make it so you can play around with gravity. As for walking up walls well there are all sorts of ways you could go about doing it.

Thanks! I will try this out today.

How would i get a character to walk up walls?

You look for the locomotion system, it had a scene where the player walked around a small planet, some code for it may be in there.

Is there coding for a character to walk up walls? if so, then can you please tell me.