模型淡入淡出

作者:追风剑情 发布于:2021-12-29 18:40 分类:Shader

Shader Shader "Custom/HalfMask" { Properties { _MainTex ("Texture", 2D) = "white" {} _Color ("Color", Color) = (1, 1, 0, 0) _Height("Height", range(0, 1)) = ...

阅读全文>>

标签: Shader

评论(0) 浏览(1828)

导航箭头

作者:追风剑情 发布于:2021-12-21 15:12 分类:Unity3d

一、路径指向箭头 1、创建shader //导航箭头 Shader "Custom/NavPathArrow" { Properties { _MainTex ("Texture", 2D) = "white" {} _ScrollYSpeed("Y Scroll Speed", Range(-20, 20)) = 2 ...

阅读全文>>

评论(0) 浏览(7410)

Windows10投屏

作者:追风剑情 发布于:2021-12-15 23:47 分类:其他

一、设置->系统

阅读全文>>

评论(0) 浏览(1644)

事件系统(UnityEngine.EventSystems)

作者:追风剑情 发布于:2021-12-11 19:02 分类:Unity3d

https://docs.unity3d.com/Packages/com.unity.ugui@1.0/api/UnityEngine.EventSystems.html 注意:非UGUI元素要响应事件,需要在 Camera 上添加 PhysicsRaycaster 组件。 using UnityEngine; using UnityEngine.Events; usi...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1476)

UGUI—布局组(LayoutGroup)

作者:追风剑情 发布于:2021-12-8 10:50 分类:Unity3d

一、水平居中布局 using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 水平居中布局 /// </summary> public class UIHorizontalLayoutGroup : MonoBehavi...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1873)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号