当前位置: 首页>>代码示例>>C#>>正文


C# VectorLine类代码示例

本文整理汇总了C#中VectorLine的典型用法代码示例。如果您正苦于以下问题:C# VectorLine类的具体用法?C# VectorLine怎么用?C# VectorLine使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


VectorLine类属于命名空间,在下文中一共展示了VectorLine类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: tutorialLine

	void tutorialLine (){
		helperLine = new VectorLine("tutorial_line", new List<Vector3>(), lineMaterial, 12.0f,LineType.Continuous);
		helperLine.points3.Add(Camera.main.ScreenToWorldPoint(rightHelper.transform.position));
		helperLine.points3.Add(Camera.main.ScreenToWorldPoint(rightMenu.transform.position));
		helperLine.textureScale = 1.0f;
		helperLine.Draw();
	}
开发者ID:kutan74,项目名称:Pull-ios,代码行数:7,代码来源:HelperTexts.cs

示例2: DisableLine

	IEnumerator DisableLine (VectorLine vectorLine, float time, bool remove) {
		yield return new WaitForSeconds(time);
		if (remove) {
			RemoveLine (vectorLine);
		}
		Vector.DestroyLine (ref vectorLine);
	}
开发者ID:dermisfit,项目名称:Paws,代码行数:7,代码来源:LineManager.cs

示例3: Start

    void Start()
    {
        GridSize = GlobalVars.GridSize;

        VectorLine.SetCamera3D(GameObject.Find(VectrosityCamera));
        LinePoints = new List<Vector3>();

        // Init Stuff

        //CreateGridLines();

        // Creating array of lines

        var myLine = new VectorLine(LineName, LinePoints, null, LineWidth);
        myLine.SetColor(Color.white);

        // Setting up the line

        myLine.Draw3D();
        
        GameObject.Find(LineName).transform.position = new Vector3(0.5f, GridHeight, 0.5f);
        // Position Camera with the Grid

        CreateClickableTile();

    }// Start
开发者ID:JohnMalmsteen,项目名称:mobile-apps-tower-defense,代码行数:26,代码来源:DrawGrid.cs

示例4: clearBorders

 public void clearBorders()
 {
     VectorLine.Destroy(ref border);
     border = null;
     VectorLine.Destroy(ref glow);
     glow = null;
 }
开发者ID:ChrisRenke,项目名称:Precursor,代码行数:7,代码来源:engineHexS.cs

示例5: draw3D

    private void draw3D() {            
            reinit();
                   
            point1 = new GameObject();
            point1.name = "point1-global";
            point1.transform.position = generateRandomPoint();
            point2 = new GameObject();
            point2.name = "point2-global";
            point2.transform.position = generateRandomPoint();

            point3 = new GameObject();
            point3.name = "point3-local";
            point3.transform.localPosition = point1.transform.position; 

            point4 = new GameObject();
            point4.name = "point4-local";
            point4.transform.localPosition = point2.transform.position;

            //List<Vector2> fakeLinePoints = new List<Vector2>(){pos2D1, pos2D1};
            List<Vector3> linePoints = new List<Vector3>(){point1.transform.position, point2.transform.position};
            
            //this._fakeVectorline = new VectorLine("Graph_FakeVectorLine", fakeLinePoints, 1.0f, LineType.Continuous, Joins.Weld);
            this._vectorline = new VectorLine("Graph_TestVectorLine", linePoints, 10.0f, LineType.Continuous, Joins.Weld);

            this._vectorline.color = Color.red;
            this._vectorline.layer = LayerMask.NameToLayer ("Non-Physic");
            
            //this._vectorline.Draw3D(); 
            this._vectorline.Draw3DAuto(); 
    }
开发者ID:CyberCRI,项目名称:Hero.Coli,代码行数:30,代码来源:TestVectorLine.cs

示例6: Awake

 protected override void Awake() {
     base.Awake();
     _line = new VectorLine(LineName, new Vector3[2], Color.ToUnityColor(), null, Width);
     //_line.vectorObject.transform.parent = _transform;
     UnityUtility.AttachChildToParent(_line.vectorObject, _transform.gameObject);
     _line.active = false;
 }
开发者ID:Maxii,项目名称:CodeEnv.Master,代码行数:7,代码来源:VelocityRay.cs

