InvexGames / MaterialUI

MaterialUI is a UI kit for Unity that follows Google's official material design guidelines.
http://invexgames.com/materialUI.html
Other
771 stars 199 forks source link

ArgumentException: The thing you want to instantiate is null #57

Open djo90 opened 8 years ago

djo90 commented 8 years ago

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)

nah0y commented 8 years ago

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!

Thodoris-Evangelakos commented 3 years ago

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