Skip to content

Commit

Permalink
Bug fix for UnityEvent fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ChemiKhazi committed Sep 29, 2017
1 parent f5efa40 commit 409544e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Editor/SerializedPropExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ private static object GetValue(object source, string name)
private static object GetValue(object source, string name, int index)
{
var enumerable = GetValue(source, name) as IEnumerable;
if (enumerable == null)
return null;
var enm = enumerable.GetEnumerator();
while (index-- >= 0)
enm.MoveNext();
Expand Down

0 comments on commit 409544e

Please sign in to comment.