摘要: 对于Android平台,Unity3D提供了两种原生的性能分析方法:Wi-Fi 与 ADB。下面介绍adb连接的方式 ADB 1.打包apk,使用Unity一键打包的Build方式时,需要勾上Development Build,Autoconnect Profiler。如下图 2.自动化打包时,需要 阅读全文
posted @ 2021-08-26 11:37 MarioLz 阅读(707) 评论(0) 推荐(0) 编辑
摘要: From:https://www.cnblogs.com/blueberryzzz/p/8947446.html 元表的作用 元表是用来定义对table或userdata操作方式的表 举个例子 local t1 = {1} local t2 = {2} local t3 = t1 + t2 我们直接 阅读全文
posted @ 2020-11-26 10:30 MarioLz 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 序列化:将对象保存为文本文件或二进制文件; 反序列:将文本文件或二进制文件还原为对象; 1.Xml文件 1.1.创建StudentInfo类 1 using System.Collections.Generic; 2 using System.Xml.Serialization; 3 using S 阅读全文
posted @ 2020-09-27 22:42 MarioLz 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 1 import requests 2 from bs4 import BeautifulSoup 3 import os 4 from selenium import webdriver 5 from selenium.webdriver.firefox.webdriver import WebD 阅读全文
posted @ 2020-09-18 21:09 MarioLz 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 1 #获取某个文件夹下的所有代码总行数 2 import os 3 def GetAllPath(dirname): 4 result = [] 5 for maindir, subdir, file_name_list in os.walk(dirname): 6 for filename in 阅读全文
posted @ 2020-08-27 16:50 MarioLz 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 1 import base64 2 3 def base64_decode(s): 4 num=len(s)%4 5 if num==0: 6 s=base64.urlsafe_b64decode(s) 7 else: 8 s=s+'='*(4-num) 9 s=base64.urlsafe_b64 阅读全文
posted @ 2020-08-27 16:47 MarioLz 阅读(672) 评论(0) 推荐(0) 编辑
摘要: 1 public Text CountDownTxt; 2 DateTime endTime = DateTime.Parse("2020-10-24"); 3 public float timer = 1f; //刷新频率 4 float time = 0; 5 double totalSecon 阅读全文
posted @ 2020-07-15 09:09 MarioLz 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 时间戳:格林威治时间1970年01月01日00时00分00秒(北京时间1970年01月01日08时00分00秒)起至现在的总时间。(中国为东8区 ) Unix时间戳转DateTime: 1 /// <summary> 2 /// Unix时间戳转DateTime 3 /// </summary> 4 阅读全文
posted @ 2020-07-08 11:13 MarioLz 阅读(5024) 评论(0) 推荐(0) 编辑
摘要: 关于Unity3D在各平台上的路径 1、Resources路径 Resources文件夹是Unity里自动识别的一种文件夹,可在Unity编辑器的Project窗口里创建,并将资源放置在里面。Resources文件夹下的资源不管是否有用,全部会打包进.apk或者.ipa,并且打包时会将里面的资源压缩 阅读全文
posted @ 2020-07-07 10:46 MarioLz 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 1 using UnityEngine; 2 using System.Collections; 3 4 public class SingleMono<T> : MonoBehaviour where T : MonoBehaviour 5 { 6 private static T _instan 阅读全文
posted @ 2020-07-07 09:34 MarioLz 阅读(257) 评论(0) 推荐(0) 编辑