Quantcast
Channel: Questions in topic: "filesystem"
Browsing latest articles
Browse All 35 View Live

How can i get any data format and apply?

I know 'Unity Editor' support many formats of Images, but not 'Unity Engine' does.(For example, BMP) I want support variety format of images and sounds in user's Hard Drive. How can i support these??...

View Article



how to import file in my build game?

i created an automatic rhythm games... which require to be able to load files...... what the important one is... a bytes file that is originally from midi.... i cannot resource load it when i copy a...

View Article

How to send a folder to the recycle bin via script

Directory.Delete() wipes folders from the disk. Is there any "normal" way to go about sending them to the recycle bin in Windows? All the libraries suggested on StackExchange aren't included with...

View Article

What is the most common way to implement save in Apple TV / tvOS? How does it...

So after digging in we discovered that tvOS won't allow local saving like any other platform. You need to use iCloud there's no way around it. Digging it more, I discovered there IS a local way to...

View Article

How to allow the user to upload new music to an audio source which is tied to...

Hi, I'm trying to build an app where a user can play music and mix multiple audio. I not getting an idea on how to allow the user to upload his/her own music file to the audio source which is tied to a...

View Article


open pdf on IOS

Hi, I am currently struggling to find a way to open Pdfs on IOS. any suggestions? I am currently using this code for android: public void OpenPDFAndroid(string filename) // works for android { using...

View Article

Unity File Creation and Modification Date Problem

I'm having a problem with the way Unity updates file creation and modification dates. On my system, when Unity updates files, it changes the file creation date but leaves the file modification date...

View Article

Using a file browser in the oculus go, no files can be seen only folders

I have gotten a couple of android file browsers to work in my app but I cannot find the movies or pictures folder, nor can I see filenames only folder names Anyone know what the real root folder name...

View Article


Load file during Unit Test

Using Unity 2018.1.1f1 and Visual Studio Community 2017 I've been creating unit tests using unity's built in Test Runner. In this particular unit test, I want to read a file's content into a string....

View Article


Unauthorized Access Exception when trying to write to internal storage.

I'm trying to save a screen capture from an application I'm building. ScreenCapture works great but it saves to persistent path and I want to put the screenshots in the camera folder. But trying to...

View Article

Can an Android AAR plugin access Unity's Application.Persistentdatapath...

Hello, I'm attempting to read a png file using an AAR plugin I created. The png file is stored via C# at the Application.Persistentdatapath filepath. I'm not getting any specific errors, because the...

View Article

Using Unity UI Button to call .unity file

Recently, I've been creating a game based on the 2D Roguelike Unity Tutorial, and have been struggling to make it to where when using the Unity UI button, when clicked, would boot up the...

View Article

Won't read files from directory on android - Windows works fine.

I have a folder in /storage/emulated/0/BMS which is created by the program and in-game I can navigate to the song folders within the BMS folder. The problem is that the game won't read the files in the...

View Article


System.IO - DirectoryInfo not working in WebGL

Hi, I have files under sub-folders StreamingAssets folder in WebGL build, the directory and files are detecting and working fine in Editor (WebGL) when we took build and run - the files are not get...

View Article

Moving an entire project from one directory to another?

I need to move my entire project to a new directory. How would I go about doing that? Would dragging it into the destination folder work (i.e., not break anything)? Or would I need to do something...

View Article


Unity x Nintendo Switch - How to save file?

Hello! Does anyone knows how to save file on Nintendo Switch using Unity C#? I have pc build than works fine, however, i cant find information how to use file system of device correctly, i get an error.

View Article

Best way to load multiple folders into a resource load manager

I have story objects that are written in XML and each story is contained in a folder that contains 3 XML files: the main story file, the node file, and the choice file. Currently, the manager reads...

View Article


Read pngs from folder & display on Canvas dynamically

I would like to read a folder in Windows and display all the png files in it, on the canvas. The number of images will keep increasing over time and I would like to have them on my canvas in some...

View Article

How do I access music files on the Oculus Quest and play them?

I'd like to access the Music folder on the Oculus Quest sd card, and load them into a list so I can play them. So far, I've added the following to the AndroidManifest.xml: And my code is the following...

View Article

How to tell android to open a file

I am trying to create an automatic update system for my game, which is currently distributed as an apk file you can download from a website. When an update is required, a popup comes up with a download...

View Article

How do you have a file in your build folder not be compressed by Unity?

I want to be able to access a file from the build folder, but everything is made into, for example `sharedassets0.assets` Is there a way do disable compression or even a folder name so that the files...

View Article


How do I add all images from a folder like "C:\Users\User\Desktop" to a...

Hi, how do I add all images from a folder like "C:\Users\User\Desktop" to a sprite array?? I'm researching everywhere and I'm not finding anything, please, someone could help me???

View Article


Finding audio clips in a specific folder if it is exist (Android)

I'm pretty new in unity. So I want to learn the easiest way if there is one. In fact it will simply check if there is a folder like "GameMusics" in the file system of my android device. If there is, it...

View Article

Select and Send an image from Android

Hi, I'm doing a registration screen for the player but I need to be able to select an image from the player's mobile device and send it in a UnityWebRequest.Post request. Anyone know of any way to do it?

View Article

How to make a File System?

I'm making a game inside of a simulated computer. I've made the basis for the UI and now it's time to make the File System. I need a system that allows files to be moved at runtime. I had a few ideas...

View Article


export unity file into .bin

i have created 3d model object how do i export file into .bin format or any way to convert file into .bin format. thanks

View Article

How do I access files in the file system using methods other than inheritance...

*Sorry, this is a very basic question, I'm new to unity and my course hasn't covered this topic yet. How do I access files in the file system using methods other than inheritance and variables? For...

View Article

My app cannot find .txt files after build

Hi all. I've now finished building an app and am now running into a problem I wasn't expecting. My method for saving progress in the app is through a bunch of txt files, and using File.ReadAllLines and...

View Article

How to deal with discrepancy in application file path between running the exe...

The application path when running from Unity will be project directory, for example C:\Max\Unity\myproject. The application path when running the built exe will be in the build folder, e.g....

View Article



How to FULLY delete a project

Unity Hub version 3.1.2 Unity Editor 2021.3.3f1 I recently tried to get into Unity via the Lego Microgame, and just to install it I saw it over the course of 20 minutes install **over 10 GBs** of data...

View Article
Browsing latest articles
Browse All 35 View Live




Latest Images