[Unity2D Keynote] 1.File Format Accepted by Unity 2.By double-clicking an object in Hierachy, you not only select the object in the scene but center the viewport on it for a better view. 3.You could select the cube and press Ctrl+D on the keyboard to
写了一个类似魔兽小地图功能的控件. 比如你有一个可以放大缩小的scrollView.会在里面进行一些放大缩小,点击里面的按钮呀,等操作. 这个小地图控件.就会和你的大scrollView同步.并有缩略图和你当前视口的位置.就像游戏里那样. 看图. SmallMapView.h // // SmallMapView.h // littleMapView // // Created by fuqiang on 13-7-2. // Copyright (c) 2013年 fuqiang. All r
制作小地图首先需要两个贴图:第一个贴图是小地图的背景贴图,它应当是从y轴向下俯视截取的贴图:第二个贴图是主角位置贴图,它应当是在背景贴图之上的小型矩形. 1 using UnityEngine; 2 using System.Collections; 3 4 public class smallMap : MonoBehaviour { 5 // Use this for initialization 6 GameObject plane; //大地图地形对象 7 GameObject cube