set bark duration from code
Posted: Mon Mar 28, 2022 1:41 am
Hi Tony,
I'm trying to achieve something like this
When my player is speaking or listening, some icon will popup above its head, I think a bark UI can perfectly fits in such situation.
But since the bark UI has a fixed duration, how do I set its duration dynamically from script based on every dialogue entry's duration? Basically I can use OnConversationLineEnd() to manually turn off the bark UI, but How do I for the bark to stay until it is called to disappear?
Another question is that what is the easiest way to change bark UI's text to an icon? use getcomponent to get its text mesh GUI then change it manually? or your engine has its built-in way? tks
I'm trying to achieve something like this
When my player is speaking or listening, some icon will popup above its head, I think a bark UI can perfectly fits in such situation.
But since the bark UI has a fixed duration, how do I set its duration dynamically from script based on every dialogue entry's duration? Basically I can use OnConversationLineEnd() to manually turn off the bark UI, but How do I for the bark to stay until it is called to disappear?
Another question is that what is the easiest way to change bark UI's text to an icon? use getcomponent to get its text mesh GUI then change it manually? or your engine has its built-in way? tks