随笔分类 -  Unity

摘要:Android Keystore Manager ios release -> debug 阅读全文
posted @ 2022-10-28 14:31 shenlei_blog 阅读(22) 评论(0) 推荐(0) 编辑
摘要:SingletonMonoBehaviour.cs using System.Collections; using System.Collections.Generic; using UnityEngine; namespace gslb.core.util { public class Singl 阅读全文
posted @ 2022-10-13 15:26 shenlei_blog 阅读(133) 评论(0) 推荐(0) 编辑
摘要:Unity GameManage类主要用于定义常用组件资产的分配,统一配置到GameManage挂载的组件上,使用的时候通过,GameManage.GetInstance.PublicObject获取 //define using System; using System.Collections; 阅读全文
posted @ 2022-09-29 16:38 shenlei_blog 阅读(67) 评论(0) 推荐(0) 编辑
摘要:Unity Instantiate是对对象的完整Copy // Instantiate如果只指定original,那么组件生成路径就是Scenes下面,坐标为世界坐标 //所以我们一般需要指定父节点position,获取的坐标也就是相对坐标(相对于父节点) public static T Insta 阅读全文
posted @ 2022-07-08 17:11 shenlei_blog 阅读(813) 评论(0) 推荐(0) 编辑
摘要:我们在unity中用脚本绑定UI对象的时候,一般可以使用GameObject.Find()的方式或者GetComponent这两种方式来获取 具体区别如下: //GameObject.Find的方式查找目标的路径是从Assert的相对路径来查找的,不用将脚本挂载到要查找的对象也可以实现查找,Game 阅读全文
posted @ 2022-07-08 16:04 shenlei_blog 阅读(425) 评论(0) 推荐(0) 编辑
摘要:Unity中Transform中的Scale包含set,get方法,但是通过set设置无法改变对象属性,要用到以下方法。 scaleX = ground.transform.localScale.x; scaleY = ground.transform.localScale.y; scaleZ = 阅读全文
posted @ 2022-07-07 16:06 shenlei_blog 阅读(2192) 评论(0) 推荐(0) 编辑
摘要:#unity学习笔记 环境配置:unity 2022.1.0b16 && vs 2022 刚接触unity,写脚本的时候发现没有联想输出,而且项目状态也是杂项 首先看一下vs tools for unity有没有安装,在vs installer 中选择修改。 如果配置了以后可以重启unity和vs, 阅读全文
posted @ 2022-04-19 15:41 shenlei_blog 阅读(687) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示