Assets/Stitchscape/Editor/Stitchscape/Stitch.js(74,61): BCW0012: WARNING: 'UnityEdito

Assets/Stitchscape/Editor/Stitchscape/Stitch.js(74,61): BCW0012: WARNING: ‘UnityEditor.EditorGUILayout.ObjectField(UnityEngine.Object, System.Type, *UnityEngine.GUILayoutOption[ ])’ is obsolete. Check the docs for the usage of the new parameter ‘allowSceneObjects’.

[RESOLVED]

Because the method is deprecated and shouldn’t be used anymore! It will probably get removed in future, so you should use the new parameters if you want your game/project be compatible with future versions.

There is the “allowSceneObjects” (bool/boolean) parameter missing. You should do what the error message tells you: Check the documentation!

That’s the 3 different ways to use this Method correctly:

static function ObjectField (obj : Object, objType : System.Type, allowSceneObjects : boolean, params options : GUILayoutOption[ ]) : Object
static function ObjectField (label : String, obj : Object, objType : System.Type, allowSceneObjects : boolean, params options : GUILayoutOption[ ]) : Object
static function ObjectField (label : GUIContent, obj : Object, objType : System.Type, allowSceneObjects : boolean, params options : GUILayoutOption[ ]) : Object

The red parts are new!

Update to the latest version of Stitchscape (send me a PM with the email address you used when buying Stitchscape).

–Eric