[링크] 10년간 슈퍼셀을 경영하며 배운 10가지 교훈
'게임이야기' 카테고리의 다른 글
[펌] NDC 2013 이은석 - 게임 디렉터가 뭐하는 건가요 (0) | 2020.09.24 |
---|---|
[링크] '투더문' 후속작 공개, 이 시리즈를 기대하는 세 가지 이유 (0) | 2016.01.21 |
[펌] NDC 2013 이은석 - 게임 디렉터가 뭐하는 건가요 (0) | 2020.09.24 |
---|---|
[링크] '투더문' 후속작 공개, 이 시리즈를 기대하는 세 가지 이유 (0) | 2016.01.21 |
유니티 데이터 통신 압축용으로 사용 중.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using ICSharpCode.SharpZipLib.BZip2;
public class ZipHelper
{
public static byte[] Zip(byte[] data)
{
return Zip(data, 0, data.Length);
}
public static byte[] Unzip(byte[] data)
{
return Unzip(data, 0, data.Length);
}
public static byte[] Zip(byte[] data, int offset, int size)
{
MemoryStream inStream = new MemoryStream(data, offset, size);
MemoryStream outStream = new MemoryStream();
BZip2.Compress(inStream, outStream, false, 3);
byte[] result = outStream.ToArray();
inStream.Close();
outStream.Close();
return result;
}
public static byte[] Unzip(byte[] data, int offset, int size)
{
MemoryStream inStream = new MemoryStream(data, offset, size);
MemoryStream outStream = new MemoryStream();
BZip2.Decompress(inStream, outStream, false);
byte[] result = outStream.ToArray();
inStream.Close();
outStream.Close();
return result;
}
}
// 예제
//class Program
//{
// static void Main(string[] args)
// {
// byte[] array = new byte[1000];
// for (int i = 0; i < array.Length; i++)
// {
// array[i] = (byte)(i % 255);
// }
// byte[] compress = ZipHelper.Zip(array);
// byte[] decompress = ZipHelper.Unzip(array);
// }
//}
[SharpZip dll 다운로드] https://www.nuget.org/packages/SharpZipLib/
[펌] www 클래스, UnityWebRequest 클래스 사용하기(HTTP 서버에 데이터 가져오기, 보내기 등) (0) | 2020.12.22 |
---|---|
[펌] New Unity Input System: Getting Started (0) | 2020.12.22 |
[링크] Unity 자이로 & 가속도 센서 관련 (0) | 2020.06.09 |
[Unity] 회전 없이 유도(Guided/Homing) 이동 로직 (0) | 2020.05.26 |
[펌] Unity 런타임 중 AndroidManifest.xml에서 meta-data 정보 읽어오기. (0) | 2019.12.04 |
using System;
using Mono.Data.Sqlite;
public class Example
{
static void Main()
{
string cs = "URI=file:test.db";
using (SqliteConnection con = new SqliteConnection(cs))
{
con.Open();
using(SqliteTransaction tr = con.BeginTransaction())
{
using (SqliteCommand cmd = con.CreateCommand())
{
cmd.Transaction = tr;
cmd.CommandText = "DROP TABLE IF EXISTS Friends";
cmd.ExecuteNonQuery();
cmd.CommandText = @"CREATE TABLE Friends(Id INTEGER PRIMARY KEY,
Name TEXT)";
cmd.ExecuteNonQuery();
cmd.CommandText = "INSERT INTO Friends(Name) VALUES ('Tom')";
cmd.ExecuteNonQuery();
cmd.CommandText = "INSERT INTO Friends(Name) VALUES ('Rebecca')";
cmd.ExecuteNonQuery();
cmd.CommandText = "INSERT INTO Friends(Name) VALUES ('Jim')";
cmd.ExecuteNonQuery();
cmd.CommandText = "INSERT INTO Friends(Name) VALUES ('Robert')";
cmd.ExecuteNonQuery();
cmd.CommandText = "INSERT INTO Friends(Name) VALUES ('Julian')";
cmd.ExecuteNonQuery();
cmd.CommandText = "INSERT INTO Friends(Name) VALUES ('Jane')";
cmd.ExecuteNonQuery();
}
tr.Commit();
}
con.Close();
}
}
}
출처: https://unsigned.tistory.com/entry/Sqlite-Insert-속도-문제시 [공부하자 공부공부]
[Tip] Unity2018 -> Unity2019로 갈 때 obsolate 관련 처리 (1) | 2020.10.06 |
---|---|
[펌] Automatically set Hindi language in Unity (0) | 2020.09.15 |
[펌] [Unity] Android keystore 경로 상대경로로 지정하기 (0) | 2020.06.09 |
[링크] 유니티 프로모션용 영상/동영상 촬영 (0) | 2020.04.03 |
[펌] Unity Editor Play 중 소스 수정 시, Recomplie 여부 옵션 (0) | 2020.02.14 |
[링크] https://explorermax.drivethelife.com/
Clover가 마음에 들었었는데,
중국산이고 최신 버전은 뭔가 뒤로 하고 있는 것 같아서 찝찝해서
대체 프로그램을 찾고 있었는데 ExplorerMax가 보여서 Trial 깔아봤습니다.
Clover에 있던 원했던 기능이 아래와 같이 3가지 였는데 ExplorerMax에 다 있네요.
1. 탭브라우저 방식 멀티탭
2. 즐겨찾기(Bookmark)
3. 프로그램을 껐다 켜도, 열었던 탭 저장 된 상태로 보존(없는 줄 알았는데 설정에 보니 있네요)
유료라서 어떨지 몰라서 우선 Trial로 사용해 보는 중인데 문제 없으면 유료구매 할까 생각중입니다.
[추가]
Giveway로 1년 무료 Key가 있어서 넣어보니 되네요.(언제 막힐지는 모르겠습니다)
1년 사용하고 후에 구매 생각을..
[추가2]
언제 등록해도 만료일이 2021년 8월 4일 인 것 같습니다.
Giveway 이벤트 시작일 기준 1년 무료인 것 같네요.
---------------------------------------------------------
BBF92-30413-AD377-E709A-A15F1
97383-5AF67-1255C-52748-66D85
---------------------------------------------------------
[1년 무료 라이센스 키 URL] https://winningpc.com/product/explorermax-pro-license-key-free/#giveaway-details
[에셋] Colorblind Effect(색맹/색약 테스트 에셋) (0) | 2020.10.07 |
---|---|
[펌] Sniper - 검열우회 | 광고차단 | 보안 앱 (0) | 2019.08.07 |
[링크][화면보호기] 플립형 시계 화면보호기(스크린 세이버, screen saver) 모음 (0) | 2019.08.06 |
Unity3d Document for VS2012/VS2013 (2) | 2014.11.10 |
3D Model Viewer (0) | 2013.01.18 |