Astra Child

How to show a UIContainer

Estimated reading: 1 minute 0 views


A UIContainer can be shown from code if you have a reference to it. Below is a code example on how to do it.

using Doozy.Runtime.UIManager.Containers;
using UnityEngine;
namespace Sandbox
    public class TestClass : MonoBehaviour
        public UIContainer TargetContainer;

        private void OnEnable()
            TargetContainer.Show();        //show container - ANIMATED


            TargetContainer.InstantShow(); //show container - INSTANT
}Code language: PHP (php)
Share this Doc
Scroll to Top