How can I Activate/Deactivate Properties in Inspector?

33704-3.jpg

Hello!

First of all, I’m really sorry for my bad English.

I’m making a game using Unity and I’m also using an asset.
I have a question.

Looking this picture, you can find that if I choose ‘No physics’ in(among) Physics Mode, all variables below are deactivated.
Or if I choose ‘Dynamic’ in Physics Mode, all variables below are activated.

I’m designing a system which manages and controls all game objects using one script,
and I want to make variables be activated or deactivated in inspector according to configure object’s property.

I looked for custom inspector, but I didn’t solve my problem because I guess I couldn’t find suitable search words.

How can I do that?

You want a custom inspector. And maybe a property drawer.

Check out the tutorial here. Should do everything you want to do.