This commit is contained in:
zzzisfunnyboy
2025-06-18 00:26:05 +08:00
parent 475fa111b2
commit 897b7cb217
4 changed files with 26 additions and 29 deletions

View File

@@ -0,0 +1,19 @@
单向绑定
``` csharp
[OnValueChanged(viewModel=>viewModel.hp, value=>string.Format("{0:D4}"))]
CustomText text;
public class CustomText
{
public Text text;
public void SetText(string str)
{
text.text = str;
}
}
```
deepseek扩展
[DeepSeek - 探索未至之境](https://chat.deepseek.com/a/chat/s/a42c8fe7-2dd9-44a4-9854-e1ec34f3e2cf)