As shown in the screenshot, if I add an event in the dialog system, the event works fine at first.
When I move the scene, the dialog event is not applied like the screenshot. What should I do?
How to keep the event?
How to keep the event?
- Attachments
-
- 문의1.JPG (45.11 KiB) Viewed 255 times
-
- 문의2.JPG (26.23 KiB) Viewed 255 times
Re: How to keep the event?
Hi,
This message explains the issue:
You have configured an event to happen in a specific scene. If you have opened another scene, you cannot see that event in the editor.
If you don't want to tie an event to a specific scene, please use sequencer commands.
This message explains the issue:
You have configured an event to happen in a specific scene. If you have opened another scene, you cannot see that event in the editor.
If you don't want to tie an event to a specific scene, please use sequencer commands.
Re: How to keep the event?
Thank you to reply
So I use SendMessage of sequence on Dialogue System
but It dosen't work..
SendMessage(ShakeDialogue, 5, gameObjectName);
So I use SendMessage of sequence on Dialogue System
but It dosen't work..
SendMessage(ShakeDialogue, 5, gameObjectName);
Re: How to keep the event?
Hi,
The 3 parameters to SendMessage() are:
If a GameObject named "Front Door" has this method:
If a GameObject named Screen Effects has this method and you want to pass the parameter "shake":
Then use this sequencer command:
The 3 parameters to SendMessage() are:
- Method name
- String parameter*.
- Name of GameObject that has a script with the specified method name.
If a GameObject named "Front Door" has this method:
Code: Select all
public void OpenDoor() { .... }
Then use this sequencer command:
[code=sequence]SendMessage(OpenDoor, , Front Door)
Code: Select all
public void PlayEffect(string effectName) { ... }
Code: Select all
SendMessage(PlayEffect, shake, Screen Effects)