Search Unity

[SALE] Screen Fader 1.6 - Screen transitions with effects in one line of code

Discussion in 'Assets and Asset Store' started by Patico, Oct 28, 2013.

  1. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    886
    Well, I've done it in 43 minutes : ) Nice.
    Website was updated, fixed and improved. There were added help for Screen Fader asset, made mobile phone friendly design, and now it built on trendy serverless architecture :)
    You're welcome to http://patico.pro
     
    Last edited: Oct 19, 2016
  2. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    886
    Howdy y'all!
    Changing type of fading during a fading sequence is not so obviouse as I thought before, but with custom actions it's possible to do. Few days ago I 've got a question how to do it, and now I'd like to share it with all yours.

    So, here is a small Tutorial: How To Change Fading During Fading : )

    First of all, you have to create an custom action class, that will be responsible for changing type of fader (see ChangeFadingTypeAction class below). This action class could be placed in separate file, and instance of this class can be used in different fading sequences.
    Then, when you want to change the type of fader after FadeIn a screen, just add StartAction method call and pass new instance of ChangeFadingTypeAction there. And, it's important, do not forget to call FadeOut(0) after it, ortherwise, previously used fader will left screen faded.

    As result, we have got a fading sequence consist of fading-in with default fader and fading-out with squared fader.

    See full code below:
    Code (CSharp):
    1. using System;
    2. using ScreenFaderComponents;
    3. using UnityEngine;
    4.  
    5. public class HowToChangeType : MonoBehaviour
    6. {
    7.     // Here is a button click handler
    8.     public void OnClick()
    9.     {
    10.         Fader.SetupAsDefaultFader();
    11.         Fader.Instance
    12.                 .FadeIn()
    13.                 .Pause()
    14.                 .StartAction(new ChangeFadingTypeAction())
    15.                 .FadeOut(0);
    16.     }
    17. }
    18.  
    19. // Action class.
    20. // It will change fading type to SquaredFader with 10 columns and FadeOut the screen after 1 sec Pause
    21. public class ChangeFadingTypeAction : ScreenFaderComponents.Actions.IAction
    22. {
    23.     public bool Completed { get; set; }
    24.     public void Execute()
    25.     {
    26.         Fader.SetupAsSquaredFader(15);
    27.         Fader.Instance.FadeIn(0).FadeOut();
    28.         this.Completed = true;
    29.     }
    30. }
    31.  
     
  3. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    886
    Hi there,
    Currently http://patico.pro (including email) isn't available for some time, due to domain transfering to another registrator. Sorry. Hope it will come back soon.
     
    Last edited: Nov 17, 2016
  4. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    886
    Hi there,
    http://patico.pro and my mail server came back, full support is available again.
    Thank you for your patience.
     
  5. Metron

    Metron

    Joined:
    Aug 24, 2009
    Posts:
    1,137
    Hi,

    I've tried your Fader which works quite well on the PC platform.

    Unfortunately, once I deploy my VR app to the Samsung S7/ Gear VR, the fading does not work anymore.

    Any idea why?

    Thanks for your help.
     
  6. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    886
    Hola Amigos!
    Today I noticed that Unity Team adds Screen Fader on its "Biggest Sale Ever"
    So it's good moment to get it a little bit cheaper

     
    ATeam_Production likes this.
  7. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    886
    The sale is finished
     
  8. isasaurio

    isasaurio

    Joined:
    Nov 13, 2016
    Posts:
    18
    Hello
    I am trying to make Fader on an object but using the "SquaredFader" but it does not work for me, the normal "Fader" comes out and not the square one.
    How can I solve that? I am applying it on a canvas.
    Thank you!!