Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
This question was closed Mar 05, 2017 at 07:03 PM by AurimasBlazulionis for the following reason:

Problem is not reproducible or outdated

avatar image
0
Question by AurimasBlazulionis · Jul 04, 2014 at 02:21 PM · instantiateinvisiblein-game

Instantiated models aren't visible.

I have a problem here, I am creating new project, everything goes fine. Added online mode, player spawns... but when I press right click weapon should instantiate and it does! But it's not visible :( any part of it isn't visible at all. When I pause the gameplay, go to weapon in inspector, disable and re enable the part of model or mesh renderer of that part, that part shows up! Doing the same with other parts is also OK. I tried to make the script with similar functionality like doing everything in editor, but that didn't work. Can someone help me? Here's the link to the model that I used: http://tf3dm.com/3d-model/aek-4273.html Is that model problem or what? Because other model instantiated fine. Also if I put weapon inside character's prefab deep inside characters model(hand of character) character spawns but weapon doesn't. Also tried both Network.Instantiate and regular Instantiate

Comment
Add comment · Show 3
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 meat5000 ♦ · Jul 04, 2014 at 02:15 PM 0
Share

Is it instantiating to a Layer not rendered by the camera?

avatar image AurimasBlazulionis · Jul 04, 2014 at 05:37 PM 0
Share

No, the layer is visible for the camera, the instantiated object is not even visible in the editor unless I disable and re enable mesh renderer of every part of gun.

avatar image AurimasBlazulionis · Jul 06, 2014 at 11:54 PM 0
Share

Ok, I got me out of this, the most unexpected thing that could happen: I was looking what to optimise in the game because it was with $$anonymous$$esweeper optimisations and found a code from one youtube guy to generate cubemap reflections on any material, after disabling it, performance was increased a lot, but when noticed that gun is being drawn fine, but the last thing is this: why this script could affect rendering on those instantiated objects? here's the code: http://pastebin.com/qkcnWFjW

1 Reply

  • Sort: 
avatar image
0

Answer by screenname_taken · Jul 04, 2014 at 06:02 PM

I can't think of why this would happen, but if you can't find a real fix, perhaps disable and re-enable the mesh renderer via script. On the same script that instantiates the gun.

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

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Why is my instantiated prefab invisible ? 2 Answers

GUIText is invisible after instantiate 1 Answer

Ferr2D Terrain Problem when i instantiate from resources 0 Answers

Player invisible on respawn 2 Answers

Checking if object intersects? 1 Answer


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