Exemplo n.º 1
0
        private void PositionWorkspaceAtZero()
        {
            var offset = -BackgroundPanel.RectTransform.localPosition;

            BackgroundPanel.RectTransform.localPosition = Vector3.zero;

            ChildAttachmentPoint.Translate(offset.PiecewiseMultiply(RectTransform.lossyScale));    // -= new Vector3( -BackgroundPadding, BackgroundPadding, 0.0f );

            ChainView.Instance.Camera.transform.position = new Vector3(ChainView.Instance.Camera.aspect, -1f) * ChainView.Instance.Camera.orthographicSize + new Vector3(0f, 1080f, -5f);

            BackgroundPanel.Color = DefaultBackgroundColor;
        }
Exemplo n.º 2
0
 public void TranslateVisiblePosition(Vector3 delta)
 {
     BackgroundPanel.RectTransform.transform.Translate(delta);
     ChildAttachmentPoint.Translate(delta);
 }