xak的专栏

Sometimes when I look at the world, I can see a line behind it.

排序:
默认
按更新时间
按访问量

C#字符串连接消耗

1、Concatenation is the process of appending one string to the end of another string. When you concatenate string literals or string constants by us...

2017-10-13 21:04:33

阅读数:169

评论数:0

渲染状态改变消耗详情

参考: https://computergraphics.stackexchange.com/questions/37/what-is-the-cost-of-changing-state http://media.steampowered.com/apps/steamdevdays/sl...

2017-08-29 10:53:44

阅读数:266

评论数:0

CommandBuffer.Blit BuiltinRenderTextureType.CameraTarget为空的问题

当使用CommandBuffer来实现后处理的时候,发现cb.Blit(BuiltinRenderTextureType.CameraTarget,...)无效,在FrameDebug中看到传入的_MainTex为Whilte, 原因: 在Forward模式下,默认相机是渲染到BackBuffer...

2017-08-02 11:34:45

阅读数:864

评论数:0

Null check not work for GameObject sometimes

Example Code:       void Test(object obj)             {                 if (obj == null) {                     //Something to do                 }   ...

2017-02-10 15:07:18

阅读数:700

评论数:0

GPU截帧工具备忘

因为系统重装,需要用到GPU截帧工具来分析游戏的时候,瞎折腾了好久。一直以为自己原来用的是Nvidia的工具(因为电脑是Nviadia显卡),下载了多个版本的PerfHUD,不是本身报错,就是游戏启动报错。然后尝试SNight,也是进入到游戏之后,刚显示出HUD的时候,就报错了(尝试其他游戏是正常...

2016-10-23 14:50:09

阅读数:1075

评论数:0

Weird Shader Problem On OpenGLES 3.0

Shader在OpenGLES2.0上显示正常,在OpenGLES3.0上显示异常(Pink) 原因: struct v2f中SV_POSITION的定义放在了另外两个定义之后,似乎当SV_POSITION的定义前面有其他超过(或者等于)两个定义时候,就会出现这样的问题。 解决: 将SV_...

2016-07-20 11:03:13

阅读数:590

评论数:0

Shader Depth Offset [Polygon Offset]

Offset Factor, Units factor Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0. units...

2016-07-11 15:19:58

阅读数:2405

评论数:1

Half精度解析

故事开始于Unity Doc中关于Half的进度的解释 Medium precision: half Medium precision floating point value; generally 16 bits (range of –60000 to +60000, with ab...

2016-06-30 21:43:31

阅读数:3679

评论数:1

StaticBatchingUtility.Combine Not Working

There is a requirement for imported meshes to be usable on Combine(): "Read/Write Enabled" flag must be set on mesh import settings.

2016-05-20 15:55:52

阅读数:1360

评论数:0

Change Queue Not Work In Unity Shader

Problem: It seems like there is some sort of bug with shaders / materials regarding render queues. I have shader that is set to be in Geometry+10...

2016-03-19 10:22:02

阅读数:1005

评论数:0

Unity Terrain Optimze

1、Important Fact Resolution Property: Function: Terrain Width Size of the terrain object in its X axis (in world uni...

2015-10-16 11:06:21

阅读数:1559

评论数:0

Hide Warn Global In Unity

Sometime, The warn info are turn into error msg in unity's console, Although we can find the error msg in the bottom of msg's detail,But when we have...

2015-09-17 21:04:19

阅读数:1188

评论数:0

UIToggle修改状态无效的原因及解决办法[NGUI]

本文分析了NGUI中UIToggle在某些特定场景下修改状态无效的原因和解决方法。

2015-05-23 12:49:39

阅读数:2245

评论数:0

Pixel gap / lines that appear at the edges of sprites[NGUI]

If you use texture compression, that will cause bleeding problems. And texture filtering mode is an another culprit.  There are few solutions. * ...

2015-05-19 16:30:31

阅读数:777

评论数:0

Bezier curves And Catmull-Rom spline

Bezier curves are very convenient when you don't know the entire set of points in advance because they are very easy to build piece by piece. They a...

2015-01-09 15:24:56

阅读数:1466

评论数:0

Problem When use "Custom Editor" and "Property Drawers" The Same Time

When you use "Custom Editor" for a custom class (Mark as A,Use DrawDefaultInspector () in OnInspectorGUI()), And the class contain a list o...

2015-01-05 09:58:38

阅读数:804

评论数:0

Difference Between Select and SelectMany

定义: SelectTSource, TResult>(IEnumerableTSource>, FuncTSource, Int32, TResult>) Projects each element of a sequence into a new form ...

2014-12-09 14:30:13

阅读数:482

评论数:0

Collider2D碰撞检测异常-Rotating sprite does not rotate collider[Unity]

问题描述:在Scene中明显看到碰撞体有重叠,但是就是不触发碰撞事件。在

2014-11-20 14:46:16

阅读数:1702

评论数:0

Delete Shapes In Sprite Editor On Mac[Unity}

Because the key to delete shape in Sprite Editor on window is ""

2014-11-14 11:39:47

阅读数:702

评论数:0

AssetBundle杂谈

本文介绍了了unity中Assetbundle的使用以及使用过程中可能会碰到的一些问题。

2014-11-07 16:48:15

阅读数:1861

评论数:0

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