protected override void Show() { base.Show(); //atlas name[sprite name] string path = $"atlas/common.spriteatlas[ui_comprop_close]"; m_image.SetSprite(path); }
protected override void Show() { if (data != null) { Debug.Log($"HomeUI data Test : {data[0].ToString()}"); } string path = $"atlas/common.spriteatlas[ui_comprop_close]"; m_image.SetSprite(path); #if UNITY_ANDROID //先拿到jar中的某个类。 AndroidJavaClass jc = new AndroidJavaClass("com.NicoleXiao.UIFramework.MyPluginClass"); //和java代码包名统一 //获取到类的实例 jo = jc.CallStatic <AndroidJavaObject>("GetInstance", gameObject.name); Debug.Log("AndroidJavaObject : " + jo); #endif }