Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
这种日志是在代码 Resources.UnloadUnusedAssets();之后产生
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
UnityEngine.Transform:set_parent(Transform)
这种黄色警报 一般出现在设置父物体的时候 poster.transform.parent = transform;
改成这样就是标准的了,警报也没有了
obj .transform.SetParent(transform,false);
或者
GameObject obj = new GameObject ();
obj .name="";
obj .transform.SetParent(transform,false);
obj .transform.localScale = new Vector3 (1, 1, 1);
obj .transform.localPosition = new Vector3 (0, 0, 0);
obj .transform.localRotation = Quaternion.identity;
持续更新!!!

浙公网安备 33010602011771号