Fix using get_Control getter method from UIControl in Visual Script

This commit is contained in:
Wojtek Figat
2021-02-14 15:53:08 +01:00
parent ed1a3c2964
commit 6bdc31df5a

View File

@@ -532,6 +532,8 @@ namespace FlaxEditor.Utilities
break;
case VariantType.Enum:
case VariantType.Structure:
case VariantType.ManagedObject:
case VariantType.Typename:
stream.Write(int.MaxValue);
stream.WriteStrAnsi(type.FullName, 77);
break;
@@ -761,7 +763,7 @@ namespace FlaxEditor.Utilities
data[i] = (byte)(c ^ 77);
}
var typeName = System.Text.Encoding.ASCII.GetString(data);
return TypeUtils.GetType(typeName).Type;
return TypeUtils.GetManagedType(typeName);
}
if (typeNameLength > 0)
{
@@ -773,7 +775,7 @@ namespace FlaxEditor.Utilities
data[i] = (char)(c ^ 77);
}
var typeName = new string(data);
return TypeUtils.GetType(typeName).Type;
return TypeUtils.GetManagedType(typeName);
}
switch (variantType)
{
@@ -826,7 +828,7 @@ namespace FlaxEditor.Utilities
data[i] = (byte)(c ^ 77);
}
var typeName = System.Text.Encoding.ASCII.GetString(data);
type = TypeUtils.GetType(typeName).Type;
type = TypeUtils.GetManagedType(typeName);
}
else if (typeNameLength > 0)
{
@@ -838,7 +840,7 @@ namespace FlaxEditor.Utilities
data[i] = (char)(c ^ 77);
}
var typeName = new string(data);
type = TypeUtils.GetType(typeName).Type;
type = TypeUtils.GetManagedType(typeName);
}
switch (variantType)
{