07 2024 档案
unity 用gps获取经纬度,然后将经纬度通过逆地理编码转换成中文地址(百度API)
摘要:1.通过GPS获取经纬度 直接上代码了 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GetGPS : MonoBeh 阅读全文
posted @ 2024-07-11 11:04 凌落成迷 阅读(275) 评论(0) 推荐(0)
unity 获取sha1码
摘要:1.先 生成user.keystore 创建Project Settings -> Player ->Publishing Settings 选择Create New -> Anywhere 2. 获取sha1码 我的unity版本是2022.3.27,所以cmd中要先进入这个路径(cmd中 cd 阅读全文
posted @ 2024-07-10 16:11 凌落成迷 阅读(152) 评论(0) 推荐(0)
unity 从list中获取最近的坐标 / 获取最接近的角度(数值)
摘要:/// <summary> /// 从列表points中获取距离targetPoint最近的坐标 /// </summary> /// <param name="points"></param> /// <param name="targetPoint"></param> /// <returns> 阅读全文
posted @ 2024-07-03 17:29 凌落成迷 阅读(71) 评论(0) 推荐(0)