whilst that does remove things from the inspector it’s not always an option, i.e. if you’re using editor scripts you need to keep the affected variables as public for them to be altered by the editor script but you might not want the game designers or whoever is using the component to manipulate those values directly.
public class h : monobehavior {
[Serializable]
public class ff
{
public bool g;
}
public ff f;
}
Or
[Serializable]
public class ff
{
public bool g;
}
public class h : monobehavior {
public ff f;
}
You can add all the variables you want to hide in ff class that you want to hide. You can add more class like ff in a single script or create other script for it. Just remember to remove monobehavior and add [Serializable] above the class