How to use Transition in Monarch

Maybe this is stupid question, I can’t understand anything.

I read this page.

First, where I put Trasition Gui?
1.Like other monarch collection, proxy on main collection?
2.Or directly on main collection?
3.Or Evety Collection has unique transition gui?

I think 3 is correct, but not work. transtion not move and not change scene.
I’m sorry for the vague information, but I can’t understand anything so I don’t know what to say.

I want some example it works.

You put those code in your screen init function. As you can see in the example, it uses root node for transitions (fade in, fade out… the node). You can also use other nodes depending on your need.

Ah, you will need a gui for transitions if you follow the example. Create a gui file, add root node to it. After that, add the gui as a component of a game object in your collection.

Thanks, But it doesn’t work.

Not move and change scene.
I changed “root” and “foobar” to my own gui name.

But
Debug script shows “DEBUG:SCRIPT: notify_transition_listeners() hash: [monarch_screen_transition_in_finished]”
but Did’t get monarch.TRANSITION.DONE message.

Did you make monarch.show(hash("screen_name")) successfully yet? If you don’t see it switched then I think you are not in this custom transition step

Yes.
I tried this in “title” collection, it was called monarch.show(hash(“title”)) in main.collection.

I try monarch.show() in same init() function, and works.

You may not need to wait for monarch.TRANSITION.DONE message at the moment. Just make sure the transition in the example works.

I misunderstand. It need to registered first in gui file.

It works maybe. Thanks.
But Its move is so different from I imagined.
I wanted to cover screen when transition.
But with it, can do it but seem hard work.

Anyway, thank you very much.
It was helpful