Page 1 of 1

Unity 5.3.7 compiler errors

Posted: Mon May 01, 2017 2:35 pm
by lupiks
On Unity 5.3.7 with Love/Hate 1.8.6 I have errors:
Assets/Pixel Crushers/LoveHate/Scripts/Core/Faction Members/Emotions/Editor/EmotionDefinitionDrawer.cs(46,23): error CS1502: The best overloaded method match for `UnityEditor.EditorGUI.MinMaxSlider(UnityEngine.GUIContent, UnityEngine.Rect, ref float, ref float, float, float)' has some invalid arguments
Assets/Pixel Crushers/LoveHate/Scripts/Core/Faction Members/Emotions/Editor/EmotionDefinitionDrawer.cs(46,23): error CS1503: Argument `#1' cannot convert `UnityEngine.Rect' expression to type `UnityEngine.GUIContent'
On Unity 5.5.1 is OK, but I need to fire L/H with 5.3.7. Is any earlier L/H version compatible with 5.3.7? Can I obtain it?

Re: Unity 5.3.7 compiler errors

Posted: Mon May 01, 2017 6:13 pm
by Tony Li
Sorry about that. Unity's Scripting Reference was incorrect about when the API changed for the MinMaxSlider method.

You can download a patch here: Love/Hate Customer Downloads

You'll just need to enter your Asset Store invoice number to access the page.

Re: Unity 5.3.7 compiler errors

Posted: Tue May 02, 2017 12:59 pm
by lupiks
Thank you for the quick reply. Now it works!

Re: Unity 5.3.7 compiler errors

Posted: Tue May 02, 2017 1:04 pm
by Tony Li
Happy to help!