private static System.Reflection.FieldInfo GetFieldInfoFromProperty(SerializedProperty property, out System.Type type) { System.Type typeFromProperty = ScriptAttributeUtility.GetScriptTypeFromProperty(property); if (typeFromProperty != null) { return(ScriptAttributeUtility.GetFieldInfoFromPropertyPath(typeFromProperty, property.propertyPath, out type)); } type = (System.Type)null; return((System.Reflection.FieldInfo)null); }
private static FieldInfo GetFieldInfoFromProperty(SerializedProperty property, out Type type) { Type scriptTypeFromProperty = ScriptAttributeUtility.GetScriptTypeFromProperty(property); if (scriptTypeFromProperty == null) { type = null; return(null); } return(ScriptAttributeUtility.GetFieldInfoFromPropertyPath(scriptTypeFromProperty, property.propertyPath, out type)); }
internal static FieldInfo GetFieldInfoFromProperty(SerializedProperty property, out Type type) { Type scriptTypeFromProperty = ScriptAttributeUtility.GetScriptTypeFromProperty(property); FieldInfo result; if (scriptTypeFromProperty == null) { type = null; result = null; } else { result = ScriptAttributeUtility.GetFieldInfoFromPropertyPath(scriptTypeFromProperty, property.propertyPath, out type); } return(result); }