Author Topic: Problem installing NGUI  (Read 14618 times)

Kartzan

  • Guest
Problem installing NGUI
« on: April 26, 2012, 04:22:51 PM »
So I just purchased NGUI from the asset store and imported the assets but there is no NGUI menu at the top... help?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem installing NGUI
« Reply #1 on: April 26, 2012, 04:28:57 PM »
That happens when there is a compile error. Check the log, what do you see?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem installing NGUI
« Reply #2 on: April 26, 2012, 04:29:32 PM »
Just to clarify by "log" I mean the console window.

Kartzan

  • Guest
Re: Problem installing NGUI
« Reply #3 on: April 26, 2012, 04:31:40 PM »
Ah, should've figured that was causing the problem. This is the error:


Assets/Plugins/NGUI/Examples/Scripts/Other/ShaderQuality.cs(20,48): error CS0117: `UnityEngine.QualitySettings' does not contain a definition for `GetQualityLevel'

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem installing NGUI
« Reply #4 on: April 26, 2012, 04:33:18 PM »
What version of Unity are you using? NGUI only supports 3.4.2 and 3.5.1+. 3.5.0 & beta versions are not supported.

Kartzan

  • Guest
Re: Problem installing NGUI
« Reply #5 on: April 26, 2012, 04:45:03 PM »
That must be it. I have 3.5.0b6 and I checked for updates and it says it was the latest version. I'll make sure to upgrade to 3.5.1. Thanks a ton for the help.

Kartzan

  • Guest
Re: Problem installing NGUI
« Reply #6 on: April 26, 2012, 05:28:33 PM »
So I did a fresh install of Unity to the latest version of 3.5.1 and it fixed the problem I was having. However I am now faced with another problem. When I create a New UI or any widget, it creates said element but with the following error:

  1. Instance of UIPanelInspector couldn't be created because there is no script with that name.

Where UPPanelInspector reflects whatever it is I'm trying to create. As a result when I select the item in the hierarchy the inspector refuses to show the transform and script elements claiming:

"Multi-object editing is not supported."

Sorry to bother you again.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem installing NGUI
« Reply #7 on: April 26, 2012, 05:35:36 PM »
UIPanelInspector is an editor script that comes with NGUI.

Kartzan

  • Guest
Re: Problem installing NGUI
« Reply #8 on: April 26, 2012, 05:43:02 PM »
I realize that and I see it in my project folder, that's just what it says when I create a new UI. I guess no one else has run into this problem.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem installing NGUI
« Reply #9 on: April 26, 2012, 05:43:43 PM »
Do you have more than one object selected?

Kartzan

  • Guest
Re: Problem installing NGUI
« Reply #10 on: April 26, 2012, 05:45:42 PM »
This happens when I have no objects selected when I create the original UI through the menu.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem installing NGUI
« Reply #11 on: April 26, 2012, 05:49:14 PM »
Weird, I've never seen this and I use both 3.4.2 and 3.5.1. Did everything install correctly? When you select a panel, do you see it like this?


Kartzan

  • Guest
Re: Problem installing NGUI
« Reply #12 on: April 26, 2012, 05:53:00 PM »
I don't see that. I just redownloaded and reimported NGUI and it is now giving a similar message but slightly different:

  1. Instance of NGUITransformInspector couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem installing NGUI
« Reply #13 on: April 26, 2012, 05:54:38 PM »
Where is your NGUITransformInspector located? It should be in NGUI/Scripts/Editor folder

Kartzan

  • Guest
Re: Problem installing NGUI
« Reply #14 on: April 26, 2012, 05:55:20 PM »
That's where it is. I'm creating a new project to see if that has any effect.