UI Animator
  • Introduction
  • Tutorial
    • Basic Animation
    • Button & Loop Animation
    • Children Animations
    • SFX & Events
    • Organizing
  • Advanced
    • Use in C#
      • Show / Hide
      • Add Listener
Powered by GitBook
On this page
  1. Advanced
  2. Use in C#

Show / Hide

This will Show / Hide the gameOverUI when Start

using ZovaStudio.UI;
using UnityEngine;

public class UIAnimator_DemoScript : MonoBehaviour
{
    public UIAnimator gameOverUI;
    
    void Start()
    {
        gameOverUI.Show();
        //Or 
        gameOverUI.Hide();
    }
}

This will Show / Hide the gameOverUI Instantly (Without Animation) when Start

using ZovaStudio.UI;
using UnityEngine;

public class UIAnimator_DemoScript : MonoBehaviour
{
    public UIAnimator gameOverUI;
    
    void Start()
    {
        gameOverUI.InstantShow();
        //Or
        gameOverUI.InstantHide();
    }
}

This will Show / Hide the gameOverUI with Delay (Without Animation) when Start

using ZovaStudio.UI;
using UnityEngine;

public class UIAnimator_DemoScript : MonoBehaviour
{
    public UIAnimator gameOverUI;
    
    void Start()
    {
        gameOverUI.DelayedShow(1.5f); //Delay 1.5s
        //Or
        gameOverUI.DelayedHide(1.5f); //Delay 1.5s
    }
}
PreviousUse in C#NextAdd Listener

Last updated 2 months ago