• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by HELLFIRE90000 · May 27, 2020 at 01:19 PM · layersscenes

,Objects disappearing when changing layer

I set my objects to a custom layermask variable so they are clickable, which works as the mouse icon changes in the game view when you hover over them. The problem is that my objects are now invisible in my scene view. They havn't been deleted or anything, can still access them in the hierarchy panel and change the layer back to default. I read about the main camera culling mask, but I have it set to everything? Any Idea how I sort this out? Thank you in advance.

alt text

,I set my objects to a custom layer so they are clickable, which works as the mouse icon changes in the game view when you hover over them. The problem is that my objects are now invisible in my scene view. I read about the main camera culling mask, but I have every layer ticked? Any Idea how I sort this out?

unity-scene-problem.jpg (54.3 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ning_ · Aug 15, 2020 at 11:44 AM 0
Share

I found out how to fix it, at the very top right nestled between Account and Layout there is an option called Layers which allows you to toggle layer visibility for the scene view. switching visibility from just default to Everything fixes it. Dont confuse this with the culling mask on the camera it is different. alt text

layers-visiblity.png (45.9 kB)

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by korongjembatan · Jul 19, 2020 at 11:48 AM

EDITED : Don't add new layer instead. Set that object as available layer. I set that object as water. And the object not disappear. It's ridiculous, but it works for me ,

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Dubz · Oct 02, 2020 at 04:06 AM

@HELLFIRE90000 Hey, I had this happen to me too. You would have had the layer visibility disabled by accident. You can see this in the layers panel. The blue rectangle shows what the icon looks like when it's disabled.

alt text


layervisibility.jpg (48.5 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Incredible201 · Dec 13, 2020 at 10:23 PM

In my opinion, this is a better workaround: Make an EmptyGameobject and then set whatever you want visible as a child of the EmptyGameobject, and then set the layer on the EmptyGameobject for only that Object NOT the children.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

134 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

What should the best practice be to teleport player on top-down game 1 Answer

What is the purpose of layers? 3 Answers

Check if Layer is in Layermask? 5 Answers

Scene layers as Enum 0 Answers

Excluding a child object from also being drag-able 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges