This line is from an editor script that works lovely in 2.6 but won’t compile in 3.4 saying it can’t cast from source to destination.
Selection.GetFiltered returns a list of objects so I tried changing myObjects to Objects[ ] but that doesn’t seem to work either, how do you fix this for 3.4 in UnityScript?
var myObjects : GameObject[] = Selection.GetFiltered( GameObject, SelectionMode.Editable);
I’m too lazy to test it but I had similar problems when i worked with AssetBundles and I was trying to get the Objects …Problem was that function was returning UnityEngine.Object and when I wrote “x:Object” it defined it as System.Object fixed that by writing “var x:UnityEngine.Object”