This commit is contained in:
zzz
2025-06-16 18:36:04 +08:00
parent 407ad3173d
commit 6f01ab3054
12 changed files with 2339 additions and 47 deletions

View File

@@ -3,3 +3,20 @@
Source:[loxodon-framework/Loxodon.Framework.TextUGUI at master · vovgou/loxodon-framework · GitHub](https://github.com/vovgou/loxodon-framework/tree/master/Loxodon.Framework.TextUGUI)
---
单向绑定
``` 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;
}
}
```