I just imported Terrain Toolkit 1.0.2 and received 2 warnings, both :
Assets/TerrainToolkit/Editor/TerrainToolkitEditor.cs(1069,82): warning CS0618: UnityEditor.EditorGUILayout.ObjectField(string, UnityEngine.Object, System.Type, params UnityEngine.GUILayoutOption[])' is obsolete:
Check the docs for the usage of the new parameter ‘allowSceneObjects’.’
These refers to the lines, both similar :
splatPrototype.texture = EditorGUILayout.ObjectField("Cliff texture", splatPrototype.texture, typeof(Texture2D)) as Texture2D;
splatPrototype.texture = EditorGUILayout.ObjectField("Texture "+nTextures, splatPrototype.texture, typeof(Texture2D)) as Texture2D;
I have the script reference for the command : Unity - Scripting API: EditorGUILayout.ObjectField
but am unfamiliar with GUI and C# in general, and it would take me a while to get close to finding what parameters are being passed or should be passed to fix this. Can anyone help with the correct updated line for this Editor GUI command in Unity Terrain Toolkit ? Many Thanks.
Link to the package description and download : http://unity3d.com/support/resources/unity-extensions/terrain-toolkit