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

浙公网安备 33010602011771号