Tanoda
pb_TypeInspectorAttribute.cs
Go to the documentation of this file.
1
using
UnityEngine
;
2
using
System;
3
4
namespace
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
}
GILES.Interface.pb_TypeInspectorAttribute
Definition:
pb_TypeInspectorAttribute.cs:12
GILES.Interface.pb_TypeInspectorAttribute.CanEditType
virtual bool CanEditType(Type rhs)
Definition:
pb_TypeInspectorAttribute.cs:27
GILES.Interface.pb_TypeInspectorAttribute.pb_TypeInspectorAttribute
pb_TypeInspectorAttribute(System.Type type)
Definition:
pb_TypeInspectorAttribute.cs:19
GILES.Interface.pb_TypeInspectorAttribute.type
Type type
The type for which this class is providing an editor.
Definition:
pb_TypeInspectorAttribute.cs:14
GILES.Interface
Definition:
pb_AutoStageItemEditor.cs:9
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
GILES
Code
Classes
GUI
pb_TypeInspectorAttribute.cs
Generated by
1.9.3