随笔分类 - 游戏开发
摘要:using UnityEngine; using System.Collections; using UnityEditor; [CustomEditor( typeof( MessageLog ) )] public class MessageLogEditor : Editor { public override void OnInspectorGUI() { Me...
阅读全文
摘要:实现原理:实际上就是先利用渲染队列渲染,然后再利用ZTest,改变渲染的遮挡关系。PS:Depth Testing:深度测试,也叫深度缓冲。只有最靠近观察者的物体会被绘制。深度即Z,该值越小表示离观察者越近,该值越大表示离观察者越远。具体操作步骤:1、修改NGUI的Unlit - Transpare...
阅读全文
摘要:1、非Mono单例: 1 using System; 2 using System.Reflection; 3 using System.Collections.Generic; 4 5 public static class Singleton where T : class 6 { 7 ...
阅读全文

浙公网安备 33010602011771号