 | PropertyFieldGetPropertyType Method |
Returns the property type and the conversion functions to use when showing the value in the inspector and when
the value is written back to the property.
Namespace: Slash.Unity.Editor.Common.InspectorsAssembly: Slash.Unity.Editor.Common (in Slash.Unity.Editor.Common.dll) Version: 0.0.0.0
Syntaxpublic static bool GetPropertyType(
PropertyInfo info,
out SerializedPropertyType propertyType,
out Func<Object, Object> getConversionFunc,
out Func<Object, Object> setConversionFunc
)
Public Shared Function GetPropertyType (
info As PropertyInfo,
<OutAttribute> ByRef propertyType As SerializedPropertyType,
<OutAttribute> ByRef getConversionFunc As Func(Of Object, Object),
<OutAttribute> ByRef setConversionFunc As Func(Of Object, Object)
) As Boolean
public:
static bool GetPropertyType(
PropertyInfo^ info,
[OutAttribute] SerializedPropertyType% propertyType,
[OutAttribute] Func<Object^, Object^>^% getConversionFunc,
[OutAttribute] Func<Object^, Object^>^% setConversionFunc
)
static member GetPropertyType :
info : PropertyInfo *
propertyType : SerializedPropertyType byref *
getConversionFunc : Func<Object, Object> byref *
setConversionFunc : Func<Object, Object> byref -> bool
Parameters
- info
- Type: System.ReflectionPropertyInfo
Property info. - propertyType
- Type: SerializedPropertyType
Defines which inspector control to use to show the value. - getConversionFunc
- Type: SystemFuncObject, Object
Conversion function when getting the value to show in the inspector. - setConversionFunc
- Type: SystemFuncObject, Object
Conversion function when writing the value from the inspector back to the property.
Return Value
Type:
Boolean True if the property contains a value which can be visualized in the inspector; otherwise, false.
See Also