摘要: 1、需求是一个日期选择器选择的时间只能从当期时间到今年最后一天不能选择过去时间,具体的实现可以百度搜索日期选择器 最大时间和最小时间设置,其实原理差不多,而此需求需要的是计算从现在到今年年底剩下多少天即可,然后使用NSDateComponents setday 来设置时间即可,带入如下 NSCale 阅读全文
posted @ 2020-11-28 21:47 MiKiNuo 阅读(474) 评论(0) 推荐(0)
摘要: 公司实现说明,m_CulturalHeritageAssetListPath为绝对路径,通过编辑器接口EditorUtility.OpenFolderPanel()返回绝对路径,但是unity只能AssetDatabase类只能访问相对于Asset文件夹路径下的资源,所以kResRootName为字 阅读全文
posted @ 2020-10-17 09:34 MiKiNuo 阅读(1846) 评论(0) 推荐(0)
摘要: 一、基础四种烘焙方式 1、静态灯光下静态物体烘焙 2、静态灯光下动态物体烘焙 3、动态灯光下静态物体烘焙 4、动态灯光下动态物体烘焙 二、实现方法 1、静态灯光下静态物体烘焙设置如下: ①灯光类型设置为Baked模式 ②模型预设右上角设置为Static类型 ③进入Windows->Rendering 阅读全文
posted @ 2020-10-17 09:32 MiKiNuo 阅读(800) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using UnityEditor;using UnityEngine; namespace Gxzz{ internal sealed class Texture2DImportSettingEditor 阅读全文
posted @ 2020-10-17 09:30 MiKiNuo 阅读(524) 评论(0) 推荐(0)
摘要: 1、第一种封装方法 - (NSString *)hidePartWithStr:(NSString *)Str holderSingleStr:(NSString *)holderSingleStr location:(NSInteger)location length:(NSInteger)len 阅读全文
posted @ 2020-10-17 09:25 MiKiNuo 阅读(880) 评论(0) 推荐(0)
摘要: 实现自定义左滑删除修改背景颜色以及字体颜色,目前ios9 和ios11有两种方式可以实现左滑删除功能 1、iOS9 - (NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtI 阅读全文
posted @ 2020-10-17 09:22 MiKiNuo 阅读(503) 评论(0) 推荐(0)
摘要: 1、最快获取组件方法 在unity中有三种获取组件方法,分别是GetComponent<T>()、GetComponent(typeof(T))、GetComponent(string),其中速度由快到慢分别是GetComponent<T>()、GetComponent(typeof(T))、Get 阅读全文
posted @ 2020-10-02 22:41 MiKiNuo 阅读(290) 评论(0) 推荐(0)