コード例 #1
0
        public void Setup(UIMeshLine Line, int index, Vector3 StaticOffset, Transform DynamicOffset, LinePointManager manager)
        {
            this.Line          = Line;
            this.Index         = index;
            this.StaticOffset  = StaticOffset;
            this.DynamicOffset = DynamicOffset;

            manager.RegisterUpdater(this);
        }
コード例 #2
0
        private void PortStartDraggingAction()
        {
            Deselect();

            tmpLine = GameObject.Instantiate <GameObject>(Templates.EdgeTemplate).GetComponent <UIMeshLine>();
            tmpLine.transform.SetParent(GraphRenderingPanel);

            (v as PortVisualisation).gameObject.AddComponent <LinePointUpdater>().Setup(tmpLine, 0, Vector3.zero, tmpLine.transform, Manager);

            tmpMousePosition = new GameObject("Mouse Position").transform;
            tmpMousePosition.gameObject.AddComponent <LinePointUpdater>().Setup(tmpLine, 1, Vector3.zero, tmpLine.transform, Manager);
            tmpMousePosition.SetParent(GraphRenderingPanel);
            tmpMousePosition.gameObject.AddComponent <MouseTracker>();
        }
コード例 #3
0
ファイル: DragUICompont.cs プロジェクト: zerojuls/drawLine
 void Start()
 {
     m_line = GetComponent <UIMeshLine>();
 }
コード例 #4
0
ファイル: Charts.cs プロジェクト: tgnemecek/sos
 //construtor da classe
 public LineSet(UIMeshLine mLine)
 {
     lineMesh   = mLine;
     pointsList = new List <ChartElement>();
 }
コード例 #5
0
ファイル: DragUICompont.cs プロジェクト: geniikw/drawLine
 void Start()
 {
     m_line = GetComponent<UIMeshLine>();
 }