# Conflicts:
#	.obsidian/workspace.json
#	3Projects/Unity/loxodon/loxodon-framework Public.md
This commit is contained in:
zzzisfunnyboy
2025-06-17 22:33:27 +08:00
2 changed files with 87 additions and 86 deletions

View File

@@ -0,0 +1,25 @@
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;
}
}
```
deepseek扩展
[DeepSeek - 探索未至之境](https://chat.deepseek.com/a/chat/s/a42c8fe7-2dd9-44a4-9854-e1ec34f3e2cf)