luoyikun

导航

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页

2021年8月24日 #

lua面向对象:new,继承,多态

摘要: 概述: lua要实现类,继承,多态 BaseClass(super)为生成基类公共方法,内部开辟新的以class_type为模板返回,主要为类的声明服务,一个类有的__init(构造),__delete(析构),.super(父类),.New(创建对象),setmetatable(class_typ 阅读全文

posted @ 2021-08-24 00:35 luoyikun 阅读(71) 评论(0) 推荐(0)

2021年8月11日 #

转-C#多播委托因异常而终止的解决方案

摘要: 1.C#多播委托执行到某个方法抛出异常的时候,整个委托的迭代将在抛出异常的地方退出终止,后面的方法就不会再去执行了; 2.可以通过自己设计迭代方法来容错,起到即使抛出异常,委托链也不会中止执行的效果; #define UseEvent using System; using System.Colle 阅读全文

posted @ 2021-08-11 22:01 luoyikun 阅读(24) 评论(0) 推荐(0)

2021年7月8日 #

unity3d:使用一张静态图作为背景图,摄像机挂镜头处理脚本

摘要: 1.导入unity 标准资源 2.摄像机上挂载 阅读全文

posted @ 2021-07-08 00:47 luoyikun 阅读(40) 评论(0) 推荐(0)

2021年7月2日 #

unity3d:CatmullRom采样曲线,沿着曲线移动

摘要: 采样曲线生成,UnityStandardAsset赛车工程里 public class WaypointCircuit : MonoBehaviour { [HideInInspector]public WaypointList waypointList = new WaypointList(); 阅读全文

posted @ 2021-07-02 01:31 luoyikun 阅读(60) 评论(0) 推荐(0)

2021年4月4日 #

unity3d与android交互:aar导出给unity:闪退,Theme.AppCompat.Light,appcompat-v7问题

摘要: unity接sdk,打包报错 No resource found that matches the given name ‘Theme.AppCompat.Light’. 这是因为sdk中用了这个主题,冒然的删除,会导致后面出来的功能有问题 使用appcompat-v7-23.0.0.aar解决,这 阅读全文

posted @ 2021-04-04 23:56 luoyikun 阅读(43) 评论(0) 推荐(0)

2020年10月23日 #

unity3d:text描边

摘要: using UnityEngine; using System.Collections.Generic; using UnityEngine.UI; namespace Effects { [RequireComponent(typeof(Text))] [AddComponentMenu("UI/ 阅读全文

posted @ 2020-10-23 11:46 luoyikun 阅读(21) 评论(0) 推荐(0)

2020年9月29日 #

unity3d:向量计算:获得两点连线的垂直向量,判断目标方位(前后左右)

摘要: 获得两点连线垂直向量 /// <summary> /// 获取某向量的垂直向量 /// </summary> public static Vector3 GetVerticalDir(Vector3 _dir) { //(_dir.x,_dir.z)与(?,1)垂直,则_dir.x * ? + _d 阅读全文

posted @ 2020-09-29 22:08 luoyikun 阅读(188) 评论(0) 推荐(0)

2020年8月18日 #

unity3d模拟Scene视图camera控制

摘要: 中键滚动,camera前进后退 右键拖动,camera原地旋转 中键拖动,camera上下左右平移 using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraCt 阅读全文

posted @ 2020-08-18 21:04 luoyikun 阅读(41) 评论(0) 推荐(0)

2020年8月16日 #

unity3d:WebRequest post请求

摘要: 命名空间using System.Net; public static string GetResponse(string reqString) { string result = ""; WebRequest req = WebRequest.Create(reqString); req.Cont 阅读全文

posted @ 2020-08-16 16:59 luoyikun 阅读(8) 评论(0) 推荐(0)

2020年5月19日 #

unity3d:激活码系统(根据PC机器码,给对应激活码完成软件注册)

摘要: 1.机器码为明文,采用DES加密 2.判断输入激活码与机器码的密文一致,激活成功 using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; using System.IO; namespace KeySce 阅读全文

posted @ 2020-05-19 20:36 luoyikun 阅读(180) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页