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 kriska7209 · Oct 30, 2016 at 08:16 AM · androidunity 5unity5android build

Why an Android build doesnt make a _Data file.

Hello guys! I have a question. You know that when you build your game for PC in the folder there is a _Data file. But why when i build it for Android there isnt one?

I made a chatbot, and in the _Data folder there is all its "knowledge" if you know what i mean. There is a folder "StreamingAssets" and in that folder there are all the XML and AIML files. And the deal is that without it it cant work correctly. When i upload it to the phone i can open the chatbot, write to it but it doesnt respond, and i think its doesnt respond because the _Data folder is missing.

Thanks and have a good day :)

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 Hellium · Oct 30, 2016 at 08:17 AM 1
Share

Why is it a big problem for you, please explain ;)

avatar image kriska7209 Hellium · Oct 30, 2016 at 08:27 AM 0
Share

Okay, lets explain it :) So, i made a chatbot, and in the _Data file there is all its "knowledge" if you know what i mean. There is a folder "Strea$$anonymous$$gAssets" and in that folder there are all the X$$anonymous$$L and AI$$anonymous$$L files. And the deal is that without it it cant work correctly. When i upload it to the phone i can open the chatbot, write to it but it doesnt respond, and i think its doesnt respond because the _Data folder is missing. If you want just give me your skype so i can send you the project to see whats the real problem

1 Reply

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

Answer by tanoshimi · Oct 30, 2016 at 08:28 AM

Because Android applications don't have an exposed folder structure - they are packaged in .APK files. I can't possibly imagine how this causes you a big issue.

Comment
Add comment · Show 10 · 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 kriska7209 · Oct 30, 2016 at 08:30 AM 0
Share

Okay, lets explain it :) So, i made a chatbot, and in the _Data file there is all its "knowledge" if you know what i mean. There is a folder "Strea$$anonymous$$gAssets" and in that folder there are all the X$$anonymous$$L and AI$$anonymous$$L files. And the deal is that without it it cant work correctly. When i upload it to the phone i can open the chatbot, write to it but it doesnt respond, and i think its doesnt respond because the _Data folder is missing. If you want just give me your skype so i can send you the project to see whats the real problem It may not be the real problem but i dont know.

avatar image tanoshimi kriska7209 · Oct 30, 2016 at 08:37 AM 0
Share

You should place your X$$anonymous$$L files in the /Resources folder of your project and access them like this:

 TextAsset textAsset = (TextAsset) Resources.Load("$$anonymous$$yX$$anonymous$$LFile");  
 XmlDocument xmldoc = new XmlDocument ();
 xmldoc.LoadXml ( textAsset.text );

(this loads the file at Resources/$$anonymous$$yX$$anonymous$$LFile.xml)

avatar image kriska7209 tanoshimi · Oct 30, 2016 at 08:40 AM 0
Share

Thank you very much sir! You truly are a savior! Have a good day!

Show more comments
avatar image tanoshimi kriska7209 · Oct 30, 2016 at 08:47 AM 0
Share

No, a folder named "Resources" within your assets folder. If it doesn't exist just create one. https://docs.unity3d.com/ScriptReference/Resources.html

avatar image kriska7209 tanoshimi · Oct 30, 2016 at 09:00 AM 0
Share

Okay i put the folder with the X$$anonymous$$L files in the Resources folder but what about the AI$$anonymous$$L files, is it the same thing? Put them in there?

Show more comments
avatar image tanoshimi · Oct 30, 2016 at 10:31 AM 0
Share

Then I recommend you do some more research or follow some of the tutorials on the Unity site about how to access resources in your project - it's pretty fundamental to your application so worth making sure you have a thorough understanding.

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

After installing the .apk , the App Icon appears twice 1 Answer

Google Play showing This app is incompatible with all of your devices 1 Answer

I'm having a problem after android build 1 Answer

i need help. Why my character looks so weird when i change Platform from standalone to android 0 Answers

Error Building Android Player : Win32 Exception 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