You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (type.GetGenericArguments().Length == 0)
{
var baseType = type.BaseType;
type = baseType.GetGenericArguments()[0];
}
else
{
type = type.GetGenericArguments()[0];
}
for fix it.
The text was updated successfully, but these errors were encountered:
This is more complex bug based on wrong BindingFlags passed into type.GetField.
Your solution with type.BaseType works only in this custom case. But If your have the same classes A and B but whithout any generic behaviour, but is still here:
public abstract class A
{
[OneLine]
public List<Vector2> List;
}
public class B : A
{
}
For example i have an abstract generic class A and inherited non-generic class B.
This case cause Index out of range exception for SerializedPropertyExtension in 104 line. You will replace
for
for fix it.
The text was updated successfully, but these errors were encountered: