- 博客(6)
- 收藏
- 关注
原创 Unity网络连接状况
switch (Application.internetReachability) { case NetworkReachability.NotReachable: //网络断开 break; case NetworkReachability.ReachableViaLocalAreaNetwork: //WIFI b
2020-08-28 11:49:13 281
原创 unity异步加载代码
private AsyncOperation mAsyncOperation;//异步加载信息/// 异步加载场景IEnumerator LoadScene(){ mAsyncOperation=SceneManager.LoadSceneAsync("newscene"); mAsyncOperation.allowSceneActivation =false;//不允许跳转场景 yield return mAsyncOperation;//等待场景加载完毕
2020-08-28 11:44:40 209
原创 unity打AB包时报错Building an AssetBundle for target ‘WindowsStandaloneSupport‘ is not allowed
Building an AssetBundle for target 'WindowsStandaloneSupport' is not allowed because the required module is not installed照着别人教程打Ab包时出现的报错别人的教程原因是代码中最后一行的目标平台没改StandaloneWindows我改为Android就好了,具体看你的目标平台...
2020-08-19 16:42:59 4048
原创 C++OpenGL画直线段的中点算法
void COpenGLView::MidPoint(int x1, int y1, int x2, int y2){ //先考虑斜率不存在的情况 if (x1 == x2) { if (y1 <= y2) { for (int y = y1; y <= y2; y++) { glBegin(GL_POINTS); glVertex2i(x1, y); glEnd(); } } else { for (int y = y1; y &g
2020-05-27 17:44:52 1083
原创 Unity3D类英雄联盟镜头控制(平移和缩放)
Unity3D类英雄联盟镜头控制(平移和缩放)using System.Collections;using System.Collections.Generic;using UnityEngine;public class CameraControl : MonoBehaviour{ public float camFieldMax = 30f, camFieldMin = 5f; Camera cam; private Rect RectUp; private
2020-05-23 16:18:09 997
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人