GLoader 用于显示 模型图片
因此获取对象 是GLoader而不是GComponent。
...
using FairyGUI;
...
string[] str_resources = new string[]{ "icon_common_01", "icon_common_02", "icon_common_03", "icon_common_04" };
GLoader ROO3 = mainview.GetChild("cmp_test_01").asCom.GetChild("load_test_01").asLoader;
Debug.Log("debug- icon1:" + ROO3.name+"/"+ ROO3.playing+"/"+ROO3.url);//ui://nj6q6wy610odwcj//ui://nj6q6wy610odwci
string str_1 = FairyGUI.UIPackage.GetItemURL("common",//FGUI包的名字
str_resources[i]//"icon_common_01"//图标的名字
);
ROO3.url = str_1;
ROO3.url = "ui://nj6q6wy610odwci";
Debug.Log("debug- icon1:" + ROO3.name + "/" + ROO3.playing + "/" + ROO3.url);
...
url是FairyGUI编辑器中