Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Game Development How to Make a Video Game The Unity Editor and Scene Setup Navigating the Scene View

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,028 Points

My Scene is missing several elements

Hi all,

I've been struggling with importing my assets for the game during this video. The scene does not look the same as the video after 3 attempts at importing the assets.

Is this as compatability issue? Any ideas how to fix it as I feel like I can't continue from here. Thanks :)

Unity

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Just out of curiosity. If you click on your Environment prefab over in the hierarchy. What does it say under the position, rotation, and scale (in the inspector of course)? I feel like maybe part of your environment is ... on the underside of the world :smiley:

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,028 Points

Hi Jennifer,

I see what you're thinking with this :)

But looking back these figures are for position and rotation and 1 for scale. for all axis. It's a puzzler.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Nevermind your wall 1 is fine. I'm blind :smiley: But my figures on the environment for position are 0, 0, 0. And rotation 0, 0, 0. And Scale 1, 1, 1.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,028 Points

I can see the perspective arrows for wall 1 but not wall1 itself haha. Have I somehow switched off it;s visibility?

It shouldn't be an issue though because if you add it straight to the hierarchy it takes on the pre programmed position coordinates of the asset. :-)

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Ok ok... do me one more favor and then I'll shut up :smiley: Click on File -> Build Settings and make sure you're actually building for a PC/Mac.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,028 Points

Yup :D

Says here Windows, Mac and Linux

Architecture x86 if that affects anything.

The next thing for me to do is see if it works any better on a Windows 7 machine on my desktop. I'm on Windows 10 laptop right now.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

I'd note that I'm working on a Windows 10 desktop. Just finished the frog game today. And I haven't run into this. But what I'm seeing from the picture that you posted is that you're getting some warning about Assets being deprecated for Blackberry. That's why I was wondering. You might have to tag Nick for this one :wink:

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,028 Points

I thought I'd cracked it :(

I realised that I've saved the import package to dropbox which was taking a little while to sync.

Once I saw it had finished syncing I tried again but it looks the same. :( I have however had numerous console errors which for all I know are probably causing the current display on the scene.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Jonathan Grieve oh no! The only other thing I can think of is this... and I know it sounds silly. But I was doing some 2D development tutorials in Unity not long ago. And even though I'd pick the 2D it would still go to 3D and would make my assets be all funky. But if I deleted the project, and then tried to make it again (again picking 2D) it'd be ok the second time around. Not sure that's helpful at all.

3 Answers

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Jonathan,

I just tried opening the assets with Unity 5.4.0b22 on Windows 10 with a GTX 970 GPU, and I wasn't able to reproduce the error.

Does it look fine on your desktop? My guess is that your laptop might not meet the minimum requirements for either Unity or for one of the shaders used in Unity's Standard Assets (specifically, the shader used to render the water). Here are Unity's system requirements, but like I said, there may be additional requirements for some of the standard Unity assets that are being used in this project.

There is a slim possibility that there just happens to be a bug in Unity 5.4.0b21 that is now fixed in Unity 5.4.0b22. As a general note, we don't officially support using beta versions of Unity's software for our courses, because they change very frequently and bugs can be disappear and reappear seemingly randomly. We always recommend you use the latest stable version of Unity while learning. If you use a beta version, you're much more likely to encounter bugs like this that could be you, could be us, or could be Unity - hard to say. :)

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,028 Points

It turns out I'd somehow turned off some layers on the Environment prefab :)

Nick Pettit
Nick Pettit
Treehouse Teacher

Hi Jonathan,

What version of Unity are you using? You can find this out via the "Help" menu at the top of the Unity editor window.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,028 Points

Hi Nick,

Thanks for getting to me.

To complicate things a bit I have 2 separate installations, 1 on a Windows 7 desktop and another one Windows 10 laptop.

On my desktop right now I'm on Windows 7. This version appears to be 5.4.0b21 Personal.

The screenshot was from my laptop.. I'll get you that version asap

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,028 Points

Hi Nick! Here's now it looks from my desktop after importing and adding the Environment prefab.

alt text

It looks a lot better.

Incidentally when I added it, there was a popup messages regarding something to do with obsolete API's. This time I answered differently and clicked "no thanks" and this is how it ended up. I'm still not sure what that meant but it may be making a difference?

I'll have a closer look and see if I can compare system requirements for the laptop. But it'd be nice to think I could continue on with the course having just got started. I've been excited about starting Game Development for a while now. :)

Thanks for your detailed reply

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,028 Points

Still no joy on the laptop.

dxdia tells my graphic specs are

Display: Intel(R) HD Graphics 520
Render: AMD Radeon Graphics Processesor (0x6900)

I haven't a clue what level that is as I don;t know my graphics cards though Unity Recommends anything released after 2004. I bought this laptop in December :)

I think I'll just focus on desktop development going forward. Much easier to mess around with the cameras :)

Thanks everyone.

Matthew Farrell
Matthew Farrell
7,215 Points

It says you are in 2D development mode. Sometimes that messes with how files are imported, stored, used and so on. If that is not it, then check and see what version of Unity you are using. Unity is a very fickle beast. You have to make sure you are using the same version that the teacher is using...