unity
unity
小小程序员_嘻嘻嘻
这个作者很懒,什么都没留下…
展开
-
Unity调用Python
unity调用python代码原创 2022-10-31 17:55:15 · 2703 阅读 · 1 评论 -
Unity UI自适应
unity ui自适应原创 2022-10-19 17:56:42 · 1462 阅读 · 0 评论 -
unityhub 启动unity闪退
unityhub启动unity失败原创 2022-09-23 17:47:50 · 731 阅读 · 0 评论 -
unity合并贴图,并读取合并贴图中任意位置贴图
1.合并图片using System;using System.IO;using UnityEditor;using UnityEngine;public class TextureCombine{ [MenuItem("Tools/TextureCombine")] static void Combine() { Texture2D pic1 = AssetDatabase.LoadAssetAtPath<Texture2D>("Ass原创 2021-04-20 12:00:22 · 2900 阅读 · 0 评论 -
unity多盏灯光设置
edit->projectsetting->quality->render-> pixel light count原创 2021-02-18 14:55:26 · 618 阅读 · 0 评论 -
unity和android的交互
unity和android的交互转载 2020-12-17 13:59:13 · 82 阅读 · 0 评论 -
unity中协程的开启和关闭
void Start() { //方法一 Coroutine coroutine = StartCoroutine(Test(2)); StopCoroutine(coroutine); //方法二 StartCoroutine("Test",2); StopCoroutine("Test"); } IEnumerator Test(float time) { ...原创 2020-11-02 15:23:47 · 696 阅读 · 0 评论 -
unity c# 解析xml
1.需要解析的xml(情况1)<?xml version="1.0"?><LoginList> <Login name="老大" sex="男" id="0" /> <Login name="老二" sex="女" id="1" /> <Login name="老三" sex="女" id="2" /></LoginList>2.代码 private void Test_01() { .原创 2020-08-12 14:25:16 · 121 阅读 · 0 评论 -
unity 单例模式
1.单例模板public class Singleton<T> where T : new(){ private static T s_singleton = default(T); private static object s_objectLock = new object(); public static T singleton { ...原创 2020-02-26 16:45:46 · 132 阅读 · 0 评论 -
unity中txt的创建、写入、读取
public Text readText; private string path; private string path2; private string content; private string[] contents; // Use this for initialization void Start () { path =...原创 2019-12-25 14:31:53 · 4291 阅读 · 1 评论 -
unity各个平台路径问题
http://www.cnblogs.com/murongxiaopifu/p/4199541.html转载 2019-04-16 17:14:53 · 224 阅读 · 2 评论 -
安卓jdk
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html原创 2019-04-01 20:59:20 · 709 阅读 · 0 评论 -
在unity中使用Newtonsoft解析json
1.需要解析的json。{ "Id": "JsonNet-Lite", "Version": "9.0.1", "Authors": [ "James Newton-King" ], "Owners": [ "Esun Kim" ], "Description": "Uni原创 2020-02-27 16:21:23 · 356 阅读 · 0 评论 -
unity2018导入模型材质丢失
1.模型导入默认设置,材质是空的。 2.把Location改为 Use External Materials(Legacy),点击Apply。会自动生成一个Materials的文件夹。原创 2019-01-28 16:33:18 · 7329 阅读 · 2 评论 -
unity中使用Litjson解析json
unity 使用LitJson插件两种方法解析json文件原创 2019-11-27 15:37:29 · 208 阅读 · 0 评论 -
Unity读取Excel表格内容
准备工作:https://download.csdn.net/download/wangjiangrong/10360345下载需要的dll,放到Unity Plugins文件夹下。新建Excel表格保存格式是 Excel 工作簿。下面是代码 ...原创 2018-12-19 11:52:25 · 1291 阅读 · 0 评论 -
Unity插件DoTween的使用
1.动画可视化操作(DoTweenPro),可以参考这个链接:https://blog.csdn.net/chinarcsdn/article/details/789635292.代码操作原创 2018-12-18 10:26:52 · 198 阅读 · 0 评论 -
Unity Mesh 合并
1.创建物体,为物体创建材质。2.创建脚本,把脚本放在CubeMain物体上。3.查看是否成功。原创 2018-12-17 17:03:07 · 301 阅读 · 0 评论 -
Unity设置和显示FPS
【代码】Unity设置和显示FPS。原创 2018-12-14 14:44:58 · 1115 阅读 · 2 评论 -
Unity Google vr打包ios报错
1.PlayerSetting 设置公司名 包名。2.OtherSetting Target minimum ios Version 8.0。3.XR Setting Virtual Reality Supported=true virtural reality sdks 添加 cardboard。4.打包xcode工程。5.关键在第6步。6.如果使用Build...原创 2018-11-30 11:31:13 · 551 阅读 · 0 评论 -
unity打包移动平台材质丢失
Edit➡ProjectSetting➡Graphics➡Always Included Shaders 添加你要打包的shader。原创 2018-11-12 11:38:35 · 3251 阅读 · 1 评论 -
unity 四元数和欧拉角的相互转换
四元数转化成欧拉角 Vector3 v3=transform.rotation.eulerAngles;欧拉角转换成四元数 Quaternion rotation = Quaternion.Euler(v3);原创 2018-09-07 15:11:51 · 19028 阅读 · 4 评论 -
unity插件EasyMovieTexture的使用
原创 2018-09-04 17:26:05 · 1855 阅读 · 0 评论 -
unity 去掉Google vr的退出按钮和设置按钮
1.有按钮但是不能用 加上:Input.backButtonLeavesApp = true;https://stackoverflow.com/questions/39433089/google-vr-unity-divider-settings-and-back-button-hiding-in-v0-9(国外网站)原创 2018-08-23 17:57:02 · 1226 阅读 · 0 评论