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 /
  • Help Room /
avatar image
0
Question by Aleksander1980 · Nov 17, 2016 at 03:12 PM · databaseresourcesfiles

Can't force unity builder to keep my resource byte files

I try using sqlite data base (both sqlite dll and pre-made database) for making a game, and I am quite unhappy with what unity does to my database, even if I import database file as a .bytes resource. The code works quite fine when I run it in unity, but I get problems after building the code. Unity builder refuses to put my database in output files, and my code brokes. I do fix it in windows by placing the database file manually, but what to do when I am making android build? Well, I've read something that I can open the apk file with winrar and put some files there, but I didn't quite get what encription key procedures I should make to make the new apk file valid. What is even more worse, while sqlite3.dll exists in windows build, I can not find it in android build.

What can I do with such problems?

Comment
Add comment · Show 2
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 hexagonius · Nov 17, 2016 at 09:49 PM 1
Share

when you say bytes resource, do you mean you've put them into a resource folder? If not and those are not referenced in any scene, you should probably do that because they won't get packed otherwise.

avatar image Aleksander1980 hexagonius · Nov 19, 2016 at 09:10 AM 0
Share

Thanks for your help, but now I've got problems with resorc mechanisms of Unity. I searched for how to work with resources in unity. So, I've made a "Resources" folder in Assets and imported there a tmp.txt withone string. Then I've put the next code to $$anonymous$$ainCamera:

public GameObject text1; // assigned a text in editor for this void Start () { Text txt1; txt1 = text1.GetComponent(); TextAsset textDoc = Resources.Load ("/Resources/tmp.txt") as TextAsset; if (textDoc == null) txt1.text = "null"; else txt1.text = textDoc.text; ... }

So, I tried to put different arguments ins$$anonymous$$d of "/Resources/tmp.txt", like "tmp.txt", "\Resources\tmp.txt", "" but I always get "null", not the string that there is in a text file.

Can you help me with this?

0 Replies

· Add your reply
  • Sort: 

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

81 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 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 to load resources? 1 Answer

Keep a file from assets after build 0 Answers

Resources folder empty in Build and public variables NullReferenceException 1 Answer

Is there a way to reveal resources in the built folder structure? 0 Answers

Is it possable to exclude some objects from loading in the editor before building? 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