Skip to content

Instantly share code, notes, and snippets.

@zhaojunmeng
zhaojunmeng / Setup_Slim.bat
Last active July 11, 2024 12:20
Call Setup.bat in Unreal Engine Source, add multithread, local download cache and exclude list
@REM You can use --dry-run to just print what will be downloaded.
@REM You can use --cache to specify a custom path for the download cache.
@REM call Setup.bat --dry-run --threads=%NUMBER_OF_PROCESSORS% --cache=C:\Code\Cache\ue-gitdeps ^
call Setup.bat --threads=%NUMBER_OF_PROCESSORS% --cache=C:\Code\Cache\ue-gitdeps ^
--exclude=HoloLens ^
--exclude=Linux ^
--exclude=linux-64 ^
--exclude=linux32 ^
--exclude=linux64 ^
@zhaojunmeng
zhaojunmeng / DownloadHandlerFileRange
Created December 23, 2021 11:53 — forked from TouiSoraHe/DownloadHandlerFileRange
UnityWebRequest实现断点续传下载
using UnityEngine.Networking;
using System.IO;
using System;
/// <summary>
/// 使用方式:
/// UnityWebRequest unityWebRequest = new UnityWebRequest("url");
/// unityWebRequest.downloadHandler = new DownloadHandlerFileRange("文件保存的路径", unityWebRequest);
/// unityWebRequest.SendWebRequest();
/// </summary>
@zhaojunmeng
zhaojunmeng / GAME_MASTER_v0_1.protobuf
Created July 20, 2016 09:03 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {