From bc2cbce8dd13ed0f578ca9c9e76d2669e7ef0376 Mon Sep 17 00:00:00 2001 From: xu_yanfeng Date: Sat, 22 Feb 2025 11:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=99=A4=E4=B8=80=E4=BA=9B=E4=BC=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4warning=E7=9A=84=E5=B1=9E=E6=80=A7=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/inject/inspector.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/scripts/inject/inspector.ts b/src/scripts/inject/inspector.ts index 3344020..cc47833 100644 --- a/src/scripts/inject/inspector.ts +++ b/src/scripts/inject/inspector.ts @@ -395,6 +395,17 @@ export class Inspector extends InjectEvent { isExcludeProperty(node: any, key: string) { const mapArray = [ + { + type: cc.Mask, + keys: [ + "color", + "customMaterial", + "material", + "materials", + "sharedMaterial", + "sharedMaterials", // + ], + }, { type: cc.UITransformComponent || cc.UITransform, keys: ["priority"],