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
1
Question by schetty · May 21, 2013 at 05:19 AM · assetbundleasset

Copy the file from assets and paste it out side the assets folder

Hi Every One,

I have a doubt with assets exporting. I have copied some word file into my assets folder, at the run time i need to copy that file and paste it out side where i want in the system or outside the assets folder.

I don't know is this possible or not in unity,

So help me to do this.

Thanks.

Comment
Add comment · Show 12
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 Fornoreason1000 · May 21, 2013 at 05:20 AM 0
Share

you can, its just a little difficult

avatar image Tomer-Barkan · May 21, 2013 at 05:24 AM 1
Share

Edit: For a built game (not unity editor script), use C#'s File.$$anonymous$$ove() or File.Copy

http://msdn.microsoft.com/en-us/library/system.io.file.copy(v=vs.71).aspx

You can provide a relative path (relative to your project root) or an absolute path.

for example, to copy a file from your assets folder:

 File.Copy("Assets/$$anonymous$$yPicture.png", "Assets/$$anonymous$$yNewPicture.png");

You'll need to add using System.IO;

avatar image schetty Tomer-Barkan · May 21, 2013 at 06:43 AM 0
Share

i could not able to derive this Fileutils function in my script. I used all header functions but i did not get that. i use this headers:

using UnityEngine; using System.Collections; using System.IO; using System.Collections.Generic; using System.Text; using System.CodeDom.Compiler; using System.Text.RegularExpressions;

avatar image schetty Tomer-Barkan · May 21, 2013 at 06:45 AM 0
Share

let me try this..

avatar image Tomer-Barkan Tomer-Barkan · May 21, 2013 at 06:57 AM 0
Share

using UnityEditor

Show more comments

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

15 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

Related Questions

How to import the object from server to unity 2 Answers

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Storing a part of a complex asset in an asset bundle 1 Answer

Can MonoBehaviours be partitioned into different assetBundles? 2 Answers

Is it sensible to build an assetbundle for each texture/mesh? 1 Answer


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