We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CASE] 0. Declare Variable First uint value = 1;
The variable type is unit at this point.
Assign a value to it value = 10;
Now the type of 'value' is int (as engine evaluates 1 as int)
Variable type changed.
[Solution] Change AssignVariable method:
if (Variables.ContainsKey(varName) && Variables[varName] is StronglyTypedVariable stronglyTypedVariable) { ... } else { try { if (Variables[varName].GetType() == value.GetType()) { Variables[varName] = value; } else { Variables[varName] = Convert.ChangeType(value, Variables[varName].GetType()); } } catch (Exception exception) { throw new InvalidCastException(exception.Message, exception); } }
The text was updated successfully, but these errors were encountered:
codingseb
No branches or pull requests
[CASE]
0. Declare Variable First
uint value = 1;
The variable type is unit at this point.
Assign a value to it
value = 10;
Now the type of 'value' is int (as engine evaluates 1 as int)
Variable type changed.
[Solution]
Change AssignVariable method:
The text was updated successfully, but these errors were encountered: