原本作为资源放在asset store 上卖,现在我把它免费了, 因为没啥技术含量的哈哈,不过很方便开发
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine.SceneManagement;
publicclass vicUtility {
[MenuItem("Edit/RunOrPause _F3")] // shortcut key F3 to Play (and exit playmode also)staticvoid PlayGame() {
if (!EditorApplication.isPlaying)
EditorApplication.ExecuteMenuItem("Edit/Play");
else
EditorApplication.ExecuteMenuItem("Edit/Pause");
}
[MenuItem("CONTEXT/MonoBehaviour/Pin Script", false, 620)]
privatestaticvoid PinScript(MenuCommand mc)
{
EditorApplication.ExecuteMenuItem("Window/Project");
var script= MonoScript.FromMonoBehaviour(mc.context as MonoBehaviour);
EditorGUIUtility.PingObject(script);
}
[MenuItem("CONTEXT/MonoBehaviour/Pin Editor", false, 619)]
privatestaticvoid PinEditor(MenuCommand mc)
{
Object editorClass;
EditorApplication.ExecuteMenuItem("Window/Project");
var script= MonoScript.FromMonoBehaviour(mc.context as MonoBehaviour);
var guidStrs= AssetDatabase.FindAssets(script.name+"Editor");
if(guidStrs.Length==0)
guidStrs= AssetDatabase.FindAssets(script.name+"Inspector");
if(guidStrs.Length>0){
var path = AssetDatabase.GUIDToAssetPath(guidStrs[0]);
editorClass = AssetDatabase.LoadAssetAtPath
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object reference
出现以上异常.然后就在baidu上
cmd命令打jar是如下实现:
在运行里输入cmd,利用cmd命令进入到本地的工作盘符。(如我的是D盘下的文件有此路径 D:\workspace\prpall\WEB-INF\classes)
现在是想把D:\workspace\prpall\WEB-INF\classes路径下所有的文件打包成prpall.jar。然后继续如下操作:
cd D: 回车
cd workspace/prpal
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
public class Solution {
public int maximalRectangle(char[][] matrix)
随着RESTful Web Service的流行,测试对外的Service是否满足期望也变的必要的。从Spring 3.2开始Spring了Spring Web测试框架,如果版本低于3.2,请使用spring-test-mvc项目(合并到spring3.2中了)。
Spring MVC测试框架提供了对服务器端和客户端(基于RestTemplate的客户端)提供了支持。
&nbs
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
/*you'll also need to set UIViewControllerBasedStatusBarAppearance to NO in the plist file if you use this method
英文资料:
Thread Dump and Concurrency Locks
Thread dumps are very useful for diagnosing synchronization related problems such as deadlocks on object monitors. Ctrl-\ on Solaris/Linux or Ctrl-B