Пример #1
0
        internal void ApplyDepth()
        {
            var depth  = WindowSystem.GetNextDepth(this.preferences.layer);
            var zDepth = WindowSystem.GetNextZDepth(this.preferences.layer);

            this.currentDepth  = depth;
            this.currentZDepth = zDepth;

            var tr = this.transform;

            this.workCamera.depth = depth;
            var pos = tr.position;

            pos.z       = zDepth;
            tr.position = pos;
        }