private void Awake()
        {
            UnityConsole console = GetComponent <UnityConsole>();

            uiTransform = console.GetUiTransform();
            if (_screenSpaceCanvas == null)
            {
                Canvas c = uiTransform.parent.GetComponent <Canvas>();
                if (c.renderMode == RenderMode.ScreenSpaceOverlay)
                {
                    _screenSpaceCanvas = c;
                }
                else
                {
                    _screenSpaceCanvas = FindCanvas(RenderMode.ScreenSpaceOverlay);
                }
            }
            if (_worldSpaceCanvas == null)
            {
                Canvas c = uiTransform.parent.GetComponent <Canvas>();
                if (c.renderMode == RenderMode.WorldSpace)
                {
                    _worldSpaceCanvas = c;
                }
                else
                {
                    _worldSpaceCanvas = FindCanvas(RenderMode.WorldSpace);
                }
            }
        }