Rain fx on Title UI

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
calamarcia
Posts: 4
Joined: 15 Jul 2020 18:40

Rain fx on Title UI

Post by calamarcia »

Hi!

Not sure If it's on UI or scenarios. It's possible to have the rain fx in loop in the Title UI screen? Anybody has tried this before? I'm trying to port this demo I did in another engine, here you can see the fx.

https://youtu.be/b3aH9DDkvlc

Thank you very much for your time!

Nysalie
Posts: 29
Joined: 24 Jun 2020 20:28

Re: Rain fx on Title UI

Post by Nysalie »

I haven't explored Naninovel's FX much but you could try spawning the effect with a Naninovel script and use it in a PlayScript component attached to the TitleUI, then Play() it through the TitleUI's On Show() event in the inspector, essentially when the TitleUI is visible it will start playing the script automatically.
To despawn it you could do the same but for your title buttons, create another .nani script with a @despawn Rain line, attach a PlayScript component to each button, select the created .nani script, on the button OnClick() event reference the PlayScript component and trigger the Play() method.

You could perhaps do all this in a single custom TitleUI class with these implementations triggering by c#. The logic would still be quite similar I guess.

Elringus
admin
Posts: 521
Joined: 11 May 2020 18:03

Re: Rain fx on Title UI

Post by Elringus »

Just use a title script (assigned via scripts config menu) with

Code: Select all

@spawn Rain
calamarcia
Posts: 4
Joined: 15 Jul 2020 18:40

Re: Rain fx on Title UI

Post by calamarcia »

It's working! Thankyou :D

Post Reply