自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

原创 插件笔记_CryptoPlayerPrefs-1.3.3

Thanks for purchasing the CryptoPlayerPrefs class for Unity3D!The CryptoPlayerPrefs class is an alternative for the PlayerPrefs class, by adding cryptography.密码Thus, it is possible to secure s

2015-03-30 02:59:44 494

原创 drawcall_0

【一】渲染顺序U3D的渲染是有顺序的,U3D的渲染顺序是由我们控制的,控制好U3D的渲染顺序,你才能控制好DrawCall一个DrawCall,表示U3D使用这个材质/纹理,来进行一次渲染,那么这次渲染假设有3个对象,那么当3个对象都使用这一个材质/纹理的时候,就会产生一次DrawCall,可以理解为一次将纹理输送到屏幕上的过程,(实际上引擎大多会使用如双缓冲,缓存这类的手段来优化这个过程

2015-03-22 21:48:37 442

原创 NGUI

2015-03-20 21:43:49 309

原创 2D游戏

2015-03-17 02:49:43 608

原创 unity3d操作XML(C#)

在unity3D中使用xml的方法总结:(使用c#)1.需要引入一些包[html]view plaincopyprint?1        usingUnityEngine;2        usingSystem;3        usingSystem.Xml;4        usingSystem.Xml.Serialization;

2015-03-16 22:25:58 423

原创 HUDFPS

using UnityEngine;using System.Collections; public class HUDFPS : MonoBehaviour { // Attach this to a GUIText to make a frames/second indicator.//// It calculates frames/second over each updat

2015-03-16 21:44:37 584

原创 场景loadiing

using UnityEngine;using System.Collections;public class loadingscene : MonoBehaviour { int displayProgress = 0; // Use this for initialization void Start () { StartCoroutine("StartLo

2015-03-16 20:43:22 459

原创 Javascrpt_0

AAAAAAAAAAAAAAAAAAAAA .highlight {color:red} function showBrowserType() { document.getElementById("readout").innerHTML = "Your Broser" + "" + navigato

2015-03-15 19:25:17 432

原创 每天学学_0

System.DateTime.Now系统时间----------------------------------EditorApplication.currentScenestatic var currentScene :stringDescriptionThe path of the scene that the user has currently open

2015-03-14 22:38:21 477

原创 初始化写在Awake里

start不行啊

2015-03-14 12:41:29 570

原创 'tex2Dproj': no matching 2 paramete

Unity版本太高Shader会报错解决:    float4 depth = tex2Dproj(_CameraDepthTexture, In.screenPos.xyzw);

2015-03-13 02:24:13 2361 1

原创 架设游戏服务器_0

TCP/IP UDP HTTP SCOKET区别网络:应用层 -----HTTP---如何包装数据表示层会话层传输层 -----TCP网络层 ------IP协议数据链路层 物理层----------------------------------------Socket ---TCP/IP---如何在网络中传

2015-03-11 11:41:29 877

原创 表面着色器Surface Shader2

1)必须放在CGPROGRAM ENDCG 中2)用#program surface 表面函数光照模型 [可选参数]//========可选参数为 Lambert   |    BlinnPhong   //=======表面函数形式:vodi surf (Input IN,inputSurfaceOutput o)//======

2015-03-10 11:07:58 630

原创 今天被Unity的设置恶心到了...

上面这个是正确的也是我要的效果

2015-03-09 21:36:01 568

原创 Shader_3

Shader本体前面杂项说完了,终于可以开始看看最主要的部分了,也就是将输入转变为输出的代码部分。为了方便看,请容许我把上面的SubShader的主题部分抄写一遍123456789101112131415CGPROGRAM

2015-03-05 21:54:29 479

原创 Shader_2

LODLOD 很简单,它是Level of Detail的缩写,在这里例子里我们指定了其为200(其实这是Unity的内建Diffuse着色器的设定值)。这个数值决定了我们能用什么样的 Shader。在Unity的Quality Settings中我们可以设定允许的最大LOD,当设定的LOD小于SubShader所指定的LOD时,这个SubShader将不可用。Unity 内建Shader

2015-03-05 19:35:01 399

原创 Shader_1.1

这MONO大坑啊,写Shader都没提示的tag 少个 s 一直是个粉红色

2015-03-05 13:49:33 536

原创 Shader_1

Tags表面着色器可以被若干的标签(tags)所修饰,而硬件将通过判定这些标签来决定什么时候调用该着色器。比如我们的例子中SubShader的第一句Tags { "RenderType"="Opaque" }告 诉了系统应该在渲染非透明物体时调用我们。Unity定义了一些列这样的渲染过程,与RenderType是Opaque相对应的显而易见的 是"RenderType" =

2015-03-05 01:32:13 422

原创 XCode_IBAction_IBOutlet

Note: IBAction is a constant (defined as void) that is used to tell Xcode to treat a method as an action for target-action connections.The sender parameter in the action method is the object tha

2015-03-03 17:00:54 716

原创 Shader_0

属性在Properties{}中定义着色器属性,在这里定义的属性将被作为输入提供给所有的子着色器:_Name("Display Name", type) = defaultValue[{options}]_Name - 属性的名字,简单说就是变量名,在之后整个Shader代码中将使用这个名字来获取该属性的内容 Display Name - 这个字符串将显示在unity的材质

2015-03-03 01:12:09 392

原创 拿到脚本中变量名,根据变量名名称反向输出

using UnityEngine;using System.Collections;using UnityEditor;using System.Reflection;public class YYFEasyToGetLV : EditorWindow { [MenuItem ("GameObject/Window")] static void AddWindow() {

2015-03-02 15:20:10 393

原创 hashtable_0_?

hashtable_0_?

2015-02-28 09:58:04 522

原创 跑酷解析_0

using UnityEngine;using System.Collections;using System.Collections.Generic;// class that animates the coin moving from the player to the coin indicator on the GUIpublic class CoinGUICollection :

2015-02-26 12:32:18 401

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除