
unity
fqkw6
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vscode+unity+Emmylua调试使用教程
vscode+unity+Emmylua调试使用教程原创 2022-07-01 18:12:17 · 3661 阅读 · 0 评论 -
vscode unity代码提示
vscode unity代码提示原创 2022-07-01 18:09:52 · 1209 阅读 · 0 评论 -
unity升级后 tolua 报错解决
找到报错的位置,把该方法加入到 ToLuaExport.cs 的 memberFilter列表里清除warp文件重新打原创 2022-05-29 09:48:02 · 1033 阅读 · 0 评论 -
vscode 常用设置
{ "workbench.sideBar.location": "right", "files.autoGuessEncoding": true, "prettier.jsxBracketSameLine": true, "window.zoomLevel": 1, "bracketPairColorizer.depreciation-notice": false, "prettier.useEditorConfig": false, "files.exclude"...原创 2022-03-29 22:22:56 · 593 阅读 · 0 评论 -
vs2017生成后事件例子
ddd原创 2020-11-14 00:10:29 · 504 阅读 · 0 评论 -
python 安装pip,并配置导出excel tocs tolua
一,1,安装python2,安装vscode,3,在vscode安装python4,自动安装pip5,配置环境变量C:\Python27\Scripts6,打开C:\Python27\Scripts 路径执行cmd 把pip.exe拖上去 执行就可以了若pip版本低 cmd执行 ,python -m pip install --upgrade pip 升级二,1,安装python,2,下载pip,压缩包解压到非中文路径,cmd执行cd pip路径 python set原创 2020-05-23 19:24:08 · 298 阅读 · 0 评论 -
unity bitbucket 代码
https://bitbucket.org/Unity-Technologies/原创 2020-07-18 14:38:51 · 320 阅读 · 0 评论 -
获得GameObject在Hierarchy中的完整路径
using UnityEditor;using UnityEngine;public class GameObjectCopyPath : Editor{ private static TextEditor textEditor = new TextEditor(); [MenuItem("GameObject/CopyPath _F12", priority = 12)] private static void NewMenuOption() { if原创 2020-07-04 14:04:44 · 1995 阅读 · 0 评论 -
手游阴影
https://www.pianshen.com/article/7306130842/原创 2020-06-14 23:38:05 · 244 阅读 · 0 评论 -
unity优化干货
https://blog.uwa4d.com/archives/Index.html原创 2020-06-03 11:20:48 · 218 阅读 · 0 评论 -
Legacy_Particle_System_Updater
/* * Legacy Particle System Updater * A tool that can be used to convert Legacy Particle Systems into new Particle System Components. * https://forum.unity.com/threads/release-legacy-particle-system-updater.510879/ * * v1.0 * Initial release * * v1原创 2020-06-01 10:19:44 · 647 阅读 · 0 评论 -
接上一篇博客,eclipse unity与java互相调用,
using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public class Test : MonoBehaviour{ public Text[] TT; void Start() { // 直接调用java的静态方法, 我比较喜欢这种,简单明了 AndroidJavaClass klass = ne原创 2020-05-31 22:33:01 · 216 阅读 · 0 评论 -
unity 使用 eclipse调用安卓
1,安装eclipse2,安装安卓sdk (和unity使用的最好分开安装)3,安装adt原创 2020-05-31 12:19:46 · 232 阅读 · 0 评论 -
C#版消息全局监听与通知
using System.Collections;using System.Collections.Generic;using UnityEngine;/// <summary>/// 消息传递/// </summary>public class EventDispatcher{ public delegate void EventHandler(params object[] objs); private Dictionary<EventEnum原创 2020-05-20 19:20:00 · 1140 阅读 · 0 评论 -
ILRuntime unity中用vscode编译 工具
using System;using System.Collections.Generic;using System.Diagnostics;using System.IO;using UnityEditor;using UnityEngine;public static class ILTools{ private const string dllName = "Hotfix.dll"; private const string pdbName = "Hotfix.pdb";原创 2020-05-20 10:15:45 · 820 阅读 · 0 评论 -
学习云风大神的博客
https://blog.codingnow.com/原创 2020-05-17 18:45:28 · 230 阅读 · 0 评论 -
unity AssetBulid打包简易工具
using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor;using System.IO;/// <summary>/// 打包/// </summary>public class AssetBulidPoolDHL : Editor{ #region 打包 [MenuItem("AssetBundle/Build As原创 2020-05-14 21:25:03 · 426 阅读 · 0 评论 -
LegacyParticleUpdater UNITY_2018_3之前的版本自动更新粒子系统
/**LegacyParticleSystemUpdater*AtoolthatcanbeusedtoconvertLegacyParticleSystemsintonewParticleSystemComponents.*https://forum.unity.com/threads/release-legacy-particle-system-updater.510879/**v1.0*Initialrelease...原创 2020-05-14 17:55:43 · 1500 阅读 · 0 评论 -
unity 使用UnityWebRequest
UnityWebRequest.Get(url) 可以加载服务器和本地的资源,byte也可以保存到本地 可以加载资源,文本,图片等UnityWebRequestAssetBundle.GetAssetBundle(url),只加载assetbunild 可以加载服务器和本地的资源byte不可以保存到本地...原创 2020-05-12 16:53:55 · 828 阅读 · 0 评论 -
安卓读取资源路径
Application.streamingAssetsPath 其实就等于“jar:file://” + Application.dataPath + “!/assets/”;然而问题就出现在这个路径上。我打印了一下LOGApplication.streamingAssetsPath = jar:file:///data/app/com.xxx.xxx-1.apk!/assetsApplication.dataPath+”!assets” = /data/app/com.xxx.xxx-1.a.原创 2020-05-12 10:51:11 · 540 阅读 · 0 评论 -
使用Unity3d和C#的一些属性来设置特殊行为
https://www.cnblogs.com/linxmouse/p/8497072.html使用Unity3d和C#的一些属性来设置特殊行为使用Unity的C#语言,利用属性(Attribute)来类定义和变量定义或区分其他的变量,您可以设置一种特殊行为例如,您添加[SerializeField]属性变量,私有变量标识序列化。[SerializeField]...转载 2020-05-08 11:56:57 · 344 阅读 · 0 评论 -
unity 版本地址
https://unity.cn/releases原创 2020-04-29 10:00:56 · 668 阅读 · 0 评论 -
Android SDK
unity用。Android SDK Tools 26.1.1与Ndk 19.0.5232133注意:文件删除前注意备份!tools文件夹放在SDK存放的文件夹内(如已经有了这个文件夹请事先删除)NDK放在\Editor\Data\PlaybackEngines\AndroidPlayer\NDK里,如果没有这个NDK文件夹请新建。如果NDK文件夹里有文件请删除链接:https://p...原创 2020-04-22 21:47:13 · 1154 阅读 · 1 评论 -
unity 打包安卓 工具sdk下载地址
http://tools.android-studio.org/index.php/sdk/原创 2020-04-22 20:45:45 · 566 阅读 · 0 评论 -
unity预设体路径作为常量导入到lua 脚本中
unity预设体路径作为常量导入到lua 脚本中这个脚本在执行lua 打包之前执行在lua 中使用预设体名字 就可以load 的防止手输入路径错误usingSystem.Collections.Generic;usingUnityEngine;usingSystem.Text;usingUnityEditor;publicclassAddressCofing...原创 2020-04-22 20:35:37 · 204 阅读 · 0 评论 -
打印机效果 蹦字
using UnityEngine;using System.Collections;using UnityEngine.UI;public class DaYinJi : MonoBehaviour { public GameObject dayinji; private string str; public int length;...原创 2019-11-25 15:19:40 · 180 阅读 · 0 评论 -
LayoutGroup 新增子物体时 界面排版刷新方法
适用于挂载GridLayoutGroup / VerticalLayoutGroup / HorizontalLayoutGroup 的父物体布局刷新LayoutRebuilder.ForceRebuildLayoutImmediate((你的父物体)as RectTransform);LayoutGroup rectParent = m_TopRightButtonsR...原创 2019-11-25 15:15:25 · 1065 阅读 · 0 评论 -
unity一个利用协程写的时间工具,经过很多次使用
using System;using System.Collections;using System.Collections.Generic;using UnityEngine;public class Test : MonoBehaviour{void Start(){//UtilDtime.DelayExe...原创 2019-11-25 15:14:57 · 541 阅读 · 0 评论 -
ScrollRect 回到顶部
Scroller.verticalNormalizedPosition=0; 1是底部原创 2019-11-25 15:12:21 · 2345 阅读 · 0 评论 -
unity判断物体是否在屏幕内
/// <summary> /// 是否在屏幕内 /// </summary> /// <param name="targetPosition">目标点</param> /// <returns></returns> protected bool IsInScreen(Vect...原创 2019-11-25 15:06:09 · 601 阅读 · 0 评论 -
unity 如何定义 宏
playsetting设置有该字段宏就会执行块里面的代码public class Test : MonoBehaviour{ // Start is called before the first frame update void Start() {#if UNITYTESTDebug.Log("执行");...原创 2019-11-25 15:05:23 · 178 阅读 · 0 评论 -
很多时候都需要判断场景里物体离玩家最近的距离的物体,下面分享一个方法
SpacecraftEntity main = gameplay.GetEntityById<SpacecraftEntity>(gameplay.GetMainPlayerUID());//获取玩家 List<SpacecraftEntity> npcs = gameplay.GetEntities<SpacecraftEntity...原创 2019-11-25 15:03:47 · 278 阅读 · 0 评论 -
倒序删除子物体
intcount = memberItem.transform.childCount; for(inti = 0; i { GameObjectgo= memberItem.transform.GetChild(count-1-i).gameObject; Destroy(go);原创 2017-08-18 11:11:27 · 210 阅读 · 0 评论 -
初识Socket_1
//服务器端usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Net;usingSystem.Net.Sockets;namespacenet{原创 2017-08-18 11:12:53 · 202 阅读 · 0 评论 -
实时灯光屏幕渐变
floattimerFader = 0; IEnumeratorScreenChange(floattime) { floattemp = 500; while(time > 0) { timerFader +=Time.time; ti原创 2017-08-18 11:13:35 · 441 阅读 · 0 评论 -
重写动画 工具
privateAnimationClip[] clips; protectedDictionarystring,AnimationClip> dicClip =newDictionarystring,AnimationClip>(); /// ///重写动画 /// ///name"> public原创 2017-08-18 11:15:06 · 209 阅读 · 0 评论 -
unity 各个平台下运行使用
voidDebugPlatformMesaage() { stringplatform;#ifUNITY_EDITOR platform ="hi,大家好,我是在unity编辑模式下";#elifUNITY_XBOX360 platform="hi,大家好,我在XBOX360平台"原创 2017-08-18 11:09:10 · 573 阅读 · 0 评论 -
InverseTransformPoint使用
InverseTransformPoint变换位置从世界坐标到局部坐标。和Transform.TransformPoint相反。InverseTransformDirection变换的方向从世界坐标转换到局部坐标。和Transform.TransformDirection相反。例如物体a属于x的子物体,现在将a移动物体b的位置时(a还是属于x的子物体) 打印出来原创 2017-08-18 11:08:02 · 5304 阅读 · 0 评论 -
shader 双面贴图
Shader"Custom/Texture"{ Properties { _MainColor("Main Color",Color) = (1,1,1,1) _MainTexture("Main Texture",2D) ="Write"{} }原创 2017-08-18 11:04:21 · 659 阅读 · 0 评论 -
itween 简单使用
usingUnityEngine;usingSystem.Collections;usingUnityEngine.UI;publicclassTest:MonoBehaviour{ // iTween.MoveTo(obj,TargetVrec3,0.1f);原创 2017-08-18 11:02:13 · 838 阅读 · 0 评论