节点树显示绿色为预制体

This commit is contained in:
xu_yanfeng 2025-02-02 14:37:15 +08:00
parent cc3c93c56c
commit b6b5a68014

View File

@ -303,7 +303,11 @@ export class Inspector extends InjectEvent {
return null;
}
private calcColor(node: any) {
return "";
if (node._prefab) {
return "#00ff00ff";
} else {
return "";
}
}
// 收集节点信息
getNodeChildren(node: any, data: TreeData) {