适配v3版本的step功能

This commit is contained in:
xu_yanfeng
2025-01-28 13:14:53 +08:00
parent 554e60cdff
commit ee0f22bec8
4 changed files with 35 additions and 7 deletions

View File

@@ -170,7 +170,11 @@ export function getSimpleProperties(typeName: string): string[] {
"worldScale",
// "worldRotation",// 渲染有问题,暂时先不支持这个属性
];
config[CompType.UITransform] = ["anchor", "size"];
config[CompType.UITransform] = [
"anchorPoint", //vec2类型step会正确处理
// "anchor",// FIXME: 会被Inspector属性配对无法正确处理step
"size",
];
config[CompType.Widget] = [
"left",
"right",