1
\$\begingroup\$

I cloned my Unity project on other system. Elements attached to canvas(a prefab) are disabled and when I select an element in inspector, for example Background (shown in screenshot) it is showing weird stuff.

enter image description here

enter image description here

I suspect that some file has not been pushed that contains data related to assets, since inspector is showing improper values. For example; Rect Transform showing instance ID instead of showing X, Y value (please refer screenshot).

Please suggest what can be missing in project that hasn't been pushed or loaded properly by Unity? Thanks.

Note: I am using Unity v5.0.1. Cloned project made in Windows onto my mac system.

EDIT

I upgraded unity. Now elements are similarly disabled in prefab in my original project with normal inspector mode, displaying correct components and values. See screenshot below. No element is rendering and canvas is showing empty like the first screenshot.

enter image description here

\$\endgroup\$
  • \$\begingroup\$ well blue in the inspector means prefab. Perhaps you did not clone some prefabs or something. Try exporting them as a package and then importing the package to the new project \$\endgroup\$ – Uri Popov Aug 23 '16 at 12:44
  • \$\begingroup\$ I think Uri is right here, your prefabs are possibly missing or corrupted. \$\endgroup\$ – jgallant Aug 23 '16 at 12:47
  • \$\begingroup\$ Yes you are right. It is prefab. I checked original prefab. It has elements disabled too, but inspector is displaying normal values. Is there any proper way required to use prefabs? Why can it be corrupted? \$\endgroup\$ – NightFury Aug 23 '16 at 12:50
  • 1
    \$\begingroup\$ Prefabs tend to do that. From your original project select the prefab. Then right click and select export package. Make sure the include dependencies checkmark is selected. Then export the package and import it to the new project and your prefabs should be fine and dandy. \$\endgroup\$ – Uri Popov Aug 23 '16 at 12:52
  • \$\begingroup\$ Okay thanks. I will try your suggestion in few hours after getting back to home. \$\endgroup\$ – NightFury Aug 23 '16 at 13:01
1
\$\begingroup\$

I watched starting minutes of this video. And understand why elements were disabled default. It was because default platform in Build Settings selected was Web Player instead of some mobile platform. So I switched to Android Platform and all the child elements were enabled again. Please also make sure that Mobile Input is enable in Menu.

enter image description here

\$\endgroup\$
0
\$\begingroup\$

If your prefab icons are white boxes it means they're corrupted. The best option is to retrieve and older working copy from your version control system.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.