Variable types that gets exposed to editor

Trying to expose a DateTime object to the editor in a C# script. this dosent seem to work. :frowning:

Even after some searching i couldnt find a list of variable types that get exposed to the editor correctly.

So, does this list exist or can i assume that only atomary types gets exposed.

Only objects with the [System.Serializable] attribute are visible in the inspector. This means that you cannot expose DateTime, as it doesn’t have this attribute. What you could do is write your own wrapper class that exposes those properties of DateTime that you want in the inspector. Then in the Start function convert it to a DateTime object.

ok, wrapping it is, thanks for the quick answer