摘要:
Timeline编辑器扩展PlayableDirector(控制器)创建一个Track的方式(感谢。。。。。大佬)PlayableDirector.playableAsset as TimelineAsset;TimelineAsset.CreateTrackTrackAsset(自定义轨道类型)接 阅读全文
摘要:
1 using UnityEngine; 2 using UnityEngine.Timeline; 3 using UnityEngine.Playables; 4 5 [System.Serializable] 6 public class LinePlayableAsset : Playabl 阅读全文
摘要:
复制的感觉挺有用就保存下来 using System.Collections;using System.Collections.Generic;using UnityEngine; public class CURRENT : MonoBehaviour { private List<int> co 阅读全文
摘要:
1、直接指定数组元素 int [] arr = {2,4,1,8,4}; 2、只指定数组长度不指定元素值 指定一个长度为5的int型数组 int [] arr = new int[5]; 3、不指定长度 int arr = new int[] {}; 4、指定长度和元素 使用这种方法,数组长度必须和 阅读全文