自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 选择物体生成Prefab

// Creates a prefab at the given path.// If a prefab already exists it asks if you want to replace itusing UnityEngine;using UnityEditor;public class CreateNewPrefab : EditorWindow...

2018-06-13 16:11:00 173

转载 C++网络开发Boost库

一.环境配置Windows 10 Visual Studio 2017 安装配置 Boosthttp://www.cnblogs.com/49er/p/7193979.html2转载于:https://www.cnblogs.com/JimmyCode/p/8854811.html

2018-04-16 10:58:00 221

转载 Unity 猫眼效果

使用到了两层Shader,依据先后遮挡关系判定渲染。1.Cull Back.shader// Upgrade NOTE: replaced '_World2Object' with 'unity_WorldToObject'// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToC...

2018-03-21 19:14:00 240

转载 React Native网络请求

发环境 Atom、phpStudy2018、Genymotion(Window10)一、环境配置1.1安装Reactnative.https://reactnative.cn/docs/0.51/getting-started.html#content1.2Android模拟器Genymotion安装https://www.cnblogs.com/whycxb...

2018-03-01 14:03:00 150

转载 Unity高德LBS

一、准备高德开发者页面注册产品1.1 http://www.cnblogs.com/U-tansuo/archive/2013/04/25/unity3d_android_sign.html1.2填写应用应用信息1.3下载Android 定位SDK http://lbs.amap.com/api/android-location-sdk/l...

2017-11-17 17:30:00 337

转载 EasyTouch物体的旋转缩放

