class ByButton extends Component {
@property(Label) _label!: Label;
@property(CCString)
get text(): string { return _label.string; }
set text(value: string){ _label.string = value; }
}
I create prefab ByButton.prefab and put it on scene. When i change ByButton.text property in inspector, I see how the Label changes its text. But when push ctrl+s Label not save changed property.