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 appels · Jul 02, 2010 at 09:15 PM · textmeshplayername

Playernames on top of the gameobject on a text mesh

Hi,

I went through the example 4 of M2H's network tutorial but i have a few questions :

  1. I store my playername in playerPrefs.
  2. I send my username by rpc to the server.
  3. The server adds the name linked to the networkview ID in an array.

now my question is, how do i get all the names assigned to the textmeshes. Does the server need to do this or the clients ?

I know how to get my viewID, i can compare it to whats in the list. I think i just got lost at the end. Eddy.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
-2
Best Answer

Answer by AnaRhisT · Jul 02, 2010 at 11:59 PM

It's simple, You put into the 3D Text(Text Mesh).Text the value of ur PlayerPrefs.GetString(playerName);

GetComponent (TextMesh).text = PlayerPrefs.GetString(playerName);
Comment
Add comment · Show 7 · 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 appels · Jul 03, 2010 at 01:31 AM 0
Share

No, that way i will get my last player's name on all the text meshes.

avatar image AnaRhisT · Jul 03, 2010 at 02:05 AM 0
Share

Nah, you won't. Exactly like u don't get the last player's name on the scoreboard, It's a bit more complicated then that then, when I programmed my blue/red $$anonymous$$m, I also remember I added stuff to the class that is there, etc..Took me like a day to finish that..

avatar image appels · Jul 03, 2010 at 12:00 PM 0
Share

well I have been trying this for the last 2 days and i can't get it to work. There is allways something wrong. Would you be willing to share some code ?

avatar image AnaRhisT · Jul 04, 2010 at 09:05 AM 0
Share

I don't think my code will help you to achieve that, maybe I can help u in private, I'm "AnaRhisT"/"AnaRhisT12" in mIRC, if u see me there, send a message.

avatar image appels · Jul 05, 2010 at 03:40 PM 0
Share

Hey thanks for the offer but i got it to work last night. It still needs tweaking and i still don't understand all whats happening but i'll go through it more. But at least it's working now. Thanks again.

Show more comments

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

No one has followed this question yet.

Related Questions

URP Postprocessing & TextMesh Pro 1 Answer

How to update TMP Pro Sprite Shader using script/C#? 1 Answer

Text Mesh Pro : How to override standard text styling tags ? (bold, underline, etc ...) 0 Answers

Small Text looks jagged and washed out or pixelated on Text Mesh object 3 Answers

Fade TextMesh font C# 4 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