![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unity
全都是泡饃
赖床一时爽,一直赖床一直爽
展开
-
Unity碰撞检测函数
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SphereTest : MonoBehaviour { // Start is called before the first frame update void Start() { ...原创 2019-07-30 11:32:52 · 3837 阅读 · 0 评论 -
Unity中富文本的使用
原创 2019-08-09 14:12:30 · 2046 阅读 · 0 评论 -
利用RawImage制作帧动画
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class RawImageAni : MonoBehaviour { private RawImage _rawImage; priv...原创 2019-08-09 13:27:50 · 582 阅读 · 0 评论 -
ConstantPixelSize模式下的UI适配
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ConstantScaler : MonoBehaviour { // Start is called before the first frame updat...原创 2019-08-08 14:42:35 · 969 阅读 · 0 评论 -
Canvas的三种渲染模式与Canvas Group
一、Screen Space - Overlay 画布覆盖所有物体 二、Screen Space - Camera 画布在相机前 三、World Space 可随意调整画布 添加CanvasGroup组件,统一调整透明度 ...原创 2019-08-08 13:52:06 · 717 阅读 · 0 评论 -
获取UI宽高
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test1 : MonoBehaviour { // Start is called before the first frame update void Start() { ...原创 2019-08-08 13:31:27 · 325 阅读 · 0 评论 -
轴心点参数的应用
原创 2019-08-08 11:46:13 · 378 阅读 · 0 评论 -
Anchor的简单应用
将Anchor设置于父级画布上,子级画布将与Anchor所在父级画布边保持不变的间距 Pos X和Pos Y是Anchor和Pivot的相对位置,可调整Pivot点与Pos X和Pos Y来进行点对齐 按住Alt键点击红圈内按钮,子级画布将缩放到父级画布尺寸 ...原创 2019-08-08 11:04:55 · 231 阅读 · 0 评论 -
RectTransform基础概念
原创 2019-08-08 10:50:34 · 161 阅读 · 0 评论 -
Unity触发检测
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SphereTest : MonoBehaviour { // Start is called before the first frame update void Start() { ...原创 2019-07-30 14:02:50 · 3124 阅读 · 0 评论 -
Unity实现UI物体拖拽功能
using UnityEngine; using UnityEngine.EventSystems; // Creates drag and drop functionality. public class SceneEditor : MonoBehaviour { public GameObject playerCar; private GameObject go; ...原创 2019-08-13 10:04:48 · 1272 阅读 · 0 评论