How can I show static fields and properties in the inspector?

Odin does not currently have any built-in support for showing static members directly in the inspector. But you can still easily achieve this through a property, which Odin can show if you give a ShowInInspector attribute. Here is an example.

public class MyComponent : MonoBehaviour
{
	private static SomeType SomeStaticVariable;

	[ShowInInspector]         
	private SomeType ShowSomeStaticVariableInTheInspector
	{
		get { return MyComponent.SomeStaticVariable; }
		set { MyComponent.SomeStaticVariable = value; }
	}

	[ShowInInspector]         
	private SomeType TimeScale
	{
		get { return Time.timeScale; }
		set { Time.timeScale = value; }
	}
}

If a property does not have a setter, it becomes read-only and drawn as disabled in the inspector.

public class MyComponent : MonoBehaviour
{
	[ShowInInspector]         
	private SomeType ReadOnlyTimeScale
	{
		get { return Time.timeScale; }
	}
}

If you want to draw a singleton, for instance, you probably don't want the property to have a setter, but removing that disables the GUI in the inspector, and prevent users from modifying the values inside the singleton. In that case, a neat little trick is to create an empty setter, and sort of cheat Odin into not disabling the GUI. It would then also make sense to hide the object-picker that allows users to change the instance itself.

public class MyComponent : MonoBehaviour
{
	[ShowInInspector]         
	[HideReferenceObjectPicker]     
	[HideLabel, BoxGroup("My Singleton")]
	private MySingleton ShowMySingleton
	{
		get { return Time.timeScale; }
		set {  }
	}   
}
Can I use Odin for its editors only, without using the serialization? Can I use Odin for its editors only, without using the serialization?
Can I use Odin to make inspectors for my own asset store plugins? Can I use Odin to make inspectors for my own asset store plugins?
Can I use Odin Inspector to create custom editor windows? Can I use Odin Inspector to create custom editor windows?
Does the serialization support Windows Store and UWP? Does the serialization support Windows Store and UWP?
How do I contact Sirenix to report bugs, suggest features, or in general? How do I contact Sirenix to report bugs, suggest features, or in general?
Does Odin support serialization of Unity object references? Does Odin support serialization of Unity object references?
Does Odin support interfaces? Does Odin support interfaces?
How can I add an image to the inspector? How can I add an image to the inspector?
Why isn’t Odin drawing the inspector for my script? Why isn’t Odin drawing the inspector for my script?
Why is Odin not serializing or showing my field or property? Why is Odin not serializing or showing my field or property?
How will Odin handle existing editors? How will Odin handle existing editors?
How can I make a list show one item per page? How can I make a list show one item per page?
Does Odin support cross scene references? Does Odin support cross scene references?
Can I disable or hide an inspector property in play mode, or vice versa? Can I disable or hide an inspector property in play mode, or vice versa?
Which platforms are supported by Odin? Which platforms are supported by Odin?
How easy is Odin to uninstall? How easy is Odin to uninstall?
How will Odin affect performance in the inspector? How will Odin affect performance in the inspector?
How can I make my data in Odin Editor Windows persistent? How can I make my data in Odin Editor Windows persistent?
Unity crashed, could this have something to do with Odin? Unity crashed, could this have something to do with Odin?
Can I use Odin's serialization without inheriting from SerializedMonoBehaviour etc.? Can I use Odin's serialization without inheriting from SerializedMonoBehaviour etc.?
How fast is Odin's Serialization system? How fast is Odin's Serialization system?
How stable/reliable is Odin's serialization system? Can I safely use it in my project? How stable/reliable is Odin's serialization system? Can I safely use it in my project?
Is it possible to customize how the dictionary drawer draw its key-type using attributes? Is it possible to customize how the dictionary drawer draw its key-type using attributes?
How can I make an attribute that lets you drag elements unto a member to set its value? How can I make an attribute that lets you drag elements unto a member to set its value?
Why are my values disappearing when I hit play? Why are my values disappearing when I hit play?
Can I write my own custom editor code using Odin? Can I write my own custom editor code using Odin?
Why is there a Serializable JSON Dictionary in my Odin Editor Window? Why is there a Serializable JSON Dictionary in my Odin Editor Window?
How can I rename a type without loosing data? How can I rename a type without loosing data?