资源简介
unity3d 写的一个跑酷的小游戏 解压可以运行 对于进阶的朋友是个不错的资源
对新手也有很多的借鉴意义
代码片段和文件信息
//-----------------------------------------------------------------
// SpriteTimelineEditor v1.0 (1-25-2010)
// Copyright 2009 Brady Wright and Above and Beyond Software
// All rights reserved
//-----------------------------------------------------------------
// Uncomment to display texture names in the timeline:
// #define SHOW_TEX_NAMES
using UnityEditor;
using UnityEngine;
using System.Collections;
public class TextureAnimSettingsTracker
{
string name;
int loopCycles;
bool loopReverse;
float framerate;
public bool Synch(TextureAnim t)
{
bool changed = false;
if (name != t.name)
changed = true;
if (loopCycles != t.loopCycles)
changed = true;
if (loopReverse != t.loopReverse)
changed = true;
if (framerate != t.framerate)
changed = true;
name = t.name;
loopCycles = t.loopCycles;
loopReverse = t.loopReverse;
framerate = t.framerate;
return changed;
}
}
public class SpriteTimelineEditor : EditorWindow
{
static SpriteTimelineEditor instance;
static SpriteTimeline timelineInstance;
bool closing = false;
Rect wndRect;
[UnityEditor.MenuItem(“Window/Sprite Timeline &t“)]
static public void ShowEditor()
{
#if UNITY_IPHONE && !(UNITY_3_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9)
if (instance != null)
{
instance.Show(true);
return;
}
instance = new SpriteTimelineEditor();
if(timelineInstance == null)
timelineInstance = new SpriteTimeline();
// Get the selected object and see if it has a sprite:
timelineInstance.Editor = instance;
timelineInstance.SetupSelection();
instance.position = new Rect(200 200 700 400);
timelineInstance.position = instance.position;
timelineInstance.SetupRects();
instance.autoRepaintOnSceneChange = true;
instance.Show(true);
#else
if (instance != null)
{
instance.ShowUtility();
return;
}
instance = (SpriteTimelineEditor)EditorWindow.GetWindow(typeof(SpriteTimelineEditor) false “Sprite Timeline“);
if (timelineInstance == null)
timelineInstance = new SpriteTimeline();
timelineInstance.Editor = instance;
/*
timelineInstance.SetupSelection();
timelineInstance.SetupRects();
*/
timelineInstance.position = instance.position;
instance.ShowUtility();
#endif
instance.wndRect = instance.position;
}
public void OnDisable()
{
#if UNITY_IPHONE && !(UNITY_3_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9)
this.Close();
#endif
}
public void OnCloseWindow()
{
#if UNITY_IPHONE && !(UNITY_3_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9)
instance = null;
closing = true;
DestroyImmediate(this);
#endif
}
// Relay events to our timeline editor if availab
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-02-27 17:34 Pao\
文件 5843 2013-01-16 10:50 Pao\Assembly-CSharp-Editor-vs.csproj
文件 5896 2013-01-16 10:50 Pao\Assembly-CSharp-Editor.csproj
文件 58827 2013-01-15 16:08 Pao\Assembly-CSharp-Editor.pidb
文件 7324 2013-01-16 10:50 Pao\Assembly-CSharp-firstpass-vs.csproj
文件 7324 2013-01-16 10:50 Pao\Assembly-CSharp-firstpass.csproj
文件 650294 2013-01-15 16:08 Pao\Assembly-CSharp-firstpass.pidb
文件 3517 2013-01-16 23:07 Pao\Assembly-Unitysc
文件 15445 2013-02-27 17:34 Pao\Assembly-Unitysc
文件 3511 2013-01-16 23:07 Pao\Assembly-Unitysc
目录 0 2013-01-15 16:04 Pao\Assets\
目录 0 2013-02-27 17:33 Pao\Assets\Code\
文件 4256 2013-01-16 23:00 Pao\Assets\Code\sc
文件 216 2013-01-15 18:49 Pao\Assets\Code\sc
文件 294 2013-01-16 23:21 Pao\Assets\Code\sc
文件 770 2013-02-27 17:33 Pao\Assets\Code\sc
文件 216 2013-01-15 19:14 Pao\Assets\Code\sc
文件 1682 2013-01-16 23:29 Pao\Assets\Code\sc
文件 1683 2013-01-16 23:22 Pao\Assets\Code\sc
目录 0 2013-01-15 15:22 Pao\Assets\Editor\
目录 0 2013-01-15 15:22 Pao\Assets\Editor\AnBSoft\
目录 0 2013-01-15 15:22 Pao\Assets\Editor\AnBSoft\Editors\
文件 44625 2011-05-14 07:04 Pao\Assets\Editor\AnBSoft\Editors\SpriteTimelineEditor.cs
文件 24693 2011-05-26 02:38 Pao\Assets\Editor\AnBSoft\Editors\UICtlEditor.cs
文件 13501 2011-05-26 02:39 Pao\Assets\Editor\AnBSoft\Editors\UIPanelEditor.cs
目录 0 2013-01-15 15:22 Pao\Assets\Editor\AnBSoft\Inspectors\
文件 595 2011-01-23 03:39 Pao\Assets\Editor\AnBSoft\Inspectors\UIActionBtnInspector.cs
文件 628 2011-01-23 03:39 Pao\Assets\Editor\AnBSoft\Inspectors\UIBistateInteractivePanelInspector.cs
文件 605 2011-01-23 03:39 Pao\Assets\Editor\AnBSoft\Inspectors\UIBtnChangePanelInspector.cs
文件 601 2011-01-23 03:39 Pao\Assets\Editor\AnBSoft\Inspectors\UIBtnLoadSceneInspector.cs
文件 589 2011-01-23 03:39 Pao\Assets\Editor\AnBSoft\Inspectors\UIBtnWWWInspector.cs
............此处省略1937个文件信息
相关资源
- 学习Altium designer—33个经典电路制作,
- 完整的电力系统项目
- Lucene实战第2版源代码
- Unity 2D 游戏开发教程
- 80例上手Delphi7教程完全版源代码
- Unity3D网络游戏实战
- unity3d联网斗地主服务端+客户端
- 常见图像分割算法实现源代码
- Obi Fluidv4.0.1+Obi Cloth 4.0.1
- 3D Infinite Runner Toolkit
- 时间触发嵌入式系统设计模式---文档
- 可以直接使用的百度文字识别源代码
- 韩顺平3个项目源代码.zip
- GPS应用程序设计书+源代码
- World Wind 1.4源代码
- 精品糖果三消游戏源码 cocos2dx3.10
- tensorflow实战+实战Google深度学习框架
- 高速公路交通流三维仿真平台技术研
- 电能量在线监测系统(源代码)
- 计算机图形学习题答案源代码.rar
- SSH图书管理系统源代码家各种开发文
- XCP_Demo_源代码
- 交换机源代码
- 《基于Altera FPGA CPLD 的电子系统设计及
- ecos 3.0 源代码
- untiy3d 简单td防守+射击游戏
- Unity3D树木、地皮贴图
- 用Unity3d做一个魔方
- Unity 2018 Shaders and Effects Cookbook 3rd Ed
- 剑网3服务器源代码全
评论
共有 条评论