forked from hunterzonewu/unity-decompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextEditor.cs
More file actions
41 lines (37 loc) · 1.27 KB
/
Copy pathTextEditor.cs
File metadata and controls
41 lines (37 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Decompiled with JetBrains decompiler
// Type: UnityEditor.UI.TextEditor
// Assembly: UnityEditor.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 02C415E4-CA90-4A5B-B8EB-A397F164EE08
// Assembly location: C:\Users\Blake\shadow-0\Library\UnityAssemblies\UnityEditor.UI.dll
using UnityEngine.UI;
namespace UnityEditor.UI
{
/// <summary>
/// <para>Custom Editor for the Text Component.</para>
/// </summary>
[CanEditMultipleObjects]
[CustomEditor(typeof (Text), true)]
public class TextEditor : GraphicEditor
{
private SerializedProperty m_Text;
private SerializedProperty m_FontData;
protected override void OnEnable()
{
base.OnEnable();
this.m_Text = this.serializedObject.FindProperty("m_Text");
this.m_FontData = this.serializedObject.FindProperty("m_FontData");
}
/// <summary>
/// <para>See Editor.OnInspectorGUI.</para>
/// </summary>
public override void OnInspectorGUI()
{
this.serializedObject.Update();
EditorGUILayout.PropertyField(this.m_Text);
EditorGUILayout.PropertyField(this.m_FontData);
this.AppearanceControlsGUI();
this.RaycastControlsGUI();
this.serializedObject.ApplyModifiedProperties();
}
}
}