Files
obsidian-notes/3Projects/Unity/loxodon/loxodon-framework Public.md
2025-06-17 18:21:06 +08:00

25 lines
544 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)