Tanoda
pb_RawImageInspector.cs
Go to the documentation of this file.
1using UnityEngine;
2using System.Collections;
3using System.Reflection;
4using UnityEngine.UI;
5
6namespace GILES.Interface
7{
8 [pb_TypeInspector(typeof(RawImage))]
9 public class pb_RawImageInspector : pb_TypeInspector
10 {
11
12 public Text title;
13 public RawImage ui_image;
14
15 void OnGUIChanged()
16 {
17 SetValue(ui_image);
18 }
19
20 public override void InitializeGUI()
21 {
22 title.text = GetName();
23 }
24 public void TextureChanged(string textureName)
25 {
26 OnGUIChanged();
27 SetValue(textureName);
28 }
29
30 protected override void OnUpdateGUI()
31 {
32 }
33 }
34}