Mark component/node dirty in inspector

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.

You need change the text in ByButton.prefab

In edit scene mode,push ctrl + s means save the scene. You need to direct edit prefab or in edit scene mode click this button the changes will synchronize to prefab file.
image