From 79ee25fd2c7cdd7a6d6781e87f9d8dcb25a94343 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 22 九月 2026 19:12:07 +0800
Subject: [PATCH] update
---
Assets/Editor/Tool/TexturePlatformAssetPostprocessor.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Assets/Editor/Tool/TexturePlatformAssetPostprocessor.cs b/Assets/Editor/Tool/TexturePlatformAssetPostprocessor.cs
index 1d9db39..40a3da1 100644
--- a/Assets/Editor/Tool/TexturePlatformAssetPostprocessor.cs
+++ b/Assets/Editor/Tool/TexturePlatformAssetPostprocessor.cs
@@ -13,6 +13,7 @@
public class TexturePlatformAssetPostprocessor : AssetPostprocessor
{
private static readonly string TARGET_FOLDER = TexturePlatformFormatHelper.TARGET_FOLDER;
+ private static readonly bool AUTO_APPLY_ATLAS_SETTINGS = false;
void OnPreprocessTexture()
{
@@ -35,6 +36,9 @@
string[] movedAssets,
string[] movedFromAssetPaths)
{
+ if (!AUTO_APPLY_ATLAS_SETTINGS)
+ return;
+
foreach (var assetPath in importedAssets)
{
if (!assetPath.StartsWith(TARGET_FOLDER))
--
Gitblit v1.8.0