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 /
avatar image
0
Question by Theacesofspades · Dec 12, 2012 at 01:47 AM · fpsnetworknot workinggunnot showing

Objects not showing in a network game

So i have been making a fps multiplayer game and its been working great up until i added my first gun. What happens is i connect and i can see the other player move, look around, walk, but for some reason i cant see his gun nor does it shoot. Any tips on what im doing wrong? It does have a network view and its parents also do.

alt text

So as you can see, in the heirarchy it shows all the children but in the project view all it shows is head and camera. So, when it creates in the network game, it only creates the head and the camera. Why is that?

picture.png (76.8 kB)
Comment
Add comment · Show 2
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 asafsitner · Dec 12, 2012 at 02:00 AM 0
Share

How do you instantiate the said gun? Is it part of the player's hierarchy, or do you add it later?

avatar image Theacesofspades · Dec 12, 2012 at 02:13 AM 0
Share

yea its part of the player. But for some reason it wont show up in the project panel. Its a child of the weapons object which is a child of the camera.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by programmer23 · Dec 12, 2012 at 03:14 AM

If the gun is instantiated, make sure it is done with a Network.Instantiate command and has a network view on it, or it will only insantiate in the individual's game who the instantiation belongs to.

Hope this helps.

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 Theacesofspades · Dec 12, 2012 at 10:50 PM 0
Share

Thanks but im not instantiating it, its part of the player. But for some reason when the player is created, it only creates the head and camera not all of the children of the camera.

avatar image
0

Answer by Mage213456 · Jun 12, 2014 at 01:55 AM

I'm not sure if this is too late... but if you created a script that disables the other camera... This means that the gun gets disabled as well. Rendering it as if there is nothing there.

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.

Follow this Question

Answers Answers and Comments

12 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

Related Questions

Problem with camera and gun in FPS game 0 Answers

Cant Kill Multiplayer Player In Unity, Help! 0 Answers

FPS - Gun Delay while Rotating 0 Answers

My gun wont fire ! 1 Answer

How to make it so only my player activates Trigger 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