摘要: Timeline编辑器扩展PlayableDirector(控制器)创建一个Track的方式(感谢。。。。。大佬)PlayableDirector.playableAsset as TimelineAsset;TimelineAsset.CreateTrackTrackAsset(自定义轨道类型)接 阅读全文
posted @ 2021-12-23 17:51 红灯亮了 阅读(415) 评论(0) 推荐(0)
摘要: 1 using UnityEngine; 2 using UnityEngine.Timeline; 3 using UnityEngine.Playables; 4 5 [System.Serializable] 6 public class LinePlayableAsset : Playabl 阅读全文
posted @ 2021-12-22 14:11 红灯亮了 阅读(61) 评论(0) 推荐(0)
摘要: 如果安卓插件是aar包,需要包里的AndroidManifest和unity 插件/安卓 下的AndroidManifest文件一致,都添加下面代码设置,只使用横屏设置 android:configChanges="orientation|screenSize" android:screenOrie 阅读全文
posted @ 2020-04-29 18:00 红灯亮了 阅读(305) 评论(0) 推荐(0)
摘要: 点乘:表示两个向量夹角 a*b=|a| * |b| * cos(ab),判断敌人在前后方 叉乘:表示两向量的法线 阅读全文
posted @ 2018-09-03 23:01 红灯亮了 阅读(257) 评论(0) 推荐(0)
摘要: 复制的感觉挺有用就保存下来 using System.Collections;using System.Collections.Generic;using UnityEngine; public class CURRENT : MonoBehaviour { private List<int> co 阅读全文
posted @ 2018-08-29 16:54 红灯亮了 阅读(534) 评论(0) 推荐(0)
摘要: 1.字符串与字节数组 System.Text.Encoding.UTF-8.GetBytes() 汉字转换后3个字节,数字转换和数字位数一样 GetString() 2.Int32值类型与字节数组 BitcOnverter.GetByts(66666); .ToInt32() 转换成数字 值类型不管 阅读全文
posted @ 2018-01-09 18:36 红灯亮了 阅读(233) 评论(0) 推荐(0)
摘要: 1、直接指定数组元素 int [] arr = {2,4,1,8,4}; 2、只指定数组长度不指定元素值 指定一个长度为5的int型数组 int [] arr = new int[5]; 3、不指定长度 int arr = new int[] {}; 4、指定长度和元素 使用这种方法,数组长度必须和 阅读全文
posted @ 2017-08-17 23:08 红灯亮了 阅读(374) 评论(0) 推荐(0)