cocos-engine
cocos-engine copied to clipboard
Setting macros in build settings has no effect
Cocos Creator version
3.8.2
System information
MacOS
Issue description
settings:
engine code:
settings.json:
{
"macros":{}
}
You should think carefully about the priorities among platform defaults, preferences, and build settings. Now I can only modify it through code, so what's the use of providing these panels?
Relevant error log output
No response
Steps to reproduce
.
Minimal reproduction project
No response
@yanOO1497 Any ideas of this issue?
Need to remove the hard code in core/platform/macro.ts
if (NATIVE || MINIGAME || RUNTIME_BASED) {
this.CLEANUP_IMAGE_CACHE = true;
}
and update the default value in build panel for native/minigam/runtime-based platforms.