chore: update internal

This commit is contained in:
mob-sakai
2026-06-20 15:07:09 +09:00
parent b6b538f64f
commit c7696c09c0
2 changed files with 10 additions and 12 deletions
@@ -80,6 +80,15 @@ namespace Coffee.UIEffectInternal
InternalListPool<int>.Return(ref intList);
}
public static void CopyTo(this VertexHelper self, Mesh dst)
{
if (self == null || dst == null) return;
dst.Clear(false);
self.FillMesh(dst);
dst.RecalculateBounds();
}
public static void CopyTo(this Mesh self, VertexHelper dst)
{
if (!self || dst == null) return;
@@ -36,6 +36,7 @@ namespace Coffee.UIEffectInternal
void IPreprocessBuildWithReport.OnPreprocessBuild(BuildReport report)
{
Initialize();
s_BuildingPlayer = true;
foreach (var t in TypeCache.GetTypesDerivedFrom(typeof(PreloadedProjectSettings<>)))
@@ -52,24 +53,12 @@ namespace Coffee.UIEffectInternal
$"({t.Name}) from PreloadedAssets. " +
$"It will be restored after build completes.");
}
Initialize();
}
void IPostprocessBuildWithReport.OnPostprocessBuild(BuildReport report)
{
s_BuildingPlayer = false;
Initialize();
foreach (var t in TypeCache.GetTypesDerivedFrom(typeof(PreloadedProjectSettings<>)))
{
var settings = GetDefaultSettings(t);
if (!settings || settings.m_PreLoadSettingsInBuild) continue;
Debug.Log($"[PreloadedProjectSettings] Build finished: restored '{settings.name}' " +
$"({t.Name}) to PreloadedAssets.");
}
}
}