原创 unity3d lua使用錯誤 在同時使用require()lua 是時候最多隻能有512個是否會出現adnroid和ios 奔潰

unity3d lua使用錯誤 在同時使用require()lua 是時候最多隻能有512個是否會出現adnroid和ios 奔潰

原创 unity3d AR 支持橫豎屏翻轉

廢話不多直接上代碼 using System.Collections; using System.Collections.Generic; using UnityEngine; public class ARWebCamera

原创 unity3d讓模型不受3dCamera FOV的影響

當3dCamera 調整fov 的時候,被查看的物體會產生位移,或者縮放的的效果, 比如我們在3dCamera 顯示一個logo,是希望這個Quad 是不受到Camera的fov影響的 上代碼 public class FovTe

原创 unity3d 加載卡loading 分析, android 之外置sd卡 問題

現在手機很多都可以用插拔式sd卡用來擴充存儲大小,但這些外接設備也會引發一些未知的app運行問題,先看一下sd類型 可見不同sd卡對io速度也不同,所以對app的影響也又所有不同, 在此送上一份可信的數據來看下影響層面 上圖可

原创 unity3d 修改高棉字體對unity支持

概述 目前unity最新版本也沒有對高棉文字進行支持,所以只能通過修改ttf字體文件進行處理 在修改過程中發現多數文本閱讀軟件對高棉字體顯示都是有問題的(如wps,notepad++),最後選擇了window自己的txt記事本爲顯

原创 Sub-emitters must be children of the system that spawns them

關於unity引擎相關錯誤: Sub-emitters must be children of the system that spawns them 解答: 在編輯器重現方式 Particle System 的Sub Emit

原创 unity3d 獲取 Advertising ID

unity3d 獲取Advertising ID 廢話不多直接上代碼 public static string GetAdvertisingID() { string _strAdvertising

原创 unity3d android 獲取是否安裝app

unity3d android 獲取是否安裝app 廢話不多直接上代碼 public static bool IsInstallApp(string packageAndroidName) { #if (UNITY

原创 unity3d android 圖片插入相冊顯示 Insert Image To MediaStore

unity3d android 圖片插入相冊顯示 廢話不多直接上代碼 public static void InsertImageToMediaStore(string filePath, string fileName)

原创 unity3d 獲取android id

unity3d 獲取android id 廢話不多直接上代碼 public static string GetAndroidID() { string _strAndroidID = "none";

原创 unity3d 獲取android 手機所有安裝的apk 和包名

unity3d 獲取android 手機所有安裝的apk 和包名 廢話不多直接上代碼 public static List<string> GetAllApk() { List<string> apk

原创 unity3d android獲取app 包名

unity3d android獲取app 包名 廢話不多直接上代碼 public static string GetPackageName() { string _strPackageName =

原创 unity3d 獲取內存 android Used PssMemory

unity3d 獲取內存 android Used PssMemory 廢話不多直接上代碼 public static int GetUsedPssMemory() { int memory = -1;

原创 unity3d The file none is corrupted!Remove it and launch unity again! Position out of bounds!

關於unity引擎錯誤:The file none is corrupted!Remove it and launch unity again! Position out of bounds! 解答: 這個錯誤是unity 一個c

原创 unity3d 加載卡頓,File.Exists 罪魁禍首之天坑

File.Exists 是用來判定文件是否存在,然後進行加載的常用邏輯,但也是造成加載卡頓的 罪魁禍首, 這裏測試,在華爲v10 ,1加手機,會特別明顯, 我用moto手機測試感覺沒什麼問題,也許跟手機裝的app數量也有關係,總