Tanoda
pb_TypeInspectorAttribute.cs
Go to the documentation of this file.
1using UnityEngine;
2using System;
3
4namespace GILES.Interface
5{
10 [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
11 public class pb_TypeInspectorAttribute : Attribute
12 {
14 public Type type;
15
19 public pb_TypeInspectorAttribute(System.Type type)
20 {
21 this.type = type;
22 }
23
27 public virtual bool CanEditType(Type rhs)
28 {
29 return type.IsAssignableFrom(rhs);
30 }
31 }
32}
Type type
The type for which this class is providing an editor.