unity 有时候找路径太麻烦 写了一个自动生成脚本的工具 using System.Collections.Generic; using System.IO; using System.Text; using UnityEditor; using UnityEngine; public class Auto_BuildCode { private static string path_dic = Application.dataPath + "/Code"; private stat
using UnityEngine; public class NewBehaviourScript : MonoBehaviour { // Use this for initialization void Start () { gameObject.AddComponent<NewBehaviourScript>();//添加组件 Renderer render = gameObject.GetComponent<Renderer>();//查找组件 render.enable
//在unit菜单加入Component->b2Components->b2BodyComponent [AddComponentMenu("b2Components/b2BodyComponent")] public class b2BodyComponent : MonoBehaviour { }
本文为博主原创文章,欢迎转载,请保留出处:http://blog.csdn.net/andrewfan 3.1组件 Component 组件是Unity中最核心的一个概念,它是一切编程的基础.没有组件,也就没有了Unity编程. 打开一个新Unity工程,我们在Project面板中右键可以直接创建出一个C#脚本. 脚本的内容如下: using UnityEngine; using System.Collections; public class NewBehaviourScript : Mono
High Dynamic Range (HDR) 高动态范围 As well as Color Space, the ‘dynamic range’ of your camera needs to be configured. Essentially, this defines how extremely bright or dark colors are captured by scene cameras. HDR can be enabled from the camera compon
http://forum.exceedu.com/forum/forum.php?mod=viewthread&tid=34175 Oculus Unity Development Guide开发指南转载请保留原始地 http://t.cn/RAblKoh Oculus/GearVR开发者群 302294234 Welcometo the Unity Development GuideIntroduction简介Welcometo the Oculus Unity Developer Gui