资源简介
代码片段和文件信息
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Collections;
using System.Collections.Generic;
[CustomEditor(typeof(Map))]
public class MapEditor : Editor
{
[HideInInspector]
public Map Map = null;
//关卡列表
List m_files = new List();
//当前编辑的关卡索引号
int m_selectIndex = -1;
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
if(Application.isPlaying)
{
//关联的Mono脚本组件
Map = target as Map;
EditorGUILayout.BeginHorizontal();
int currentIndex = EditorGUILayout.Popup(m_selectIndex GetNames(m_files));
if (currentIndex != m_selectIndex)
{
m_selectIndex = currentIndex;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3578 2016-10-26 21:19 Luobo\Assets\Editor\MapEditor.cs
..A..H. 262 2016-04-17 21:34 Luobo\Assets\Editor\MapEditor.cs.me
..A..H. 191 2016-03-06 11:05 Luobo\Assets\Editor.me
I.A.... 7532 2016-10-23 11:58 Luobo\Assets\Game\Resources\Prefabs\BallBullet.prefab
..A..H. 179 2016-10-22 21:10 Luobo\Assets\Game\Resources\Prefabs\BallBullet.prefab.me
I.A.... 7844 2016-10-23 10:40 Luobo\Assets\Game\Resources\Prefabs\Bottle.prefab
..A..H. 179 2016-08-06 18:02 Luobo\Assets\Game\Resources\Prefabs\Bottle.prefab.me
I.A.... 7492 2016-10-23 11:38 Luobo\Assets\Game\Resources\Prefabs\Fan.prefab
..A..H. 179 2016-10-23 11:00 Luobo\Assets\Game\Resources\Prefabs\Fan.prefab.me
I.A.... 7572 2016-10-23 11:56 Luobo\Assets\Game\Resources\Prefabs\FanBullet.prefab
..A..H. 179 2016-10-23 11:00 Luobo\Assets\Game\Resources\Prefabs\FanBullet.prefab.me
I.A.... 7500 2016-07-31 21:21 Luobo\Assets\Game\Resources\Prefabs\Luobo.prefab
..A..H. 179 2016-07-31 18:25 Luobo\Assets\Game\Resources\Prefabs\Luobo.prefab.me
I.A.... 8196 2016-08-07 17:03 Luobo\Assets\Game\Resources\Prefabs\Map.prefab
..A..H. 179 2016-05-08 20:05 Luobo\Assets\Game\Resources\Prefabs\Map.prefab.me
I.A.... 7604 2016-08-07 17:28 Luobo\Assets\Game\Resources\Prefabs\Monster0.prefab
..A..H. 179 2016-06-11 16:10 Luobo\Assets\Game\Resources\Prefabs\Monster0.prefab.me
I.A.... 7604 2016-08-07 17:28 Luobo\Assets\Game\Resources\Prefabs\Monster1.prefab
..A..H. 179 2016-06-11 16:11 Luobo\Assets\Game\Resources\Prefabs\Monster1.prefab.me
I.A.... 7604 2016-08-07 17:28 Luobo\Assets\Game\Resources\Prefabs\Monster2.prefab
..A..H. 179 2016-06-11 16:13 Luobo\Assets\Game\Resources\Prefabs\Monster2.prefab.me
I.A.... 7604 2016-08-07 17:28 Luobo\Assets\Game\Resources\Prefabs\Monster3.prefab
..A..H. 179 2016-06-11 16:14 Luobo\Assets\Game\Resources\Prefabs\Monster3.prefab.me
I.A.... 7604 2016-08-07 17:28 Luobo\Assets\Game\Resources\Prefabs\Monster4.prefab
..A..H. 179 2016-06-11 16:15 Luobo\Assets\Game\Resources\Prefabs\Monster4.prefab.me
I.A.... 7604 2016-08-07 17:28 Luobo\Assets\Game\Resources\Prefabs\Monster5.prefab
..A..H. 179 2016-06-11 16:16 Luobo\Assets\Game\Resources\Prefabs\Monster5.prefab.me
I.A.... 8700 2016-08-21 20:31 Luobo\Assets\Game\Resources\Prefabs\TowerCreator.prefab
..A..H. 179 2016-08-06 19:43 Luobo\Assets\Game\Resources\Prefabs\TowerCreator.prefab.me
I.A.... 8724 2016-08-21 20:31 Luobo\Assets\Game\Resources\Prefabs\TowerUpgrade.prefab
............此处省略2549个文件信息
相关资源
- unity3d2018插件NGUI
- unity3D外星风格射击游戏完整项目源码
- unity3D神启全套源码资源
- Unity3D脚本编程 使用C#语言开发跨平台
- unity带rpg战斗的消除游侠源码
- unity3d多人联机赛车游戏完整源码
- Unity 3D脚本编程——使用C#语言开发跨
- Unity3D 街机捕鱼游戏源码
- Learning C# Programming with Unity 3D 2014.pdf
- Unity3D《farm business》农场模拟经营游戏
- unity跑酷小游戏-横版
- 手把手教你用C#制作RPG游戏__罗培羽著
- unity 键盘鼠标控制第一人称对象
- Socket网络模块Unity c#
- Unity 3D《魔兽》动作类回合制游戏源码
- 《Unity5实战使用C#和Unity开发多平台游
- Unity5实战:使用C#和Unity开发多平台游
- Untiy官方资源Car主控脚本CarController全
- unity3D 根据UI适配摄像机Rect值,完美解
- unity 赛车race手游开发教程视频[MP4]
- Unity GameView相机移动和旋转脚本
- Unity Windows Speech
- Unity3D场景中画线脚本
- 《Unity5实战使用C#和Unity开发多平台游
- Unity5麦克风录音Record MicroPhone Audio 更
- Unity麦克风录音Record MicroPhone Audio
- Unity测距脚本
- 一套类moba的教学视频百度云地址
- Unity网络正常状态下优先加载网络图片
- Unity3D虚拟现实开发之标签跟随功能
评论
共有 条评论