Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
0
Question by ArchoTek · Aug 15, 2016 at 07:49 PM · renderingbuginvisible-object

Unity 5.4 - Instantiated Objects Invisible

As the title states, objects I'm instantiating during runtime are quite simply not visible. Now, don't get me wrong - they exist! They just don't appear on screen.

They appear in the hierarchy, have all the properties they're supposed to have, you see where I'm going. Yet somehow, they're invisible. The situation upon instantiation through a script: alt text

When I do it by simply dragging the object into the scene from the asset folder: alt text

If anyone has any suggestions at all they'd be greatly appreciated. None of my scripts touch any render-related sides of these prefabs, so I really don't know what could be causing this. (Keep in mind, layers or stuff like that aren't the issue - it only bugs on instantiation!)

Edit: This issue occurs both in scene and game view, by the way - it's not linked to some broken camera settings or alike.

94567301e62c4e559d0f6b84e2b28c8f.png (453.6 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 LoftyTheMetroid · Aug 17, 2016 at 07:29 PM 0
Share

This is also happening for us in 5.4 in places where it did not happen before (at least in 5.2.2). For us, it is happening with UI elements that are instantiated at runtime. It is not consistent since it only happens some of the time. Our current bandaid fix is turning the GameObject off and on as soon as it is instantiated.

I tried recreating this in a test project, but I couldn't. I'm not sure what variables could lead to this happening.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by OsmiousH · Aug 18, 2016 at 04:09 AM

I cannot Answer You CLEARLY due to the lack of attached Scripts but my guess is that you must have Instantiated It wrong To Instantiate an Object Use this

 //javascript
 public var IObject;
 Instantiate(IObject);
 //C-Sharp (Might contain errors)
 public Object IObject;
  Instantiate(IObject);

If error continues :

Check If The Object Is In current scene Check to see the Instantiated Object's transforms

IF THIS DOESN'T WORK :

Provide a copy of your scripts by editing the question

Comment
Add comment · Show 1 · 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 LoftyTheMetroid · Aug 18, 2016 at 07:21 PM 0
Share

He's clearly instantiating the objects, so that shouldn't be the issue.

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.

Follow this Question

Answers Answers and Comments

70 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

Related Questions

Camera flickers to black in build, but not in Unity 0 Answers

Why transparent rendering mode makes opaque object transparent? 1 Answer

Gui not appearing in Game Mode 1 Answer

Can't enable Unity Ray Tracing 0 Answers

When updating to Universal Render Pipeline an Error occurs 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