Add Arrays to Visual Scripting
This commit is contained in:
@@ -200,6 +200,8 @@ namespace FlaxEditor.Surface.Elements
|
||||
return "Vector";
|
||||
if ((hint & ConnectionsHint.Scalar) == ConnectionsHint.Scalar)
|
||||
return "Scalar";
|
||||
if ((hint & ConnectionsHint.Array) == ConnectionsHint.Array)
|
||||
return "Array";
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -236,6 +238,11 @@ namespace FlaxEditor.Surface.Elements
|
||||
// Can
|
||||
return true;
|
||||
}
|
||||
if ((connectionsHints & ConnectionsHint.Array) == ConnectionsHint.Array && type.IsArray)
|
||||
{
|
||||
// Can
|
||||
return true;
|
||||
}
|
||||
if ((connectionsHints & ConnectionsHint.Vector) == ConnectionsHint.Vector)
|
||||
{
|
||||
var t = type.Type;
|
||||
|
||||
Reference in New Issue
Block a user