Page 1 of 1

Change animation transition

Posted: Thu Jan 12, 2023 10:49 pm
by Kamotachi
Hi!
I was wondering if is posible to change the transition animations (Leave Scene Transition and Enter Scene Transition) from script PixelCrushers.StandardSceneTransitionManager.

I would like to use the transition system that the dialogue system brings, but I need different transitions in different scenes of the game.

Is it possible?

Re: Change animation transition

Posted: Fri Jan 13, 2023 10:58 am
by Tony Li
Hi,

You can put a script in your scene that changes the transition manager in a Start() method or something like that. Example:

Code: Select all

void Start()
{
    var transitionManager = SaveSystem.sceneTransitionManager as StandardSceneTransitionManager;
    transitionManager.loadingSceneName = "Dragon Cave Loading Screen";
}
Or you can make a subclass of StandardSceneTransitionManager and override the LeaveScene() and/or EnterScene() coroutines.

Re: Change animation transition

Posted: Fri Jan 13, 2023 1:59 pm
by Kamotachi
I was going the wrong way! Many thanks for everything!
I find it incredible, I think that this is the best asset that exists! :mrgreen:

I'll go with:
var transitionManager = SaveSystem.sceneTransitionManager as StandardSceneTransitionManager;
transitionManager.leaveSceneTransition.animator = myNewAnimatorTransition;

Re: Change animation transition

Posted: Fri Jan 13, 2023 2:39 pm
by Tony Li
Thank you! Glad to help.