7 回答
- 最新
- 投票最多
- 评论最多
0
Thanks @REDACTEDUSER
In the meantime, you can fix this by adding the following line to UiTextInputComponent.cpp:
m_childTextStateDirtyFlag = true;
Add that line to the following functions (at the beginning is fine):
void UiTextInputComponent::SetText(const AZStd::string& text)
void UiTextInputComponent::SetTextEntity(AZ::EntityId textEntity)
void UiTextInputComponent::SetPlaceHolderTextEntity(AZ::EntityId textEntity)
已回答 7 年前
0
Hi @REDACTEDUSER
textEntity = UiTextInputBus.Event.GetTextEntity(textInputEntityId)
UiTextBus.Event.SetText(textEntity, "Hello world!")
Here are the Lua script reference pages for UiTextInputBus and UiTextBus:
Hope that helps!
已回答 7 年前
0
Apologies - I actually didn't realize there was a SetText method directly available on the UiTextInputBus. I'll look into this a little more to see what's going on!
已回答 7 年前
0
I think there's an issue with how the text input component updates when its text element value changes. I'm investigating this and will update once I have more information!
已回答 7 年前
0
Great! Thank you for confirming that it's working for you now. We'll include that fix in a future release.
已回答 7 年前
该帖子已关闭:已禁用添加新回答、评论和投票。
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 7 个月前