I've got a GameObject called GUIMenu and a Canvas GameObject under it. If I create a Raised Dropdown right under the Canvas I get the following error:
MissingComponentException: There is no 'Canvas' attached to the "GUIMenu" game object, but a script is trying to access it.
You probably need to add a Canvas to the game object "GUIMenu". Or your script needs to check if the component is attached before using it.
UnityEngine.Component.GetComponent[RectTransform] () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineComponentBindings.gen.cs:48)
MaterialUI.CanvasExtension.Copy (UnityEngine.Canvas canvas, UnityEngine.GameObject gameObjectToAddTo) (at Assets/MaterialUI/Scripts/MaterialUtils/Extensions.cs:82)
MaterialUI.MaterialDropdown.Start () (at Assets/MaterialUI/Scripts/Components/MaterialDropdown.cs:669)
But there is a Canvas component on the Canvas GO. Any idea why this is happening?
I'm on MaterialUI 1.1.5, but with the Inputfield fix you sent me some time ago.
Raydekk