unity3d中的ContextMenu

    在C#代码的方法(非静态)之前增加[ContextMenu("Test1")],在编辑器运行时的Hierarchy的目录树中找到挂载此Script的component,点击右键,可以运行此代.

vs切换当前编辑文件时自动定位目录树

在编辑区,切换当前编辑文件时,"解决方案资源管理器"目录树会自动定位当前编辑的文件,并以灰色标识,当一个解决方案中的工程数目数目很多,每个工程下面又包含很多文件夹结构时,这个功能就能相当方便的自动定位出,当前编辑的文件在哪个工程中

设置方法:
[解决方案]
工具->选项- > 项目解决方案中,在解决方案资源管理器中跟踪活动项
Tools -> Options -> Project and Solutions -> Track Active Item in Solution Explore.

sublime text 2.0.2 破解码

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">----- BEGIN LICENSE ----- </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">Andrew Weber </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">Single User License </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">EA7E-855605 </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">813A03DD 5E4AD9E6 6C0EEB94 BC99798F </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">942194A6 02396E98 E62C9979 4BB979FE </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">91424C9D A45400BF F6747D88 2FB88078 </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">90F5CC94 1CDC92DC 8457107A F151657B </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">1D22E383 A997F016 42397640 33F41CFC </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">5CDB7036 E56DE1C0 EFCC0840 650CD3A6 </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">B98FC99C 8FAC73EE D2B95564 DF450523 </span>

<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.200000762939453px;background-color:#FFFFFF;">------ END LICENSE ------ </span>

CCClippingNode无效的结果方法

最近使用了cocos2d-x的CCClippingNode做遮罩效果,在VS下编译可以出现效果,但是在安卓上毫无效果,发现网上也有人提出这个问题,先把方法记下来。
原帖地址:http://cocos2d-x.org/boards/6/topics/20141?r=20567#message-20567

for iOS:

in AppController replace the gl-view creation with:

EAGLView *__glView = [EAGLView viewWithFrame: [window bounds]
 pixelFormat: kEAGLColorFormatRGBA8
 depthFormat: GL_DEPTH24_STENCIL8_OES
 preserveBackbuffer: NO
 sharegroup: nil
 multiSampling: NO
 numberOfSamples: 0];

for Android:

in game activity:(在安卓项目的入口文件中)

public Cocos2dxGLSurfaceView onCreateView()
{
    Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
    glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
    return glSurfaceView; 
}