public Type GetReferenceGenericType(SerializedProperty property)
        {
            var referenceObject = SerializedPropertyHelper.GetParent(property);
            var valueFieldInfo  = referenceObject.GetType().GetField(
                CONSTANT_VALUE_PROPERTY_NAME,
                BindingFlags.Instance | BindingFlags.NonPublic);

            return(valueFieldInfo == null ? null : valueFieldInfo.FieldType);
        }
Exemplo n.º 2
0
        private object GetDebugValue(SerializedProperty property)
        {
            object parent     = SerializedPropertyHelper.GetParent(property);
            Type   parentType = parent.GetType();

            FieldInfo targetField = parentType.GetField("_debugValue", BindingFlags.Instance | BindingFlags.NonPublic);

            return(targetField.GetValue(parent));
        }
 public Type GetReferenceType(SerializedProperty property)
 {
     return(SerializedPropertyHelper.GetParent(property).GetType());
 }