Fixes and improvements
This commit is contained in:
@@ -698,6 +698,11 @@ namespace FlaxEditor.Scripting
|
||||
/// </summary>
|
||||
public static readonly ScriptType Void = new ScriptType(typeof(void));
|
||||
|
||||
/// <summary>
|
||||
/// A <see cref="ScriptType" /> that is System.Object.
|
||||
/// </summary>
|
||||
public static readonly ScriptType Object = new ScriptType(typeof(object));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the script as <see cref="System.Type"/>.
|
||||
/// </summary>
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace FlaxEditor.Scripting
|
||||
Utilities.Utils.InitDefaultValues(value);
|
||||
return value;
|
||||
}
|
||||
if (new ScriptType(typeof(object)).IsAssignableFrom(type))
|
||||
if (ScriptType.Object.IsAssignableFrom(type))
|
||||
return null;
|
||||
if (type.CanCreateInstance)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user