cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Setting macros in build settings has no effect

Open smallmain opened this issue 3 months ago • 2 comments

Cocos Creator version

3.8.2

System information

MacOS

Issue description

settings: image

engine code: image

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

smallmain avatar Mar 29 '24 08:03 smallmain

@yanOO1497 Any ideas of this issue?

dumganhar avatar Apr 01 '24 03:04 dumganhar

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.

dumganhar avatar Apr 01 '24 07:04 dumganhar