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 /
avatar image
0
Question by xyHeat · Apr 16, 2016 at 12:07 PM · androidmailmessaging

Send messages to friends ?

Hi everybody ! I just want to know if it's possible to send messages to friends (or contacts, ...) in Unity ? Or create an application (android, ios,...) for this ? Thank you, bye xyHeat

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 ♦ · Apr 16, 2016 at 12:13 PM 0
Share

You need to elaborate.

$$anonymous$$essages through the editor? What?

Do you mean in game using UNet?

avatar image xyHeat meat5000 ♦ · Apr 16, 2016 at 12:18 PM 0
Share

Sorry,I mean : Is it possible to player who downloaded the game to send messages to an other user (like his friend), with UNet or without it...

avatar image meat5000 ♦ xyHeat · Apr 16, 2016 at 12:31 PM 0
Share

The answer should be in here (for UNet)

http://docs.unity3d.com/$$anonymous$$anual/UNet$$anonymous$$essages.html

http://docs.unity3d.com/ScriptReference/Networking.Network$$anonymous$$essage.html

to manipulate Custom messaging to send, say, a String across the network.

This should probably be implemented in its own low priority channel.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by P3JX · Apr 16, 2016 at 12:19 PM

You can use HTTP post / get request to send message and in friends end read what you send though JSON.

Required:

  1. Internet or intranet connection (both your friend and you have to connect)

  2. You need small web server with basic script running to process the data.

how to send HTTP request well answered in this question

And how to Read JSON data from a server in here

My be there is a cheaper/better solution involve with unity networking. this is what i can think of

Comment
Add comment · Show 6 · 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 xyHeat · Apr 16, 2016 at 12:24 PM 0
Share

Thank you !

avatar image P3JX · Apr 16, 2016 at 12:36 PM 0
Share

No Problem. There may be a solution with unity networking also, found this network view. But if you just want to send / receive data i think simpler to stick with get/post requests.

avatar image meat5000 ♦ P3JX · Apr 16, 2016 at 12:42 PM 0
Share

NetworkView is the Legacy system. Doesn't work in UNet. Also I think its like using isLocalPlayer etc to identify who is who.

avatar image P3JX · Apr 16, 2016 at 01:00 PM 0
Share

agreed with @meat500. if program only needs to broadcast message to all players this could be easily done using isLocalPlayer, SyncVar etc i guess. and i think it is possible to send messages to specific device also.

avatar image xyHeat P3JX · Apr 16, 2016 at 01:22 PM 0
Share

Thank you, (again !), So if i understand, i can send message to an android(for exemple) device with HTTP post / get and a JSON file or with unity networking ?

avatar image meat5000 ♦ xyHeat · Apr 16, 2016 at 01:55 PM 0
Share

I've been meaning to try it for a while now. As I'm making a multiplayer game I may just return with a solution. No guarantees! ;)

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

61 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

Related Questions

How can I send mail with images on Android? 0 Answers

Send email works in Editor, not on tablet 2 Answers

Sending email from within Unity using smtp service 1 Answer

Google Cloud Messaging for Android 1 Answer

How to make game always stay "open" on mobile phone 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