Add option to change Visual Script parameter type

This commit is contained in:
Wojciech Figat
2021-11-16 20:44:18 +01:00
parent e249fda1f2
commit d33829f5eb
2 changed files with 152 additions and 0 deletions

View File

@@ -1106,6 +1106,17 @@ namespace FlaxEditor.Scripting
throw new NotImplementedException("TODO: Script.Type.GetGenericTypeDefinition for custom types");
}
/// <summary>
/// Returns a type object that represents an array of the current type.
/// </summary>
/// <returns>A type object representing a one-dimensional array of the current type.</returns>
public ScriptType MakeArrayType()
{
if (_managed != null)
return new ScriptType(_managed.MakeArrayType());
throw new NotImplementedException("TODO: Script.Type.MakeArrayType for custom types");
}
/// <summary>
/// Searches for the specified members of the specified member type, using the specified binding constraints.
/// </summary>