Search Issue Tracker
Fixed
Fixed in 1.7.7
Votes
0
Found in [Package]
1.7.6
Issue ID
UVSB-2105
Regression
No
Unity.VisualScripting.ConversionUtility.TryConvert<T> always returns false
Unity.VisualScripting.ConversionUtility.TryConvert<T>, even in the success branch, returns false. The method never seems to be able to return true. Note: the non-generic version, TryConvert(object value, ...) behaves correctly.
*Steps to Reproduce:*
1. Create a new script
2. Add the following code (roughly)
{code:java}
[UnityEditor.MenuItem("")]
public static void Test() {
bool success = Unity.VisualScripting.ConversionUtility.TryConvert<int>(3, out int result, guaranteed: true);
Debug.Log($"Expected: 3, true - Was: {result}, {success}");
}
{code}
3. Run the test from the menu.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Terrain Tree cast Realtime and Baked shadows simultaneously when "Mixed" Light mode and "Subtractive" Baked Illumination is used in Edit mode
- OnPostprocessAllAssets() is not called for a modified Prefab when another Asset is set Dirty in the same callback
- [Android] UIToolkit ClickEvent is fired when the device is rotated
- Compilation errors occur when "uintBitsToFloat(int)" gets used in OpenGLES
- User Reporting does not send reports when Managed Stripping Level is set to Low or higher
Add comment