Add behavior attr panel basic props editer

This commit is contained in:
2022-04-04 17:41:26 +08:00
parent 4d818988f9
commit c10dd6e882
9 changed files with 55 additions and 15 deletions
@@ -123,8 +123,7 @@ class BehaviorPopupComponent extends Component<
) + " " + (recorder.nameIndex - 1).toString();
// 赋予一个随机颜色
let color = randomColor(true);
newBehavior.color = `rgb(${color[0]},${color[1]},${color[2]})`;
newBehavior.color = randomColor(true);
}
});
this.props.onDismiss ? this.props.onDismiss() : undefined;