This commit is contained in:
陈思海 2026-04-29 16:02:54 +08:00
parent de3ae0a393
commit 4340f2f4a7
4 changed files with 13 additions and 13 deletions

View File

@ -76,7 +76,7 @@ namespace AlicizaX.UI
} }
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
UnityEngine.Debug.LogError("RecyclerView item render is missing."); Log.Error("RecyclerView item render is missing.");
#endif #endif
} }

View File

@ -44,7 +44,7 @@ namespace AlicizaX.UI
if (string.IsNullOrEmpty(groupViewName)) if (string.IsNullOrEmpty(groupViewName))
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
UnityEngine.Debug.LogError("GroupAdapter requires a non-empty groupViewName."); Log.Error("GroupAdapter requires a non-empty groupViewName.");
#endif #endif
return; return;
} }

View File

@ -691,7 +691,7 @@ namespace AlicizaX.UI
if (!HolderType.IsInstanceOfType(viewHolder)) if (!HolderType.IsInstanceOfType(viewHolder))
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
UnityEngine.Debug.LogError(ZString.Format("RecyclerView item render '{0}' expects holder '{1}', but got '{2}'.", ItemRenderType.FullName, HolderType.FullName, viewHolder.GetType().FullName)); Log.Error(ZString.Format("RecyclerView item render '{0}' expects holder '{1}', but got '{2}'.", ItemRenderType.FullName, HolderType.FullName, viewHolder.GetType().FullName));
#endif #endif
return null; return null;
} }
@ -699,7 +699,7 @@ namespace AlicizaX.UI
if (createInstance() is not ItemRenderBase itemRender) if (createInstance() is not ItemRenderBase itemRender)
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
UnityEngine.Debug.LogError(ZString.Format("RecyclerView item render '{0}' could not be created.", ItemRenderType.FullName)); Log.Error(ZString.Format("RecyclerView item render '{0}' could not be created.", ItemRenderType.FullName));
#endif #endif
return null; return null;
} }

View File

@ -339,7 +339,7 @@ namespace AlicizaX.UI
if (transform.childCount == 0) if (transform.childCount == 0)
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
Debug.LogError("RecyclerView content is missing."); Log.Error("RecyclerView content is missing.");
#endif #endif
return null; return null;
} }
@ -348,7 +348,7 @@ namespace AlicizaX.UI
if (content == null) if (content == null)
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
Debug.LogError("RecyclerView content RectTransform is missing."); Log.Error("RecyclerView content RectTransform is missing.");
#endif #endif
return null; return null;
} }
@ -380,7 +380,7 @@ namespace AlicizaX.UI
if (templates == null || templates.Length == 0) if (templates == null || templates.Length == 0)
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
Debug.LogError("RecyclerView templates are missing."); Log.Error("RecyclerView templates are missing.");
#endif #endif
return null; return null;
} }
@ -614,7 +614,7 @@ namespace AlicizaX.UI
validationErrorLogged = true; validationErrorLogged = true;
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
Debug.LogError(message); Log.Error(message);
#endif #endif
} }
@ -624,7 +624,7 @@ namespace AlicizaX.UI
if (GetComponent<RecyclerNavigationBridge>() == null) if (GetComponent<RecyclerNavigationBridge>() == null)
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
Debug.LogError("RecyclerNavigationBridge is missing. Add it in prefab/editor setup."); Log.Error("RecyclerNavigationBridge is missing. Add it in prefab/editor setup.");
#endif #endif
} }
#endif #endif
@ -696,7 +696,7 @@ namespace AlicizaX.UI
if (scrollbarEx == null) if (scrollbarEx == null)
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
Debug.LogError("ScrollbarEx is missing. Add it in prefab/editor setup."); Log.Error("ScrollbarEx is missing. Add it in prefab/editor setup.");
#endif #endif
return; return;
} }
@ -723,7 +723,7 @@ namespace AlicizaX.UI
if (adapter == null) if (adapter == null)
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
Debug.LogError("Adapter cannot be null"); Log.Error("Adapter cannot be null");
#endif #endif
return; return;
} }
@ -731,7 +731,7 @@ namespace AlicizaX.UI
if (layoutManager == null) if (layoutManager == null)
{ {
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
Debug.LogError("LayoutManager cannot be null"); Log.Error("LayoutManager cannot be null");
#endif #endif
return; return;
} }
@ -1753,7 +1753,7 @@ namespace AlicizaX.UI
} }
#if UNITY_EDITOR || DEVELOPMENT_BUILD #if UNITY_EDITOR || DEVELOPMENT_BUILD
Debug.LogError("RecyclerView method must run on Unity main thread."); Log.Error("RecyclerView method must run on Unity main thread.");
#endif #endif
return false; return false;
} }