• 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
Question by iwillbenice · Feb 18, 2015 at 06:50 AM · uiui image

Unity UI not showing some Images

Hi guys,

I am making UI for my game and my problem is that I can not manage to make UI Images visible anymore.

Everything worked fine until few hours ago. I have 6 level deep hierarchy on Canvas. I am making UI like this:

I create .png-s from .psd layers from Photoshop. I make GOs in world space, then I make that object son of Main Window, rescale so it fits fine, replace Transform with RectTransform, add UI/Image component, and set proper sprite. Image is not visible nether on Scene nor Game view.

I made half of UI this way and I stuck now.

My hierarchy look Like this:

 Canvas
   MainWindow
     Mask  (with ScrollRect)
       FatherGO (I group Panels with this)        
         PanelImage (Scrollable)
           GO (father of sprites)
             Button (with which I have problem)
             ...
             ...
             (i have 4 of them, everyone acting same)
         PanelImage (Scrollable - Did exactly the same in this hierarchy with no problems)
           ...
             (visible Images)

  • Z axis val is 0 on all objects in hierarchy.

  • Canvas render mode is Screen Space - Camera.

  • I have CanvasRenderer on GO that is making problems.

  • I tried with both Image and Raw Image with no results.

When I that problematic GO Image is Visible. It seems like Mask is hiding image but i do not know how come because I am not referencing to any RectTransform, I control that in script.

Also when I start Unity is throws me 3 same errors: aabb.IsValid()

I do not have that function, and when I double click on it in console it does not highlight it in MonoBehaviour.

Strange as hell!

I hope someone know what is going on.

Cheers!

UPDATE:

When I resize Mask to be bigger I see the Image. It seems it does inverse mask to that GO.

Also, when I move Image up to hierarchy (to be direct child of GameObject Mask) the Image is visible.

It is a kind of solution but It would be much more easier to use gameObject.SetActive(bool TorF) to one GO that is father of all that I want to show/hide at the moment then to loop trough children, check names and use gameObject.SetActive(bool TorF).

It is very unusual behaviour considering I manage to make Images visible on other GO. same deep in hierarchy.

Hope this will help someone figure out why is this happening.

Thanks.

Comment

People who like this

0 Show 4
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 Fariel · Feb 18, 2015 at 07:39 AM 0
Share

Referring to this: http://answers.unity3d.com/questions/255190/aabbisvalid-error.html for you error may help you understand what is happening.

avatar image AndresBarrera · Feb 18, 2015 at 10:19 AM 0
Share

Couple of questions:

  1. Your first PanelImage has a GO (father of sprites) child. Is it an empty GO, right?

  2. Your second PanelImage doesn't have a GO (father of sprites) child, correct?

  3. When the game is running inside the editor, and you double click one of the visible images in the hierarchy panel, can you see its RectTranform size inside the Scene view (press 'T')? and can you see the size for the invisible buttons doing this?

Maybe the problem is related to the scrollable panels being resized depending on their inmediate content, but the first panel has an empty GO as content and is not taking into account the grandchildren Buttons.

avatar image iwillbenice · Feb 18, 2015 at 03:06 PM 0
Share

@Fariel I somehow manage to get rid of that error, but with no results. Thanks anyway.

avatar image iwillbenice · Feb 18, 2015 at 03:10 PM 0
Share

@AndresBarrera 1. Yes 2. It have GO (father of sprites). 3. Yes, RectTransform of it is visible. I updated Question just now so take a look if you are willing.

0 Replies

· Add your reply
  • Sort: 

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Can't change Image sprite because in rebuild loop? 2 Answers

Buttons in unity: Text or Built in text in PNG? 2 Answers

Click on image in scrollview 0 Answers

Image on UI doesn't stretch when objects it's on is stretched. 0 Answers

When two ui elements are overlapping, how to make the botton element intercept events? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges