Giter Club home page Giter Club logo

unityutils's Introduction

UnityUtils

收集一些Unity中常用的工具类

  • obb

obb校验类,详情可查看blog

  • splash

android冷启动黑屏问题

  • permission

Unity使用android权限相关的类,Unity原生的权限显示会在>6.0版本activity recreate的时候crash。

  • screenshot

Unity截屏分享

  • EmojiText

Unity图文混排,参考修改了一下替换占位符的算法,mark一下。里面有一个emoji方案,解析emoji表情并且显示,但是InputField不支持emoji(应该是不支持16位char),需要重写一个InputField类,暂时没时间搞,mark。

  • uGUI-Hypertext

Unity 超链接,参考

  • SensitiveWordUtil

C#匹配敏感词

采用牺牲空间换取时间的策略,与正则表达式匹配根本不在一个数量级,经测试6000+敏感词,生成树需要30ms左右时间,正常匹配时间只有1-5ms,而正则表达式超过1000几乎卡死。 敏感词匹配支持空格匹配,大小写匹配,详情看demo。 Util.cs:工具类,直接生成对应关键字数组。 参考

  • ExcelToText

excel转化成文本,用来转化android ios原生多语言,需要安装python以及xlrd,使用方法:

python excelToAndroidXml.py 文件名1 文件名2 文件名3
  • SVCParse

真机抓日志可以得到各个阶段编译的shader日志,通过工具可以解析日志并把所有的变体都解析出来并加到svc内。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.