mirror of
https://github.com/lllyasviel/YGOProUnity_V2.git
synced 2026-10-20 07:59:06 +08:00
35 lines
964 B
C#
35 lines
964 B
C#
//----------------------------------------------
|
|
// NGUI: Next-Gen UI kit
|
|
// Copyright © 2011-2015 Tasharen Entertainment
|
|
//----------------------------------------------
|
|
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
/// <summary>
|
|
/// Inspector class used to edit UISpriteAnimations.
|
|
/// </summary>
|
|
|
|
[CanEditMultipleObjects]
|
|
[CustomEditor(typeof(UISpriteAnimation))]
|
|
public class UISpriteAnimationInspector : Editor
|
|
{
|
|
/// <summary>
|
|
/// Draw the inspector widget.
|
|
/// </summary>
|
|
|
|
public override void OnInspectorGUI ()
|
|
{
|
|
GUILayout.Space(3f);
|
|
NGUIEditorTools.SetLabelWidth(80f);
|
|
serializedObject.Update();
|
|
|
|
NGUIEditorTools.DrawProperty("Framerate", serializedObject, "mFPS");
|
|
NGUIEditorTools.DrawProperty("Name Prefix", serializedObject, "mPrefix");
|
|
NGUIEditorTools.DrawProperty("Loop", serializedObject, "mLoop");
|
|
NGUIEditorTools.DrawProperty("Pixel Snap", serializedObject, "mSnap");
|
|
|
|
serializedObject.ApplyModifiedProperties();
|
|
}
|
|
}
|