Author Topic: Can't see any elements  (Read 2486 times)

TwoSheds

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Can't see any elements
« on: July 15, 2014, 02:47:23 AM »
Hello,
I just started using NGUI, and when I do NGUI->Create->2D UI I see a pink rectangle in my scene view and nothing in the game view (unlike in the tutorial where he seems to have some background). Then, when I drag prefabs onto the scene, I see only wireframes in the SceneView and nothing in the Game view.  It's as though the textures are somehow invisible, because when I turn on gizmos in the game view, I see the wireframes just like in the SceneView.

What might be going wrong?
\

Fireball14

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 23
    • View Profile
Re: Can't see any elements
« Reply #1 on: July 15, 2014, 10:39:25 AM »
Atlas shader / sprite shader problem. Dig in that direction.
Check your shader on atlas material.

If its not too mach trouble, recreate atlas.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't see any elements
« Reply #2 on: July 15, 2014, 09:59:17 PM »
Is your camera set to view the layer used by your UI elements? Try it in a brand-new project. Also check your "Layers" drop-down in the top-right corner of Unity.

TwoSheds

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Can't see any elements
« Reply #3 on: July 16, 2014, 04:07:35 AM »
Hey there,

The stuff regarding the layers is not anything they mentioned in the early parts of the tutorial. Is there somewhere I can get a TOTAL from the ground-up description of what to do? 

I've tried several times from a new project but always get the same result.

The steps I follow are:

- I create a new Unity project (I do NOT delete the original camera...should I?)
- I drag the NGUI folder into my Assets folder
- I go to the menu bar and select NGUI->Create->2D UI
- I set my Scene window to 2D, textured mode, and so can see the camera provided by the 2D UI along with a pink rectangle which I presume to be the "canvas".
- All the default elements are in the Prefab Toolbar in the first tab. I take a button and drag it onto the scene
- All I see is a green rectangle that presumably represents the button. I don't see its textures. And nothing at all appears in the game window.

I've checked the Layers dropdown...nothing looks unusual. Everything is set to be visisble.

I'm totally perplexed.

Thanks!
Andrew




ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't see any elements
« Reply #4 on: July 17, 2014, 01:52:37 AM »
You drag the NGUI folder into the assets folder? This is wrong. You need to be importing NGUI from a unitypackage that you get from the Asset Store or direct download link. You should not be copying files over. If you copy things over then all references will be lost, and nothing will work.