public class ArMonoDevelop : MonoBehaviour{ // Use this for initialization //需要放大缩小旋转的物体 public GameObject rotateAndEnlargeObj; public bool isRotate = true; public ...

2017-11-14 21:25:00 617

转载 Unity截屏分享朋友圈(微信)

Unity2017.1 ShareSDKGalleryScreenshot.unitypackage一、SharSDK注册产品后台>概括二、微信开放平台上注册产品2.1Unity: PlayerSettings>OtherSetting: com.wfj.snailshellAndroid平台应用下载地址:未填写应用签名:xxxxb98a4...

2017-10-26 15:43:00 448

转载 ShareSDK打包之IOS

123456转载于:https://www.cnblogs.com/JimmyCode/p/7615263.html

2017-09-30 15:49:00 123

转载 2017VideoPlayer

using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;using UnityEngine.Video;public class StreamVideo : MonoBehaviour { public Raw...

2017-09-28 15:40:00 105

转载 Snail热更一打包工具

uLua(September 2017); Unity2017; vuforia-unity-6-2-10;Easy Touch 5 Touchscreen Virtual Controls 5.0.12转载于:https://www.cnblogs.com/JimmyCode/p/7567303.html

2017-09-21 10:33:00 109

转载 Unity游戏资源解压

Unity2017;ICSharpCode.SharpZipLib.Zip;using UnityEngine;using System.Collections;using System.IO;using ICSharpCode.SharpZipLib.Zip;public class ZipTest : MonoBehaviour{ pri...

2017-09-17 19:29:00 399

转载 动态加载Vuforia识别信息

Unity2017 ;vuforia-unity-6-2-10;using System;using System.Collections;using System.Collections.Generic;using System.IO;using UnityEngine;using Vuforia;/// <summary>/// 识别...

2017-09-17 19:23:00 194

转载 AR判断识别图是否完全在扫描范围

using UnityEngine;using UnityEngine.UI;public class AreaCheck : MonoBehaviour { //"AreaCheck"类名 ,需要和外部脚本名称保持一致 public Material Green_Mate; //申请材质变量储存绿色的材质 public Mat...

2017-08-29 11:32:00 211

转载 通过射线与物体的交互

1.鼠标平面拖拽物体Plane movePlane;float fixedDistance=2f;float hitDist, t;Ray camRay;Vector3 startPos, point, corPoint;void OnMouseDown (){ startPos = transform.position; // save pos...

2017-08-25 16:33:00 236

转载 Unity3d动画播放器

1、基本UI布局这里使用UGUI,Unity版本2017.1.0f32、在Scrollbar添加按下抬起的监听3、代码清单3.1驱动类using UnityEngine;using UnityEngine.UI;public class FootballDriver : MonoBehaviour{ public Ani...

2017-08-24 14:24:00 174

转载 love2d角度,方向以及旋转

新建程序入口main.luafunction love.load() tank = { x = 400, y = 300, w = 60, h = 100, speed = 1, rot = 0, cannon = { w = 10, ...

2017-08-24 08:10:00 147

转载 手机打包Debug显示

using System.Collections;using System.Collections.Generic;using UnityEngine;public class DeviceBuildDisplay : MonoBehaviour { internal void OnEnable() { Application...

2017-08-07 14:32:00 90

转载 Unity资源热更

Unity2017一、创建Bundle打包工具ExportAssetBundlesusing UnityEditor;using UnityEngine;public class ExportAssetBundles : EditorWindow{ [MenuItem("Assets/Build AssetBundle From Selection"...

2017-08-04 20:35:00 190

转载 AssetBundle流程备份

资源Bundle创建,这里Assets下手动创建StreamingAssets文件夹using UnityEngine;using System.Collections;using UnityEditor;public class CreateAssetBundlesMain{ [MenuItem("Custom Editor/Creat...

2017-06-22 13:50:00 74

转载 图片替换工具

using UnityEngine;using System.Collections.Generic;using UnityEditor;using System.IO;enum ImageOptions{ Load_AppLogo, Load_Outside, Load_Inside, Load_BG, Main_ArCam, Main_...

2017-06-05 15:09:00 111

转载 无双屏幕特效

Camera ShaderShader "Effect/WS_Camera" {Properties {_MainTex ("Base (RGB)", 2D) = "white" {}}SubShader {Pass{Tags{"LightMode" = "Always"}ZTest AlwaysCull offZWrite off...

2017-04-18 12:41:00 81

转载 为角色添加遮挡X-Ray显示

Shader "Characters/CharactersV6" { Properties { [MaterialToggle] _Flare ("Flare", Float ) = 0 _Flarecolor ("Flarecolor", Color) = (0.5,0.32,0.11,1) ...

2017-04-18 12:28:00 129

转载 Nginx+Tomcat部署Servlet测试

一、服务端代码 MyEclipse新建Servlet#Name:StringContentServlet#Servlet/JSPMappingUrl:/StringContentServlet.dopackage com.jimmy.Servlets;import java.io.IOException;import java.io.PrintWriter;...

2017-04-18 12:20:00 157

转载 Ubuntu 16.04数据库配置

AWSUbuntu 16.04.3 LTS一 安装MySqlsudo apt-get install mysql-server mysql-client测试mysql -u root -h "127.0.0.1" -p注释配置文件访问限制 sudo suvi /etc/mysql/mysql.conf.d/mysqld.cnf#bind-address = 127.0.0....

2017-04-18 12:09:00 93

转载 Uniyt3d截屏

按住K; V截取游戏using UnityEngine;using System.Collections;using System.IO;// Screen Recorder will save individual images of active scene in any resolution and of a specific image format...

2017-03-28 17:37:00 72

转载 Uniyt3dC#通信UDP&TCP

UDP服务端UdpServer 1 using UnityEngine; 2 using System.Collections; 3 //引入库 4 using System.Net; 5 using System.Net.Sockets; 6 using System.Text; 7 using System.T...

2017-03-23 14:10:00 128

转载 Netty实现Unity登录验证(四)

这里我们用Netty实现消息的接受及分发,服务器端的 handler 添加流程如图: 1 package com.netty.dispatch; 2 3 import com.netty.model.SocketModel; 4 import com.netty.protocol.LoginProtocol; 5 import io.netty.chan...

2017-03-04 00:51:00 262

转载 Netty实现Unity登录验证(三)

编写服务端工具类,MySQL连接及登陆信息验证,及int和byte之间的转化MySQL用户信息表结构: 1 package com.netty.util; 2 3 import java.sql.Connection; 4 import java.sql.DriverManager; 5 import java.sql.SQLException;...

2017-03-04 00:29:00 184

转载 Netty实现Unity登录验证(二)

这里主要处理二进制消息的粘包拆包 1 package com.netty.decoder; 2 3 import io.netty.handler.codec.LengthFieldBasedFrameDecoder; 4 /* 5 *后面我们在Socket Channel中移除二进制消息的前四个字节 6 *ch.pipeline().addLast(n...

2017-03-04 00:17:00 370

转载 Netty实现Unity登录验证(一)

开发环境:JDK1.7,Uniyt5.4.2,数据格式ProtoStuff1.08,Netty5.0.0,数据库MySQL。代码对应关系如下:首先实现数据模型设计,用于ProtoStuff数据传输。 这里的类服务端与客户端对应,以便消息的序列化与反序列化。 1 package com.netty.model; 2 3 import java.util.L...

2017-03-03 23:07:00 439

转载 Unity RPC 链接

using UnityEngine;using System.Collections;public class Menu : MonoBehaviour { public string IP = "127.0.0.1"; public int Port = 25001; //public GameObject target; void OnGUI(...

2015-09-16 16:03:00 170

转载 摄像机跟随物体,修复物体遮挡

using System.Collections;public class CamFollowPlayer : MonoBehaviour {public float moveSpeed = 3;public float rotateSpeed = 3;private Vector3 offset;private Transform p...

2015-09-15 16:48:00 137

转载 Character Shader 含半透明及受击效果

//CharacterShaderWithHurtFlareandFlareColor//Authoryellowcrayon@163.comShader"DreamFaction/Characters/CharacterV3"{Properties{[MaterialToggle]_Flare("Flare",Float)...

2015-09-15 16:46:00 241

转载 空Shader重新指认工具

using UnityEngine;using UnityEditor;using System.Collections;public class CheckCharacterShader : EditorWindow{ /// <summary> /// 检测Character材质是否丢失shader丢失后重新指认 /// 请把脚本拷贝到Editor文...

2015-07-24 17:09:00 99

转载 Box波浪运动的一种实现

1、导入Max模型 摆成10*10阵列2、创建WaveShader,指定给一个新的Material并赋予Plane3.创建RenderTexture > DepthTexture 指定给新建摄像机的TargetTexture4、调整WaveShader的属性 使DepthTexture达到想要的效果5、创建Bo...

2015-07-21 20:58:00 118

转载 查找所有有多个 Texture 的 Matrial

using UnityEngine;using UnityEditor;using System.Collections;using System.Collections.Generic;public class FindMulTextureMaterial : EditorWindow{ // 界面状态 private enum WinState { ...

2015-07-21 20:51:00 94

转载 数据生成XML导入Excel

using UnityEngine;using UnityEditor;using System.Collections;using System.Collections.Generic;using System.IO;using System.Xml;using System.Xml.Serialization;public class EffectPointList : Edit...

2015-07-21 18:52:00 161

转载 Shader结构

Shader "Custom/BasicDiffuse" {Properties{ _EmissiveColor ("Emissive Color", Color) = (1,1,1,1) _AmbientColor ("Ambient Color", Color) = (1,1,1,1) _MySliderValue ("This is a Slider"...

2015-06-16 11:48:00 48

转载 FbxImportUniform

using UnityEditor;/// <summary>/// 设置导入到Characters文件夹中Models文件夹下模型的属性////// 把本脚本拷贝到Editor文件夹下,自动执行////// </summary>public class FbxImportUniform : AssetPostprocess...

2015-06-08 18:22:00 83

转载 RenameAssets

using UnityEngine;using System.Collections;using UnityEditor;using System.Collections.Generic;/// <summary>/// 对Project下选中的物体重命名/// </summary>public class RenameAssets :...

2015-06-08 18:21:00 70

空空如也

空空如也

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

TA关注的人

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