随笔分类 -  Unity

摘要:// 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 阅读(695) 评论(0) 推荐(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 阅读(1321) 评论(0) 推荐(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 阅读(1649) 评论(0) 推荐(0)
摘要:Unity2017.1 ShareSDK GalleryScreenshot.unitypackage 一、SharSDK注册产品 后台>概括 二、微信开放平台上注册产品 2.1Unity: PlayerSettings>OtherSetting: com.wfj.snailshell Androi 阅读全文
posted @ 2017-10-26 15:43 GamePal 阅读(4300) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 阅读全文
posted @ 2017-09-30 15:49 GamePal 阅读(269) 评论(0) 推荐(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 阅读(770) 评论(0) 推荐(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 阅读(221) 评论(0) 推荐(0)
摘要:Unity2017;ICSharpCode.SharpZipLib.Zip; 阅读全文
posted @ 2017-09-17 19:29 GamePal 阅读(2743) 评论(0) 推荐(0)
摘要:Unity2017 ; vuforia-unity-6-2-10; IIS添加对.dat文件支持 文件扩展名:.dat MIME类型:application/octet-stream 阅读全文
posted @ 2017-09-17 19:23 GamePal 阅读(1502) 评论(2) 推荐(0)
摘要:工程设置 阅读全文
posted @ 2017-08-29 11:32 GamePal 阅读(859) 评论(0) 推荐(0)
摘要:1.鼠标平面拖拽物体 2.当射线碰撞目标为boot类型的物品 ,执行拾取操作(仅作参考) 3.重置物体位移方法,脱卡需要放到摄像机下 4实例,小球找同颜色父物体 完整代码 5物体碰撞知识参考 http://m.manew.com/thread-30342-1-1.html 阅读全文
posted @ 2017-08-25 16:33 GamePal 阅读(613) 评论(0) 推荐(0)
摘要:1、基本UI布局这里使用UGUI,Unity版本2017.1.0f3 2、在Scrollbar添加按下抬起的监听 3、代码清单 3.1驱动类 3.2 工具方法 查找未激活子物体 阅读全文
posted @ 2017-08-24 14:24 GamePal 阅读(1344) 评论(0) 推荐(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 阅读(233) 评论(0) 推荐(0)
摘要:Unity2017 一、创建Bundle打包工具ExportAssetBundles 二、资源更新及读取 三、这里创建了两个文件夹Server&Local模拟服务器和本地 四、网络测试 阅读全文
posted @ 2017-08-04 20:35 GamePal 阅读(1200) 评论(0) 推荐(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 阅读(223) 评论(0) 推荐(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 阅读(620) 评论(0) 推荐(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 阅读(576) 评论(0) 推荐(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 阅读(391) 评论(0) 推荐(0)
摘要:using UnityEngine;using UnityEditor;using System.Collections; public class CheckCharacterShader : EditorWindow{ /// <summary> /// 检测Character材质是否丢失sha 阅读全文
posted @ 2015-07-24 17:09 GamePal 阅读(1160) 评论(0) 推荐(0)
摘要:using UnityEngine;using UnityEditor;using System.Collections;using System.Collections.Generic; public class FindMulTextureMaterial : EditorWindow{ // 阅读全文
posted @ 2015-07-21 20:51 GamePal 阅读(602) 评论(0) 推荐(0)