- 博客(4)
- 收藏
- 关注
原创 关于toLua封装和解析ProtoBuffer
@关于toLua封装和解析ProtoBuffer封装ProtoBuffer发送给服务器local serverId = 127.0.0.1;function Net.WrapAndSendMessageToServer(msgId,msgBody)local msg = msgBody:SerializeToString();local buffer = ByteBuffer.New()...
2019-12-25 13:43:08
285
原创 Unity拍照片并且保存在本地
private RenderTexture _rt;public Camera Camera;public void takeAvatar(){if(_rt == null){_rt = RenderTexture.GetTemporary(512,512,24);_rt .name = “RT-TakeSnapshot”;Camera.targetTexture = _rt;...
2019-11-09 15:12:49
596
原创 unity根据用一个指定的字符串分割一条字符串
string splitStr = “123split456split789”;var splitArray = Regex.Split(splitStr,“split”,RegexOptions.IgnoreCase);
2019-11-07 11:20:39
4492
原创 unity应用程序路径
unity应用程序路径应用程序内容路径public static string AppContentPath(){string path = string.Empty;switc(Application.platform){case RuntimePlatform.Android:path=“jar:file://”+Application.dataPath+"!/assets/"...
2019-10-30 10:37:43
1252
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人