yasirkula / UnityAssetUsageDetector

Find usages of the selected asset(s) and/or Object(s) in your Unity project, i.e. list the objects that refer to them
MIT License
1.73k stars 118 forks source link

error CS1502, CS1503 #1

Closed iakovosvo closed 7 years ago

iakovosvo commented 7 years ago

I get: error CS1502: The best overloaded method match for `UnityEditor.EditorGUILayout.Foldout(bool, string, UnityEngine.GUIStyle)' has some invalid arguments

and error CS1503: Argument #3' cannot convertbool' expression to type `UnityEngine.GUIStyle'

yasirkula commented 7 years ago

It is using this overload of the Foldout function:

public static bool Foldout(bool foldout, string content, bool toggleOnLabelClick, GUIStyle style = EditorStyles.foldout);

For your Unity version, you can probably fix it by making the following change:

showSubAssetsFoldout = EditorGUILayout.Foldout( showSubAssetsFoldout, "Include sub-assets in search:" );

May I ask your Unity version, though?

iakovosvo commented 7 years ago

Thanks, works fine now. I am using 5.3.2