일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Machine Learning
- c++
- 데이터 과학
- R
- 빅데이터
- openCV
- 빅 데이터
- nodeJS
- Deep learning
- 주일설교
- 인공지능
- MongoDB
- 빅 데이타
- Big Data
- Artificial Intelligence
- No SQL
- 김양재 목사님
- WebGL
- 빅데이타
- 김양재 목사
- probability
- 김양재
- 몽고디비
- node.js
- 확률
- 딥러닝
- 우리들교회
- 통계
- data science
- Statistics
Archives
- Today
- Total
Scientific Computing & Data Science
Script for an Object Clicked - an Alternative Method 본문
CG & Video Games/Unity 3D
Script for an Object Clicked - an Alternative Method
cinema4dr12 2013. 5. 26. 12:20using UnityEngine;
using System.Collections;
public class ObjectClicked2 : MonoBehaviour {
Ray myray = new Ray();
RaycastHit myhit = new RaycastHit();
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
myray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(myray, out myhit, 1000.0f) && Input.GetMouseButtonDown(0))
print(myhit.collider.name);
}
}
'CG & Video Games > Unity 3D' 카테고리의 다른 글
How to Play Animation Sequence in Unity (0) | 2013.05.26 |
---|---|
Script for an Object Touched on Mobile Devices (0) | 2013.05.26 |
Script for an Object Clicked (0) | 2013.05.26 |
Script for Mobile Touch Scree (0) | 2013.05.26 |
Fetching IP Address in C# (0) | 2013.05.26 |
Comments