示例7: Curve

  public Curve(Molecule mol, Vector2 pos, Camera VectroCam = null)
  {
    _mol = mol;
    _label = mol.getName();
    _points = new LinkedList<Vector2>();
    //_pts = new Vector2[_maxPoints];
    _pts = new List<Vector2>();
    _minY = 0;
    _maxY = 0;
    _color = new Color(UnityEngine.Random.Range(0f, 1f), UnityEngine.Random.Range(0f, 1f), UnityEngine.Random.Range(0f, 1f));
    //_line = new VectorLine(mol.getName(), _pts, _color, null, 2.0f, LineType.Continuous, Joins.Weld);
    _line = new VectorLine(mol.getName(), _pts, 2.0f, LineType.Continuous, Joins.Weld);
    _line.color = _color;
    _isEnabled = true;
    _vectroCam = VectroCam;
//     _pos = pos;

//     _lines = new VectorLine[_maxPoints];
//     _linesTypes = new _linesTypes[_maxPoints - 1];

    VectorManager.useDraw3D = true;
    if (_vectroCam != null)
      //Vectrosity.VectorLine.SetCamera(_vectroCam);
      Vectrosity.VectorLine.SetCamera3D(_vectroCam);
    else
      Logger.Log("No Camera set for the Graph Window.", Logger.Level.ERROR);
  }
开发者ID:CyberCRI,项目名称:Hero.Coli,代码行数:27,代码来源:Curve.cs

示例8: initializeVectorLine

    public override void initializeVectorLine() {
        this._vectorline = new VectorLine("GraphNL_"+name, _pointsList, 1.0f, LineType.Continuous, Joins.Weld);
		this._vectorline.color = this.color;
		this._vectorline.layer = _panelInfos.layer;
		
        //resize();
		redraw();
    }
开发者ID:CyberCRI,项目名称:Hero.Coli,代码行数:8,代码来源:TestNewLine.cs

示例9: Setup

	public void Setup (VectorLine line) {
		if (!VectorManager.use) {
			Debug.LogError("The VectorManager script must be attached to an object in the scene");
			return;
		}
		VectorManager.use.VisibilitySetup (transform, line, out m_objectNumber);
		vectorLine = line;
	}
开发者ID:AlexanderUrbano,项目名称:shapewars,代码行数:8,代码来源:VisibilityControl.cs

示例10: Setup

	public void Setup (VectorLine line, bool makeBounds) {
		if (makeBounds) {
			VectorManager.SetupBoundsMesh (gameObject, line);
		}
		
		VectorManager.VisibilitySetup (transform, line, out m_objectNumber);
		vectorLine = line;
	}
开发者ID:dermisfit,项目名称:Paws,代码行数:8,代码来源:VisibilityControl.cs

示例11: drawOrange

	void drawOrange(){
		uiPath_1 = new VectorLine("dragLine_0", new List<Vector3>(), lineMaterial, 22.0f,LineType.Continuous);
		uiPath_1.textureScale = 1.0f;
		uiPath_1.points3.Add(Camera.main.ScreenToWorldPoint(orangeBox.transform.position));
		uiPath_1.points3.Add(Camera.main.ScreenToWorldPoint(edge_1.transform.position));
		uiPath_1.color = Color.black;
		uiPath_1.Draw();
	}
开发者ID:kutan74,项目名称:Pull-ios,代码行数:8,代码来源:BoxConnection.cs

示例12: PathDisplay

    public PathDisplay(List<VectorLine> visits, VectorLine line,
					List<Color> _color, List<float> _widths)
    {
        path_line = line;
        spot_list = visits;
        color_list = _color;
        width_list = _widths;
    }
开发者ID:ChrisRenke,项目名称:Precursor,代码行数:8,代码来源:pathDrawS.cs

示例13: InitLine

    public void InitLine(string name)
    {
        boneLine = new VectorLine(name, new Vector2[2] , null, 6f);
        boneLine.color = Color.green;

        boneLine.rectTransform.anchorMin.Set(0.5f, 0.5f);
        boneLine.rectTransform.anchorMax.Set(0.5f, 0.5f);
        boneLine.rectTransform.pivot.Set(0.5f, 0.5f);
    }
开发者ID:erikhansen418dev,项目名称:TrainingMotionApp,代码行数:9,代码来源:BonesRenderer.cs

示例14: Start

    void Start()
    {
        _vector = new VectorLine("beatcircle", new Vector3[10], Color.white, null, 1F, LineType.Continuous);
        _vector.MakeCircle(Vector3.zero, 0.01F);
        _vector.Draw3D();
        _vector.vectorObject.transform.parent = transform;

        gameObject.AddComponent<Scale>();
    }
开发者ID:rapina,项目名称:technicolor,代码行数:9,代码来源:BeatCircle.cs

示例15: Setup

	public void Setup (VectorLine line) {
		if (line.lineColors == null) {
			Debug.LogError ("In order to use Brightness.Fog, the line \"" + line.vectorObject.name + "\" must contain segment colors");
			return;
		}
		objectNumber = new RefInt(0);
		VectorManager.use.CheckDistanceSetup (transform, line, line.lineColors[0], objectNumber);
		VectorManager.use.SetDistanceColor (objectNumber.i);
	}
开发者ID:AlexanderUrbano,项目名称:shapewars,代码行数:9,代码来源:BrightnessControl.cs


注:本文中的VectorLine类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。