
c#
文章平均质量分 79
木冇鱼丸呀丶
咸鱼,咸鱼干.....
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Unity3D-UGUI Text 文本调整字间距
UGUI Text 文本调整字间距 最近的项目美术提需求要调整游戏得分显示的数字间隔,发现UGUI的Text组件只提供了行间距的调整,而无法调整字与字之间的间隔,因为美术出的图片左右间距过大,自己又不想重新制作字体,所以便有了这样一个便捷工具 效果图 代码 // An highlighted block using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using Un原创 2020-06-16 17:19:37 · 2532 阅读 · 0 评论 -
Unity UGUI 分页滑动
using UnityEngine; using System.Collections; using UnityEngine.EventSystems; using System; using UnityEngine.UI; public class LevelButtonScrollRect : MonoBehaviour, IBeginDragHandler, IEndDragHan...原创 2019-10-17 14:41:01 · 346 阅读 · 0 评论 -
Camera.ScreenToWorldPoint 屏幕转世界位置
Camera.ScreenToWorldPoint 屏幕转世界位置 functionScreenToWorldPoint(position:Vector3 Description描述 Transforms position from screen space into world space. 从屏幕空间到世界空间的变化位置。 Screenspace is defined in ...转载 2019-10-17 14:40:10 · 903 阅读 · 0 评论 -
Camera.WorldToScreenPoint 世界转屏幕位置
Camera.WorldToScreenPoint 世界转屏幕位置 functionWorldToScreenPoint(position:Vector3 Description描述 Transforms position from world space into screen space. 从世界空间到屏幕空间变换位置。 Screenspace is defined in p...转载 2019-10-17 14:39:17 · 2254 阅读 · 0 评论 -
unity控制相机全方向查看物体
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MouseFollowRotation: MonoBehaviour { public Transform target; public float xSpeed = 200, ySpeed = 20...原创 2019-10-17 14:28:37 · 344 阅读 · 0 评论 -
C# 面试题 (一)
C# 面试题 (一) 一、C# 理论 1.1、简述 private、 protected、 public、 internal、protected internal 访问修饰符和访问权限 private : 私有成员, 在类的内部才可以访问。 protected : 保护成员,该类内部和继承类中可以访问。 public : 公共成员,完全公开,没有访问限制。 internal: 当前程序...转载 2019-01-11 11:05:15 · 2547 阅读 · 0 评论