资源简介
UGUI源码,通过研究UGUI源码。获得更多的UI修改灵感。
代码片段和文件信息
using UnityEngine;
using UnityEngine.EventSystems;
namespace UnityEditor.EventSystems
{
[CustomEditor(typeof(EventSystem) true)]
public class EventSystemEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
var eventSystem = target as EventSystem;
if (eventSystem == null)
return;
if (eventSystem.GetComponentseInputModule>() != null)
return;
// no input modules :(
if (GUILayout.Button(“Add Default Input Modules“))
{
Undo.AddComponent(eventSystem.gameobject);
}
}
public override bool HasPreviewGUI()
{
return Application.isPlaying;
}
private GUIstyle m_PreviewLabelstyle;
protected GUIstyle previewLabelstyle
{
get
{
if (m_PreviewLabelstyle == null)
{
m_PreviewLabelstyle = new GUIstyle(“PreOverlayLabel“)
{
richText = true
alignment = TextAnchor.UpperLeft
fontstyle = Fontstyle.Normal
};
}
return m_PreviewLabelstyle;
}
}
public override bool RequiresConstantRepaint()
{
return Application.isPlaying;
}
public override void OnPreviewGUI(Rect rect GUIstyle background)
{
var system = target as EventSystem;
if (system == null)
return;
GUI.Label(rect system.ToString() previewLabelstyle);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1230 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\.editorconfig
文件 421 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\.hgeol
文件 174 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\.hgignore
文件 2119 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\.hgtags
文件 119 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\.hg_archival.txt
文件 4419584 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\lib\UnityEditor.dll
文件 1468725 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\lib\UnityEditor.dll.mdb
文件 1430528 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\lib\UnityEngine.dll
文件 440523 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\lib\UnityEngine.dll.mdb
文件 1091 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\LICENSE
文件 82432 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\Output\Editor\UnityEditor.UI.dll
文件 175616 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\Output\Editor\UnityEditor.UI.pdb
文件 244224 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\Output\Standalone\UnityEngine.UI.dll
文件 759296 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\Output\Standalone\UnityEngine.UI.pdb
文件 247296 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\Output\UnityEngine.UI.dll
文件 775680 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\Output\UnityEngine.UI.pdb
文件 2379 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\README.md
文件 2456 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\UISystem.sln
..A..H. 87040 2018-03-19 10:27 UGUI源码\Unity-Technologies-ui-a72913523bde\UISystem.v12.suo
文件 4419584 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\bin\Debug\UnityEditor.dll
文件 82432 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\bin\Debug\UnityEditor.UI.dll
文件 175616 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\bin\Debug\UnityEditor.UI.pdb
文件 1430528 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\bin\Debug\UnityEngine.dll
文件 247296 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\bin\Debug\UnityEngine.UI.dll
文件 775680 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\bin\Debug\UnityEngine.UI.pdb
文件 1764 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\EventSystem\EventSystemEditor.cs
文件 4788 2016-12-06 15:01 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\EventSystem\EventTriggerEditor.cs
文件 6808 2018-03-19 09:54 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 1449 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\obj\Debug\UnityEditor.UI.csproj.FileListAbsolute.txt
文件 19933 2018-03-19 10:16 UGUI源码\Unity-Technologies-ui-a72913523bde\UnityEditor.UI\obj\Debug\UnityEditor.UI.csprojResolveAssemblyReference.cache
............此处省略199个文件信息
- 上一篇:运维相关规范制度
- 下一篇:离散数学理论分析题解
评论
共有 条评论