일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 빅 데이타
- 주일설교
- node.js
- Deep learning
- 몽고디비
- 딥러닝
- 김양재 목사님
- 빅 데이터
- openCV
- 김양재
- 빅데이터
- Artificial Intelligence
- 우리들교회
- 통계
- MongoDB
- probability
- No SQL
- WebGL
- 빅데이타
- 데이터 과학
- 김양재 목사
- Statistics
- 인공지능
- 확률
- Big Data
- nodeJS
- data science
- c++
- Machine Learning
- R
Archives
- Today
- Total
Scientific Computing & Data Science
Script for an Object Clicked 본문
- A designated command executed when an object is clicked
- This example shows to let change an object's color when it is clicked
using UnityEngine;
using System.Collections;
public class ObjectClicked : MonoBehaviour {
public GUIText myText;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnMouseDown()
{
Activate();
}
void OnMouseEnter()
{
}
void OnMouseUp()
{
Deactivate();
}
void Activate()
{
renderer.material.color = Color.red;
}
void Deactivate()
{
renderer.material.color = Color.blue;
}
}
'CG & Video Games > Unity 3D' 카테고리의 다른 글
Script for an Object Touched on Mobile Devices (0) | 2013.05.26 |
---|---|
Script for an Object Clicked - an Alternative Method (0) | 2013.05.26 |
Script for Mobile Touch Scree (0) | 2013.05.26 |
Fetching IP Address in C# (0) | 2013.05.26 |
Sending Commands Using RPC (0) | 2013.05.26 |
Comments