随笔分类 -  Unity3D

摘要:Object.Instantiate Object.Instantiate public static Object Instantiate(Object original); public static Object Instantiate(Object original, Vector3 pos 阅读全文
posted @ 2016-07-02 10:41 CocomoNo1 阅读(178) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;public class LookForPath : MonoBehaviour{ public Transform[] TargeArr; public bool isBool=false; int i = 0; 阅读全文
posted @ 2016-07-02 09:57 CocomoNo1 阅读(305) 评论(0) 推荐(0)
摘要:1. 去除启动exe项目时出现的画面窗口 File ☞ Build Settings ☞Pc and Mac Standalone ☞ Player Settings ☞Resolution and Presentation ☞Display Resolution 选项改为 Dialog Disab 阅读全文
posted @ 2016-07-01 17:17 CocomoNo1 阅读(514) 评论(0) 推荐(0)
摘要:Event System 组成 系统生成的Event System里面主要有两个Components,分别是Event System和Standalone Input Module。其中Standalone Input Module是派生自BaseInputModule。 作用 1. EventSy 阅读全文
posted @ 2016-07-01 09:31 CocomoNo1 阅读(316) 评论(0) 推荐(0)
摘要:Transform 变换 Namespace: UnityEngine Inherits from: Component Namespace: UnityEngine Inherits from: Component Description 描述 Position, rotation and sca 阅读全文
posted @ 2016-07-01 09:00 CocomoNo1 阅读(272) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;using UnityEngine.UI; public class MouseFollow : MonoBehaviour { Canvas canvas;//跟随范围为整个画布 RectTransform re 阅读全文
posted @ 2016-06-30 17:20 CocomoNo1 阅读(273) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections; public class LookForPath : MonoBehaviour{ public Transform target;//开始位置(移动对象的位置) public Transform[] Targe 阅读全文
posted @ 2016-06-30 11:33 CocomoNo1 阅读(170) 评论(0) 推荐(0)
摘要:假设两个分别为A和B,分别挂有脚本AScript和BScript,现在想让BScript调用(A的脚本)AScript中的FollowMe()函数。 using UnityEngine;using System.Collections; public class BScript : MonoBeha 阅读全文
posted @ 2016-06-30 10:47 CocomoNo1 阅读(8919) 评论(0) 推荐(0)