Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.2.0a3
2018.2.0a8
Issue ID
1024563
Regression
Yes
[UIElements] Implicit type casting not supported when implemented in generic class in 2018.2
[UIElements] Implicit type casting not supported when implemented in generic class in 2018.2
Steps to Reproduce:
1. Create a new project and import attached package.
2. Observe the following errors in the console:
The type `UnityEditor.Experimental.UIElements.IntegerField' cannot be used as type parameter `T' in the generic type or method `UIElementsExamples.E07_EditorControls.AddTestControl<T,U>(T, System.Func<U,string>)'. There is no implicit reference conversion from `UnityEditor.Experimental.UIElements.IntegerField' to `UnityEngine.Experimental.UIElements.INotifyValueChanged<long>'
Occuring On: 2018.2.0a3, 2018.2.0a8
Working fine On: 2018.2.0a2, 2018.1.0b13
Notes:
- Appears Always
- Appears on both OSX and Windows
Work Around:
For Example, AddTestControl<IntegerField, long>(new IntegerField(), (v) => v.ToString());
Replace 'IntegerField' with 'LongField'
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector window flickers when a selector is created using a Style Class List Section
- [iOS] "UnityBatchPlayerLoop()" causes a freeze in the iOS application when it is put to the background and brought back to the foreground
- "Perform Selected" of Shortcut Manager window does not perform the shortcut in some cases
- Crash on mono_get_hazardous_pointer when running Play Mode tests in a specific project
- [iOS] ‘확인’(Done) and '취소'(Cancel) text is displayed as '...' in the on-screen keyboard when the System preferred language is set to Korean
Add comment