unity3的第三天01
2016-07-13 13:53
555 查看
材质颜色设定
鼠标点击事件
#pragma strict function Start () { GetComponent.<Renderer>().material.color = Color.black; } function Update () { }
鼠标点击事件
using UnityEngine; using System.Collections; using UnityEditor; public class test3 : MonoBehaviour { public Transform prefab; void OnMouseDown() { for (int i = 0; i < 10; i++) { Instantiate (prefab, new Vector3 ((i * 2.0F) + (-2.5F), 4.62F, -12.81F), Quaternion.identity); } } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
相关文章推荐
- 【风宇冲】Unity3D教程宝典之Shader篇:目录
- 【风宇冲】Unity3D教程宝典之Shader篇:第一讲Shader总篇
- unity3d小插件之查找结点路径并自动写入到剪贴板
- 数学基础知识之Sin、cos画圆
- unity 多重纹理 绘制 shader处理
- Unity5.0 EventSystem事件系统的详细说明
- 记一次基于Unity的Profiler性能分析
- 【Unity3D自学记录】鼠标拖拽物体移动
- 【Unity3D自学记录】制作VR视频播放器
- 【Unity3D自学记录】Unity5 之 standard参数
- Unity3d如何制作声音开关按钮
- KEngine:Unity3D资源的打包、加载、调试监控
- unity 3d
- 我的第一个工程-一个台球游戏3-介绍篇一:场景模型的搭建
- unity3d 第二天
- Unity触摸控制旋转缩放
- 【Unity Shaders】学习笔记——SurfaceShader(十一)光照模型
- 【Unity技巧】四元数(Quaternion)和旋转
- Unity位置动画
- Unity模型与动画思维导图1.0