Skip to main content

Questions tagged [filestream]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
856 views

Download a video to PersistentDataPath in Unity while also playing it as it downloads?

I am attempting to integrate a video function which will playback short looping videos (similar to YouTube Shorts or TikTok). I therefore want the videos to download to PersistentDataPath and be ...
mike's user avatar
  • 481
0 votes
1 answer
209 views

Directory.CreateDirectory() created a folder with name that was supposed to be a file

i am experiencing some problem here , i have a path : "/folder/folderagain/file.xml" i tried to use Directory.CreateDirectory() to create all folder (in case one of them is missing) and then reuse ...
i'm ashamed with what i asked's user avatar
0 votes
1 answer
4k views

DirectoryNotFoundException for an existing file path on Unity startup

I'm not sure why this error appears in my console when I start up my Unity editor but it is stopping me from running any Unity projects by pressing the play button. I have tried re-installing Unity, ...
S B B's user avatar
  • 11
1 vote
1 answer
2k views

Convert char array to std::string

I have this code: ...
user avatar
0 votes
0 answers
828 views

Serializing and writing a Dictionary of Vector2 keys and custom class values in Unity

I have tried to create code to serialize a Dictionary of <Vector2, Block>, where Block is a custom serializable class, loosely based off of this guide. I need ...
Aaron Franke's user avatar
-1 votes
1 answer
680 views

Reading from a txt file (C++)?

When use ifstream to read from a txt file into 2d array i get some extra chars. Txt file: I get: My code: ...
Kirill Saidov's user avatar
1 vote
1 answer
460 views

TextAsset thinks file is ~6856 bytes when it is 120123 bytes

So I've created a text asset in Unity of a binary file which i'm attempting to read in as a byte array. The result I'm getting is a byte array tht is almost half the size it's supposed to be. The ...
meds's user avatar
  • 1,480