ReadSingle (1) 썸네일형 리스트형 파일) Unity Resource폴더와 저장소의 바이너리파일 읽기 (re : 2019.05.07) public BinaryReader PlayFileToBinary (string _fname) { TextAsset _textAsset = Resources.Load (_fname) as TextAsset; Stream _s; //if file not exist read from device storage if (_textAsset == null) { _s = GetBinaryFileStream (_fname); } else { _s = new MemoryStream (_textAsset.bytes); } BinaryReader br = new BinaryReader (_s, Encoding.Default); return br; } //get file from device storage public St.. 이전 1 다음