How to controll Component when on Conversation?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ilsang
Posts: 2
Joined: Thu Feb 29, 2024 5:21 am

How to controll Component when on Conversation?

Post by ilsang »

Hello.
I want change Image, when conversation is continuing.
then, i found how to set active GameObject with sequence, but i still cant change sprite on Image Component of GameObject,

i want controll Component of GameObject. How can i do this?

I apologize for my limited English skills, but I trust that my intention has come across. If not, please feel free to let me know.
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to controll Component when on Conversation?

Post by Tony Li »

Hello,

Here are two solutions:

1. Use a different GameObject with a different sprite. Deactivate one GameObject and activate the other one.

2. Or write a custom sequencer command. (See part 6 of Cutscene Sequence Tutorials)
ilsang
Posts: 2
Joined: Thu Feb 29, 2024 5:21 am

Re: How to controll Component when on Conversation?

Post by ilsang »

thnaks for your reply!
i will try your answer do my best
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to controll Component when on Conversation?

Post by Tony Li »

Glad to help! If you have questions about either one, please let me know.
Post Reply