luoyikun

导航

统计

04 2018 档案

unity3d:粒子随摄像机远近有大小变化bug
摘要:解决办法 找到粒子放材质球的属性栏,找到Max particle Size 属性把他的大小调到和粒子大小属性差不多 阅读全文

posted @ 2018-04-26 12:26 luoyikun 阅读(20) 评论(0) 推荐(0) 编辑

unity3d:ugui世界坐标朝向摄像机
摘要:using UnityEngine; using System.Collections; public class LookAtCam : MonoBehaviour { public Transform m_camTrans; // Use this for initialization void 阅读全文

posted @ 2018-04-26 09:49 luoyikun 阅读(16) 评论(0) 推荐(0) 编辑

vs 生成事件,复制生成的exe到指定文件夹
摘要:copy /Y "$(TargetDir)123.exe" "E:\xxx\" 阅读全文

posted @ 2018-04-19 11:27 luoyikun 阅读(3) 评论(0) 推荐(0) 编辑

unity3d shader 双面材质
摘要:// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) Shader "Standard(Two Side)" { Properties { _Colo 阅读全文

posted @ 2018-04-18 15:24 luoyikun 阅读(55) 评论(0) 推荐(0) 编辑

unity3d粒子缩放
摘要:using UnityEngine; using System.Collections; using UnityEditor; public class ParticleScaler : EditorWindow { float scaleMultiplier = 1.0f; [MenuItem(" 阅读全文

posted @ 2018-04-18 09:26 luoyikun 阅读(17) 评论(0) 推荐(0) 编辑

unity 高仿汽车灯光
摘要:一:新建空对象 GameObject -> Create Empty (命名: Lamp) 二:为新建对象 Lamp 添加组件 Lens Flare Component -> Effects -> Lens Flare 三:修改Standad Assets 下的Small Flare 参数Flare 阅读全文

posted @ 2018-04-17 18:01 luoyikun 阅读(10) 评论(0) 推荐(0) 编辑

unity3d Shader:Ugui Text 穿透模型与背景显示
摘要:Shader代码 Shader "CustomUI/FirstText" { Properties { _MainTex ("Font Texture", 2D) = "white" {} //MASK SUPPORT ADD _StencilComp("Stencil Comparison", F 阅读全文

posted @ 2018-04-13 10:59 luoyikun 阅读(17) 评论(0) 推荐(0) 编辑

unity3d+vive+vrtk:手柄碰撞到ui触发响应
摘要:在canvas下挂脚本 [Tooltip("Determines if a UI Click action should happen when a UI Pointer game object collides with this canvas.")] public bool clickOnPoi 阅读全文

posted @ 2018-04-09 16:00 luoyikun 阅读(8) 评论(0) 推荐(0) 编辑

unity3d:vscode+luaide断点调试xlua
摘要:准备工作: 1.下载vscode 2.下载luaide 免费版:https://www.jianshu.com/p/a2142d4f119c,下载后将zip文件解压到 C:\Users\Administrator.vscode\extensions 但是: 调试luaide的示例工程 1.https 阅读全文

posted @ 2018-04-06 23:53 luoyikun 阅读(50) 评论(0) 推荐(0) 编辑

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