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 CorruptedNuk4r · Jan 01, 2015 at 11:42 AM · updateserverdownloadable content

How to send game updates to clients?

I have the free version of unity, and i want to have it so if someone downloads a version of the game and i update it, it downloads the update on their client. i searched on google and unity answers but couldn't find anything. I am using Photon Unity Networking for servers if that makes a difference. i am also really new to unity so i don't have much to go off of.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Landern · Jan 01, 2015 at 11:47 AM

"couldn't find anything"

Did you even try? Google Search

Unity doesn't have a way of updating the client, asset bundles can't have scripts. So you're going to have to do it yourself. Have an updater client that is used to check for a patch(es), if not, load the unity client, if there is, download an apply the patch. But don't forget that you may want to update the patcher itself... that may require you to create another application that can be executed to call the patcher after the patcher has updated.

fun stuff.

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
avatar image
0

Answer by _Yash_ · Jan 01, 2015 at 12:02 PM

you can create a simple page hosted at some link as XML or JSON or even as a simple text which contains current version available in playstore.

When Game starts use WWW class to fetch that online page and compare it with version you saved in your game, you can save current version of your game as text file in resources folder or as a static final variable.

so when you update a new version in playsore just change that online page. when old version will fetch that page and compare with local one you will know that update is available and show popup or something.

you can also use Application.OpenURL to open playstore link of your game when user clicks update.

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 Landern · Jan 01, 2015 at 12:06 PM 0
Share

static final

this isn't java

you can also use Application.OpenURL to open playstore link of your game when user clicks update

how did you gain enough information from the post to assume it was targeting android?

avatar image _Yash_ · Jan 01, 2015 at 12:06 PM 0
Share

you can save data( like maps or new models or prefabs etc) without updating application inon Applicati.persistentDataPath and also load it when needed if that is what you are looking for.

avatar image Landern · Jan 01, 2015 at 12:09 PM 0
Share

If you change a script then it will require a binary update regardless of platform. If one wanted to do content updates, AssetBundles would work just fine if using Pro. You could download using WWW, this can create some issues, but you didn't answer my previous question.

avatar image _Yash_ · Jan 01, 2015 at 12:28 PM 0
Share

I'm sorry, something just put Android in my $$anonymous$$d. But it will work on iOS also.

avatar image Landern · Jan 01, 2015 at 12:44 PM 1
Share

So just const?

If you have a const field it's part of the class since it doesn't change ever during runtime, you may call this burnt in.

If you used readonly(not with const), you could modify the variable for an instance member during the constructor of the class as apposed to the class member const.

static need not apply with const.

If the platform was either ios or android, the update would be part of the application publication process.

If it was a webplayer, then the creator can affect it by uploading a new version.

The other platforms require much more love.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Get multiple images from online server and download them to android app 1 Answer

How to update game for happenings while player is away? 0 Answers

Is using WWW to download a server on Update Function bad? 1 Answer

iPhone: Update Assets from Web? 1 Answer

Way to download and load a new scene during runtime? 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