일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 몽고디비
- Artificial Intelligence
- probability
- 인공지능
- 빅데이터
- 주일설교
- 김양재 목사
- MongoDB
- Statistics
- 확률
- Deep learning
- 빅데이타
- nodeJS
- Machine Learning
- R
- Big Data
- 김양재 목사님
- node.js
- No SQL
- 통계
- 데이터 과학
- data science
- WebGL
- 우리들교회
- c++
- openCV
- 빅 데이터
- 딥러닝
- 김양재
- 빅 데이타
Archives
- Today
- Total
Scientific Computing & Data Science
Line Rendering Script 본문
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | using UnityEngine; using System.Collections; public class Line_Animation : MonoBehaviour { public GameObject Target1; public GameObject Target2; public Material mtl; public Color lcolor; // Use this for initialization void Awake() { this .renderer.material = mtl; } void Start () { LineRenderer raspberry = gameObject.AddComponent<LineRenderer>(); raspberry.SetWidth(0.05f,0.05f); raspberry.SetVertexCount(2); raspberry.SetColors(lcolor,lcolor); raspberry.material = mtl; } // Update is called once per frame void Update () { LineRenderer raspberry = GetComponent<LineRenderer>(); raspberry.SetPosition(0,Target1.transform.position); raspberry.SetPosition(1,Target2.transform.positionf); } } |
'CG & Video Games > Unity 3D' 카테고리의 다른 글
VertextLit Shader (0) | 2013.05.26 |
---|---|
Display Normal Shader (0) | 2013.05.26 |
Rendering with Different Cameras (0) | 2013.05.26 |
Movie Texture Script (0) | 2013.05.26 |
Random Number Generation in C# (0) | 2013.05.25 |