原创 LookRotation

    using System.Collections; using System.Collections.Generic; using UnityEngine; public class Fllow_line : MonoBeha

原创 實現文字首行縮進加打字機效果

將以下腳本掛在text上 using UnityEngine.UI; using UnityEngine; [RequireComponent(typeof(Text))] public class NonBreakingSpace

原创 字典根據key 或者值排序

List<KeyValuePair<int, float>> list = new List<KeyValuePair<int, float>>(_dic_new); list.Sort(delegate (Key

原创 3d拖拽

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public

原创 第三人稱鏡頭

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Mou

原创 Unity webgl讀取.csv文件

因爲前期用本地應用類庫Excel.dll文件來讀取Excel發佈成WebGl並不能讀取得到,所以查資料得.csv文件是可以的,將excel轉換成csv文件,並將csv轉換成ut-f8格式的txt導入unity可實現WebGl的數據讀取,這

原创 unity Animator 同時播放兩個動畫,並動態更換Animator中的AnimationClip

https://blog.csdn.net/weixin_39562801/article/details/88873511

原创 look at

朝向某一方向 剔除y軸

原创 unity連線選擇

   此腳本掛在左側按鈕上 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; usi

原创 循環移動

  using System.Collections; using System.Collections.Generic; using UnityEngine; public class tets : MonoBehaviour {

原创 unity 截屏png保存並提取應用

  using UnityEngine; using System.Collections; public delegate void CallBack();//利用委託回調可以先關閉UI,截取到沒有UI的畫面 /// <summar

原创 Animator 多個鏡頭切換

using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; public class Test

原创 字符數組查重置頂

using System.Collections; using System.Collections.Generic; using UnityEngine; public class String_demo : MonoBehavi

原创 CityEngine(cga規則備份)

第一種利用CityEngine快速建模,模型文件osm從OpenStreetMap下載 屋頂規則連接 相關教程:簡單易懂 /**  * File:    random.cga  * Created: 20 May 2019 10:37:4

原创 unity球面上均勻分佈N個點

轉自:https://blog.csdn.net/welfare8888/article/details/81449494 using System.Collections; using System.Collections.Gener