原创 C# 對象克隆 對象複製 複製構造函數
Use public class BookChapter { public string book_id; public string book_name; public
原创 Unity3d 用戶動態設置技能響應按鍵 NGUI
public class Modefiay : MonoBehaviour { private UILabel input_label; private UIButton confirm_button_chinese,
原创 Unity3d 模型 動態切割
使用插件:Shatter Toolkit ,這個插件可以切割模型 和 破壞模型 代碼 using System.Collections; using System.Collections.Generic; using Unit
原创 C# System.Data.SQLite 數據庫
引用安裝 在Nuget中找到 System.Data.SQLite(x86/x64) the official SQLite database engine for both x86 and x64 along with the ADO.
原创 C# WinForm 註冊表
SetRegistData( "DisableTaskMgr", 7); var getData = GetRegistData("DisableTaskMgr"); //getData
原创 NGUI UIButton按鈕事件的監聽
推薦使用方法4 比較簡單 性能好一點 事件監聽處理 1. 點擊事件:【UIEventListener.Get(GameObject).onClick = OnClick;】 2. 其它事件基本與【1】中一致,支持的具體事
原创 Unity3d 模型動畫控制 統一控制 Animation 和 Animator
通過一個接口統一 Animation 和 Animator 的動畫控制. using System.Collections.Generic; using UnityEngine; [SerializeField] public in
原创 C# UdpClient Udp收發
UdpClient IPAddress.Any == ip(0.0.0.0) 發送方: 需要知道 接收方的ip 和 接收方開放的端口(port) ip =接收方的ip ,port = 接收方開放
原创 win10上 安裝Tensorflow GPU版本
首先需要根據自己的顯卡 查詢支持的CUDA版本和cudnn 版本 再根據cuda版本 查詢支持的 Tensorflow版本 環境變量添加後,不會立即生效,需要從重啓電腦 CUDA依賴顯卡,先去官網check一下自己的顯卡支持的CUDA
原创 計算機中0和1的表示
0和1表示的含義 名稱 0 1 正負 正數 負數 開關 關 開 真和假 假 真 有和無 無 有 條件 false true 電路信號 無信號 有信號 電平 低電平 高電平 PC機械硬盤磁極 N 北極 S 南極 電源 斷
原创 C# 隨機中文名
using System.Collections.Generic; using Random = System.Random; public class ChineseName { /// <summary> ///
原创 Unity3d MeshCombine 模型合併
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MeshCombine : MonoBehaviou
原创 C# 爬取小說 爬蟲
採用多線程爬取 , System.Data.SQLite 數據庫存儲 發現多線程 開太多 ,電腦性能不足 造成 部分下載不了,還佔用過多資源 多線程 開少了 下載又慢, 只能說調到 中間部分 ,電腦剛剛能處理 代碼是想到哪寫到哪,
原创 WinForm TextBox
textbox允許有滾動條的屬性是什麼? 右邊屬性查找ScrollBars 設置爲 Vertical 或者both. var textBox8897 = textBox3; //多行 textBox8897.Multiline = t
原创 Unity3d LayerMask 通過名字設置層
LayerMask 設置層時,多層設置支持int類型,而不支持string類型,使用起來不方便 調用 //只檢測 Occluder 和 Player 的碰撞器層 var layerMask = Want_Collider_La