- 博客(8)
- 资源 (1)
- 收藏
- 关注
翻译 UIWrapContent
GameObject grid下挂入脚本 MultiRowWrapContent 代码: UIWrapContent _wrapScript = grid_mt_SearchItem_Ingredients.GetComponent<UIWrapContent>(); _wrapScript.onInitializeItem = OnUpdateIngredients;Ra...
2018-03-16 11:02:27 518
转载 NGUI 图集图片白毛边
今天在做项目时,发现自己在用NGUI时,自己使用打包好的图集过程中,发现Sprite边缘出现一些细小的线条,特别影响UI美观经过仔细检查自己打包的图集发现,这是由于图集中各个精灵位置间隔太小造成的,所以我们就需要调整精灵之间间隔的大小,来解决这个问题。...
2018-03-13 14:41:13 384
转载 NGUI 代码Snap
NGUI atlas Uisprite 图片 Snapthis.GetComponent<UISprite>().MarkePixelPerfect();
2018-02-12 14:21:08 863
转载 速度快发生碰撞
Description This script uses raycasting to avoid the physics engine letting fast-moving objects go through other objects (particularly meshes).Changes 1.Added "Switch To Layer" convenience optio
2017-12-27 14:23:00 191
原创 unity 在 iOS 层级
BasicMapViewController *viewController=nil;void OpenGPSMap(void *p){ if(viewController!=nil){ [viewController initAnnotations: [NSString stringWithUTF8String:p]]; [vie
2017-12-21 16:30:34 345
转载 c#中英字节方法
public static int bytelenght(string str) { //使用Unicode编码的方式将字符串转换为字节数组,它将所有字符串(包括英文中文)全部以2个字节存储 byte[] bytestr = System.Text.Encoding.Unicode.GetBytes(str); int j = 0;
2017-12-21 16:21:12 161
原创 unity 查找root节点
但不能找到active false foreach (GameObject obj in UnityEngine.Object.FindObjectsOfType(typeof(GameObject))) { if (obj.transform.parent == null) {
2017-12-21 15:35:04 1801
原创 NGUI UIButton 添加带参数事件
private void addEventListener(UIButton button) { EventDelegate eventDelegate = new EventDelegate(this, "OnMeridiansClick"); eventDelegate.parameters[0] = new EventDelegate.Param
2017-12-11 10:54:10 824
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人