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 Shkarface-Noori · May 13, 2014 at 07:03 PM · buildupdateasset bundlespatch

Replacing Files After Build?

hi, how can I replace a file (ex. a texture or a script) after I build the application? is it possible? 'Asset Bundles?'

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 Josh707 · May 13, 2014 at 09:41 PM 0
Share

If you make another build of your game which is different/updated you can copy a few files depending on what was changed. Depending on the language you use you can copy & replace the Assembly-YourLang files for scripts, the level files if they have been changed and the mainData/resources/sharedassets files for assets.

You may want to make some sort of update program to download and replace the files, a few people seemed to screw something up when I made a mod for a Unity game this way.

avatar image Shkarface-Noori · May 14, 2014 at 04:03 PM 0
Share

so the Assembly-$$anonymous$$YLANG is the scripting base?

avatar image Josh707 · May 15, 2014 at 08:02 AM 0
Share

I'm not sure what you mean by 'scripting base', but using a decompiler such as .NET Reflector shows that certain assembly files contain the scripts/classes you've written. If you use only C# scripts you will want to update Assembly-CSharp and Assembly-CSharp-firstpass if it exists.

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by fafase · May 13, 2014 at 07:18 PM

I think you have a similar question there: http://answers.unity3d.com/questions/21014/how-can-i-update-my-game-client-after-release.html

Comment
Add comment · Show 4 · 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 Shkarface-Noori · May 13, 2014 at 07:40 PM 0
Share

I know but not the same approach as $$anonymous$$e... I want to replace the files... I dont want to use Asset Bundles and load them in runtime...

avatar image xortrox · May 13, 2014 at 09:03 PM 1
Share

You don't wanna load them during runtime then how will they ever be changed? External updater? Asset Bundles or not they would still be loaded, unity doesn't magically not have to load anything just because it hides the code that does it.

avatar image Shkarface-Noori · May 14, 2014 at 04:01 PM 0
Share

yes I meant external updater... all i need to know is what file i have to replace after a certain change in code or scene editing?

avatar image fafase · May 14, 2014 at 06:10 PM 0
Share

One easy would be to have your user registered on a database and then you send the update from your side.

The external updater would have to run a script like php that once a day checks the server for update, considering the user is connected at least once a day.

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

22 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

Related Questions

Distribute terrain in zones 3 Answers

Mobile Game Patcher? 1 Answer

Include default asset bundle in build? 1 Answer

How to make a patcher 0 Answers

Update Build Rather than installing again 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