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
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
- Crash on ModelImporter::ImportSkinnedMesh when disabling "Strip Bones" on a specific FBX model
- WebGL Development builds ignore the "Compression Format" setting when using "Gzip" compression
Add comment