1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  3. We’re giving 2017.1 beta testers a chance to win t-shirts and a Nintendo Switch. Read more on the blog.
    Dismiss Notice
  4. We want to know how you learned Unity! Help us by taking this quick survey and have a chance at a $25 gift card
    Dismiss Notice
  5. Unity 5.6 is now released.
    Dismiss Notice
  6. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice

[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:
    883
    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:
    883
    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:
    883
    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:
    883
    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:
    894
    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:
    883
    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

    [​IMG]
     
    Ateam_Studios likes this.
  7. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    883
    The sale is finished