[Opt]
This commit is contained in:
parent
de3ae0a393
commit
4340f2f4a7
@ -76,7 +76,7 @@ namespace AlicizaX.UI
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
UnityEngine.Debug.LogError("RecyclerView item render is missing.");
|
||||
Log.Error("RecyclerView item render is missing.");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ namespace AlicizaX.UI
|
||||
if (string.IsNullOrEmpty(groupViewName))
|
||||
{
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
UnityEngine.Debug.LogError("GroupAdapter requires a non-empty groupViewName.");
|
||||
Log.Error("GroupAdapter requires a non-empty groupViewName.");
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
@ -691,7 +691,7 @@ namespace AlicizaX.UI
|
||||
if (!HolderType.IsInstanceOfType(viewHolder))
|
||||
{
|
||||
#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
|
||||
return null;
|
||||
}
|
||||
@ -699,7 +699,7 @@ namespace AlicizaX.UI
|
||||
if (createInstance() is not ItemRenderBase itemRender)
|
||||
{
|
||||
#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
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -339,7 +339,7 @@ namespace AlicizaX.UI
|
||||
if (transform.childCount == 0)
|
||||
{
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
Debug.LogError("RecyclerView content is missing.");
|
||||
Log.Error("RecyclerView content is missing.");
|
||||
#endif
|
||||
return null;
|
||||
}
|
||||
@ -348,7 +348,7 @@ namespace AlicizaX.UI
|
||||
if (content == null)
|
||||
{
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
Debug.LogError("RecyclerView content RectTransform is missing.");
|
||||
Log.Error("RecyclerView content RectTransform is missing.");
|
||||
#endif
|
||||
return null;
|
||||
}
|
||||
@ -380,7 +380,7 @@ namespace AlicizaX.UI
|
||||
if (templates == null || templates.Length == 0)
|
||||
{
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
Debug.LogError("RecyclerView templates are missing.");
|
||||
Log.Error("RecyclerView templates are missing.");
|
||||
#endif
|
||||
return null;
|
||||
}
|
||||
@ -614,7 +614,7 @@ namespace AlicizaX.UI
|
||||
|
||||
validationErrorLogged = true;
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
Debug.LogError(message);
|
||||
Log.Error(message);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -624,7 +624,7 @@ namespace AlicizaX.UI
|
||||
if (GetComponent<RecyclerNavigationBridge>() == null)
|
||||
{
|
||||
#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
|
||||
@ -696,7 +696,7 @@ namespace AlicizaX.UI
|
||||
if (scrollbarEx == null)
|
||||
{
|
||||
#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
|
||||
return;
|
||||
}
|
||||
@ -723,7 +723,7 @@ namespace AlicizaX.UI
|
||||
if (adapter == null)
|
||||
{
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
Debug.LogError("Adapter cannot be null");
|
||||
Log.Error("Adapter cannot be null");
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
@ -731,7 +731,7 @@ namespace AlicizaX.UI
|
||||
if (layoutManager == null)
|
||||
{
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
Debug.LogError("LayoutManager cannot be null");
|
||||
Log.Error("LayoutManager cannot be null");
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
@ -1753,7 +1753,7 @@ namespace AlicizaX.UI
|
||||
}
|
||||
|
||||
#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
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user