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 Oct 22, 2013 at 08:04 PM by meat5000 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by R1pnd1p · Oct 20, 2013 at 07:44 AM · cameranetworkingmultiplayerlayers

camera layer issue, multiplayer.

hi,

im having an issue with setting up and disabling certain layers in multiplayer. i set it up so that i set up 2 layers, one to be displayed on my second camera (fps hands and what not) and the other to not show up on my camera. i made a c# script to set the layers when the player gets instantiated.

problem is, now i dont see other players. if someone can help me out, and/or point me in the right direction, id greatly appreciate it. thanks.

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 Benproductions1 · Oct 21, 2013 at 01:58 AM 0
Share

Impossible to help you without any further information

If you want help, you're going to have to be a lot more percise

1 Reply

  • Sort: 
avatar image
0
Best Answer

Answer by R1pnd1p · Oct 21, 2013 at 02:26 AM

MUST READ! many, many people have tried. and many many people have failed. but not I! I HAVE SUCCEEDED! and you shall too. if you are having problems with layers in your game with fps, you have come to the right place! i will fulfill your quest of enlightenment, i am the answer to your doubts! i am the KEY TO YOUR HEART! ....ok forget that last part.

all you have to do is disable the render mesh locally. the c# script for it is

 MeshRenderer[] mrs = myPlayer.GetComponentsInChildren<MeshRenderer>();
         
         foreach(MeshRenderer mr in mrs) { 
             mr.enabled = false;
         }
         
         SkinnedMeshRenderer[] smrs = myPlayer.GetComponentsInChildren<SkinnedMeshRenderer>();
         
         foreach(SkinnedMeshRenderer smr in smrs) {
             smr.enabled = false;
         }

study this! this is the key....AND your destiny!

good luck all, god speed.

Comment
Add comment · Show 12 · 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 R1pnd1p · Oct 21, 2013 at 02:18 AM 0
Share

credit to quill18, the guys a genious.

avatar image R1pnd1p · Oct 21, 2013 at 02:31 AM 0
Share

oh and one more thing. you only need a layer for your hand/gun display! boom! im so damn happy i figured it out.

avatar image Benproductions1 · Oct 21, 2013 at 02:59 AM 0
Share

Disabling and enabling renderers is quite expensive. I would suggest avoiding this approach. If you don't want something to get rendered simply put it in a different layer, then have the camera not render that layer

avatar image R1pnd1p · Oct 21, 2013 at 03:05 AM 0
Share

you CANNOT do that in a multiplayer game, if something is labeled as "do not display" on ANY camera, it wont display for anyone, not just you.

avatar image R1pnd1p · Oct 21, 2013 at 03:06 AM 0
Share

plus, you apply this to a start function when a character gets instantiated, and when you disable the render, its only client side and local, it does send any information to the network.

Show more comments

Follow this Question

Answers Answers and Comments

16 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

Related Questions

Unity networking tutorial? 6 Answers

Network multiplayer chess/battleship game cameras 2 Answers

Networking Camera 1 Answer

Bug From Camera Multiplayer Network Game 0 Answers

Multiplayer| Attaching camera to player (if i am the owner 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