UnityTips——Unity小技巧集合
AttributeRequiredAttribute效果图如下:当引用类型的property为空时,使用红色提示。
代码如下:
1、RequiredAttribute.cs
12345using UnityEngine;public class RequiredAttribute : Proper ...
Unity编辑器拓展之三十六:LinkFileLabelField和LinkUrlLabelField
本文介绍LinkFileLabelField和LinkUrlLabelField
前言本文目的在于封装一个能够Link到项目下的asset,和一个打开浏览器URL的EditorField。
源码123456789101112131415161718 ...
Unity编辑器拓展之三十五:如何在Editor下使用单例ScriptableObject
本文介绍在Editor下使用单例ScriptableObject
ScriptableSingleton GUI官方文档click here!
Unity FilePath ...
Unity编辑器拓展之三十四:在ShaderEditor中添加ToolTip
本文介绍在ShaderEditor中添加ToolTip字段提示。
Custom Shader GUI官方文档click here!
前言最近群里群友咨询如何给Shader Vector类型的参数添加 ...
Unity编辑器拓展之三十三:ReplaceComponentAttributte组件替换
本文介绍ReplaceComponentAttributte,方便使用自定义组件替换Unity原生组件。
Unity-ObjectFactory官方文档click here!
...
Unity编辑器拓展之三十二:关于多选中Preview绘制探究
本文介绍在Unity中多选Object时,Preview视图的绘制,欢迎访问😁
本篇文章,如果有不懂,欢迎留言~click here!
前言先来介绍一下本篇文章的背景,在项目中通过使用一个Scri ...
GameFramework框架源码解读(二):Setting
GameFramework框架源码解读Setting组件,欢迎访问😂
本篇文章,如果有不懂,欢迎留言~click here!
模块介绍以键值对的形式存储玩家数据,对UnityEngine.Play ...
[UIElement入门]:4.自定义元素
本系列文章介绍UIElement知识点,欢迎访问😉
UIElement官方文档
本系列文章使用的Unity版本为2019.3.7f1
...
[UIElement入门]:3.Layout Engine
本系列文章介绍UIElement知识点,欢迎访问😉
UIElement官方文档
本系列文章使用的Unity版本为2019.3.7f1
...
[UIElement入门]:2.UQuery介绍
本系列文章介绍UIElement知识点,欢迎访问😉
UIElement官方文档
本系列文章使用的Unity版本为2019.3.7f1
...