MaterialUI icon indicating copy to clipboard operation
MaterialUI copied to clipboard

ArgumentException: The thing you want to instantiate is null

Open djo90 opened this issue 8 years ago • 2 comments

I imported the whole package in my project. It works fine!

I can easily create ui elements by dragging them from the folder "ComponentPrefabs" to my hierarchy.

However, when I want to directly create an ui elements using right click mouse button in the hierarchy and selecting "Material UI", I always get the same error message : UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) (at C:/buildslave/unity/build/Runtime/Export/UnityEngineObject.cs:102) UnityEngine.Object.Instantiate (UnityEngine.Object original) (at C:/buildslave/unity/build/Runtime/Export/UnityEngineObject.cs:87) MaterialUI.MaterialUIEditorTools.CreateRoundButtonRaised () (at Assets/UI Google/Editor/MaterialUIEditorTools.cs:136) UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)

djo90 avatar Aug 11 '16 08:08 djo90

Hey :)

I think it's because you downloaded the zip and extracted it to your Assets folder with the name "MaterialUI-master". You should rename that to "MaterialUI" and everything should work just fine!

nah0y avatar Aug 11 '16 08:08 nah0y

That's not the case for me, the folder is properly name MaterialUI in the assets and I still get the error

Thodoris-Evangelakos avatar Jan 19 '21 11:01 Thodoris-Evangelakos