Change animation transition

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Kamotachi
Posts: 44
Joined: Fri Nov 29, 2019 9:03 pm

Change animation transition

Post 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?
User avatar
Tony Li
Posts: 22140
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change animation transition

Post 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.
Kamotachi
Posts: 44
Joined: Fri Nov 29, 2019 9:03 pm

Re: Change animation transition

Post 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;
User avatar
Tony Li
Posts: 22140
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change animation transition

Post by Tony Li »

Thank you! Glad to help.
Post Reply