mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-26 10:03:10 +08:00
fix ParameterHandler parsing Types
This commit is contained in:
@ -97,6 +97,9 @@ namespace UnityExplorer.UI.Widgets
|
||||
{
|
||||
var input = this.inputField.Text;
|
||||
|
||||
if (typeof(Type).IsAssignableFrom(paramType))
|
||||
return ReflectionUtility.GetTypeByName(input);
|
||||
|
||||
if (paramType == typeof(string))
|
||||
return input;
|
||||
|
||||
|
Reference in New Issue
Block a user