How do find out what version this was first included in ?

I have been working on a project at home, and on my dinner at work.
I have the following code at home on the latest version of unity , and it works no problem.

EditorGUILayout.DelayedTextField

Compiled it at work (earlier version of unity ) and it can not find the function call

I have looked at the documentation, and it does not say what version it is was first included in.

I want to do

#if UNITY_4_0 || UNITY_4_0_1 || UNITY_4_1 || UNITY_4_2

but i need to know what version to do it for , is there an easy way to find out ?

It’s a bit hacky, but there’s a specific versions for the docs. So for eg. 5.2, there’s:

And for 4.5:

So you can look for the method there. Of course, the method not existing in the documentation doesn’t mean that it’s not actually implemented, it could just be that they forgot to put it in the docs.

1 Like