Unity FixedUpdate & Maximum Allowed TimeStep
1201 日 , 2024 17:36
Unity中设置 允许的最大帧数,锁定游戏的最大帧率(游戏锁帧)
1201 日 , 2024 15:24
Chart Graph动态添加数据
using System; using ChartAndGraph; using UnityEngine; using UnityEngine.UI; using Random = UnityEngine.Random; public class RealTimeGraph : MonoBehaviour { public GraphChart G…
Unity时钟
using UnityEngine; using UnityEngine.UI; public class ClockControl : MonoBehaviour { public Transform clock; public Slider slider; public Vector3 targetRotation; public Vector…
让AVpro支持透明视频
将mov视频通过ffmpeg再次转格式,分辨率能被4整除 ffmpeg -i .\4T4R城市.mov -c:v hap -vf "scale=864:540,setsar=1" -format hap_alpha 4T4RCity.mov
UI事件
4.5.2 UI事件UGUI的事件非常全面,前面提到的Button、Toggle和Slider组件都是通过接入特定的事件进行扩展的。只要我们掌握底层UI事件,就可以扩展出各种事件的结果了。首先来看看UI事件有哪些。IPointerEnterHandler- OnPointerEnter:进入该区域时调用。IPointerExitHandler - …
Fresnel(菲涅尔)
Shader "Nina/Shader/Inking/Fresnel Reflection" { //属性 Properties { //主纹理 _MainTex("Main Texture", 2D) = "white" {} //菲涅尔基础值 _FresnelBase("Fresnel Base", Range(0, 1)) = 1 //菲涅尔…
仪表盘
using System; using UnityEngine; using UnityEngine.UI; public class TestController : MonoBehaviour { public Image imageNeedle; public Slider slider; private float currentSpeed…