摘要:
// Creates a prefab at the given path. // If a prefab already exists it asks if you want to replace it using UnityEngine; using UnityEditor; public class CreateNewPrefab : EditorWindow { [MenuI...
阅读全文
posted @ 2018-06-13 16:11
GamePal
阅读(691)
推荐(0)
摘要:
一.环境配置 Windows 10 Visual Studio 2017 安装配置 Boost http://www.cnblogs.com/49er/p/7193979.html 2
阅读全文
posted @ 2018-04-16 10:58
GamePal
阅读(920)
推荐(0)
摘要:
使用到了两层Shader,依据先后遮挡关系判定渲染。 1.Cull Back.shader 2.Cull Front.shader 运行效果 最后补充一种用模型的方法,模型做好掏空的结构。
阅读全文
posted @ 2018-03-21 19:14
GamePal
阅读(361)
推荐(0)
摘要:
发环境 Atom、phpStudy2018、Genymotion (Window10) 1.1安装Reactnative. https://reactnative.cn/docs/0.51/getting-started.html#content 1.2Android模拟器Genymotion安装
阅读全文
posted @ 2018-03-01 14:03
GamePal
阅读(282)
推荐(0)
摘要:
一、准备 高德开发者页面注册产品 1.1 http://www.cnblogs.com/U-tansuo/archive/2013/04/25/unity3d_android_sign.html 1.2填写应用应用信息 1.3下载Android 定位SDK http://lbs.amap.com/a
阅读全文
posted @ 2017-11-17 17:30
GamePal
阅读(1314)
推荐(0)
摘要:
public class ArMonoDevelop : MonoBehaviour { // Use this for initialization //需要放大缩小旋转的物体 public GameObject rotateAndEnlargeObj; public bool isRotate = true; public bool isEnlarg...
阅读全文
posted @ 2017-11-14 21:25
GamePal
阅读(1645)
推荐(0)
摘要:
Unity2017.1 ShareSDK GalleryScreenshot.unitypackage 一、SharSDK注册产品 后台>概括 二、微信开放平台上注册产品 2.1Unity: PlayerSettings>OtherSetting: com.wfj.snailshell Androi
阅读全文
posted @ 2017-10-26 15:43
GamePal
阅读(4291)
推荐(0)
posted @ 2017-09-30 15:49
GamePal
阅读(268)
推荐(0)
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Video; public class StreamVideo : MonoBehaviour { public RawImage image; ...
阅读全文
posted @ 2017-09-28 15:40
GamePal
阅读(767)
推荐(0)
摘要:
uLua(September 2017); Unity2017; vuforia-unity-6-2-10; Easy Touch 5 Touchscreen Virtual Controls 5.0.12
阅读全文
posted @ 2017-09-21 10:33
GamePal
阅读(217)
推荐(0)
摘要:
Unity2017;ICSharpCode.SharpZipLib.Zip;
阅读全文
posted @ 2017-09-17 19:29
GamePal
阅读(2737)
推荐(0)
摘要:
Unity2017 ; vuforia-unity-6-2-10; IIS添加对.dat文件支持 文件扩展名:.dat MIME类型:application/octet-stream
阅读全文
posted @ 2017-09-17 19:23
GamePal
阅读(1498)
推荐(0)
posted @ 2017-08-29 11:32
GamePal
阅读(852)
推荐(0)
摘要:
1.鼠标平面拖拽物体 2.当射线碰撞目标为boot类型的物品 ,执行拾取操作(仅作参考) 3.重置物体位移方法,脱卡需要放到摄像机下 4实例,小球找同颜色父物体 完整代码 5物体碰撞知识参考 http://m.manew.com/thread-30342-1-1.html
阅读全文
posted @ 2017-08-25 16:33
GamePal
阅读(610)
推荐(0)
摘要:
1、基本UI布局这里使用UGUI,Unity版本2017.1.0f3 2、在Scrollbar添加按下抬起的监听 3、代码清单 3.1驱动类 3.2 工具方法 查找未激活子物体
阅读全文
posted @ 2017-08-24 14:24
GamePal
阅读(1341)
推荐(0)
摘要:
新建程序入口main.lua 运行效果
阅读全文
posted @ 2017-08-24 08:10
GamePal
阅读(538)
推荐(0)
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DeviceBuildDisplay : MonoBehaviour { internal void OnEnable() { Application.logMessageRec...
阅读全文
posted @ 2017-08-07 14:32
GamePal
阅读(231)
推荐(0)
摘要:
Unity2017 一、创建Bundle打包工具ExportAssetBundles 二、资源更新及读取 三、这里创建了两个文件夹Server&Local模拟服务器和本地 四、网络测试
阅读全文
posted @ 2017-08-04 20:35
GamePal
阅读(1193)
推荐(0)
摘要:
资源Bundle创建,这里Assets下手动创建StreamingAssets文件夹 资源的引用 资源层级截图 http://blog.csdn.net/lyh916/article/details/49815871 http://www.xuanyusong.com/archives/2405
阅读全文
posted @ 2017-06-22 13:50
GamePal
阅读(198)
推荐(0)
摘要:
using UnityEngine; using System.Collections.Generic; using UnityEditor; using System.IO; enum ImageOptions { Load_AppLogo, Load_Outside, Load_Inside, Load_BG, Main_ArCam, Main_PDF, Main_BG, ...
阅读全文
posted @ 2017-06-05 15:09
GamePal
阅读(617)
推荐(0)
摘要:
Camera Shader Unity调用 运行测试
阅读全文
posted @ 2017-04-18 12:41
GamePal
阅读(342)
推荐(0)
摘要:
Shader "Characters/CharactersV6" { Properties { [MaterialToggle] _Flare ("Flare", Float ) = 0 _Flarecolor ("Flarecolor", Color) = (0.5,0.32,0.11,1) _MainTex ("...
阅读全文
posted @ 2017-04-18 12:28
GamePal
阅读(409)
推荐(0)
摘要:
一、服务端代码 MyEclipse新建Servlet #Name:StringContentServlet #Servlet/JSPMappingUrl:/StringContentServlet.do package com.jimmy.Servlets; import java.io.IOExc
阅读全文
posted @ 2017-04-18 12:20
GamePal
阅读(2476)
推荐(0)
摘要:
AWS Ubuntu 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.c
阅读全文
posted @ 2017-04-18 12:09
GamePal
阅读(1089)
推荐(0)
摘要:
按住K; V截取游戏 using UnityEngine; using System.Collections; using System.IO; // Screen Recorder will save individual images of active scene in any resolut
阅读全文
posted @ 2017-03-28 17:37
GamePal
阅读(574)
推荐(0)
摘要:
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
阅读全文
posted @ 2017-03-23 14:10
GamePal
阅读(235)
推荐(0)
摘要:
这里我们用Netty实现消息的接受及分发,服务器端的 handler 添加流程如图: 1 package com.netty.dispatch; 2 3 import com.netty.model.SocketModel; 4 import com.netty.protocol.LoginProt
阅读全文
posted @ 2017-03-04 00:51
GamePal
阅读(680)
推荐(0)
摘要:
编写服务端工具类,MySQL连接及登陆信息验证,及int和byte之间的转化 MySQL用户信息表结构: 1 package com.netty.util; 2 3 import java.sql.Connection; 4 import java.sql.DriverManager; 5 impo
阅读全文
posted @ 2017-03-04 00:29
GamePal
阅读(481)
推荐(0)
摘要:
这里主要处理二进制消息的粘包拆包 1 package com.netty.decoder; 2 3 import io.netty.handler.codec.LengthFieldBasedFrameDecoder; 4 /* 5 *后面我们在Socket Channel中移除二进制消息的前四个字
阅读全文
posted @ 2017-03-04 00:17
GamePal
阅读(359)
推荐(0)
摘要:
开发环境:JDK1.7,Uniyt5.4.2,数据格式ProtoStuff1.08,Netty5.0.0,数据库MySQL。 代码对应关系如下: 首先实现数据模型设计,用于ProtoStuff数据传输。 这里的类服务端与客户端对应,以便消息的序列化与反序列化。 1 package com.netty
阅读全文
posted @ 2017-03-03 23:07
GamePal
阅读(811)
推荐(0)
摘要:
using UnityEngine;using System.Collections;public class Menu : MonoBehaviour { public string IP = "127.0.0.1"; public int Port = 25001; //pub...
阅读全文
posted @ 2015-09-16 16:03
GamePal
阅读(932)
推荐(0)
摘要:
using System.Collections; public class CamFollowPlayer : MonoBehaviour { public float moveSpeed = 3; public float rotateSpeed = 3; private Vector3 off
阅读全文
posted @ 2015-09-15 16:48
GamePal
阅读(387)
推荐(0)
摘要:
//Character Shader With Hurt Flare and FlareColor//Author yellowcrayon@163.comShader "DreamFaction/Characters/CharacterV3" { Properties { [MaterialTog
阅读全文
posted @ 2015-09-15 16:46
GamePal
阅读(541)
推荐(0)
摘要:
using UnityEngine;using UnityEditor;using System.Collections; public class CheckCharacterShader : EditorWindow{ /// <summary> /// 检测Character材质是否丢失sha
阅读全文
posted @ 2015-07-24 17:09
GamePal
阅读(1157)
推荐(0)
摘要:
1、导入Max模型 摆成10*10阵列 2、创建WaveShader,指定给一个新的Material并赋予Plane 3.创建RenderTexture > DepthTexture 指定给新建摄像机的TargetTexture 4、调整WaveShader的属性 使DepthTexture达到想要
阅读全文
posted @ 2015-07-21 20:58
GamePal
阅读(365)
推荐(0)
摘要:
using UnityEngine;using UnityEditor;using System.Collections;using System.Collections.Generic; public class FindMulTextureMaterial : EditorWindow{ //
阅读全文
posted @ 2015-07-21 20:51
GamePal
阅读(600)
推荐(0)
摘要:
using UnityEngine;using UnityEditor;using System.Collections;using System.Collections.Generic;using System.IO;using System.Xml;using System.Xml.Serial
阅读全文
posted @ 2015-07-21 18:52
GamePal
阅读(546)
推荐(0)
摘要:
Shader "Custom/BasicDiffuse" { Properties { _EmissiveColor ("Emissive Color", Color) = (1,1,1,1) _AmbientColor ("Ambient Color", Color) = (1,1,1,1) _M
阅读全文
posted @ 2015-06-16 11:48
GamePal
阅读(566)
推荐(0)
摘要:
using UnityEditor; /// <summary> /// 设置导入到Characters文件夹中Models文件夹下模型的属性 /// /// 把本脚本拷贝到Editor文件夹下,自动执行 /// /// </summary> public class FbxImportUnifor
阅读全文
posted @ 2015-06-08 18:22
GamePal
阅读(258)
推荐(0)
摘要:
using UnityEngine; using System.Collections; using UnityEditor; using System.Collections.Generic; /// <summary> /// 对Project下选中的物体重命名 /// </summary> p
阅读全文
posted @ 2015-06-08 18:21
GamePal
阅读(375)
推荐(0)