![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
拖拽放置
fanfan_hongyun
VR unity 虚拟仿真
展开
-
RuntimeTransformGizmos插件使用教程
运行时 模型编辑转载 2021-04-06 11:39:13 · 793 阅读 · 0 评论 -
拖拽排序(demo)
using UnityEngine;using System.Collections;using UnityEngine.EventSystems;using UnityEngine.UI;public class OnTestDrag : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler, IPointerEnterHandler{ private Vector3 mBeginPos; privat.原创 2021-03-11 16:01:44 · 199 阅读 · 0 评论 -
Gradient 颜色渐变
using System;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;namespace ExtraFoundation.Components{ [AddComponentMenu("UI/Effects/Gradient")] public class UIGradient : BaseMeshEffect { #region Public ...原创 2020-12-25 14:11:32 · 477 阅读 · 0 评论 -
拖动ui限制区域
将以下脚本挂在被拖拽的ui上,container为限制的区域Rectusing System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.EventSystems;public class Demo1 : MonoBehaviour, IBeginDragHandler, IDragHandler{ // 另一个UI =限制的区域 public Rec.原创 2020-12-03 18:58:42 · 146 阅读 · 0 评论 -
unity Drag image 放置物体
简单易懂转载 2020-09-07 17:56:57 · 548 阅读 · 0 评论 -
3d拖拽
using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.EventSystems;public class Test : MonoBehaviour{ /// <summary> /// 这里是3D物体的移动,注意坐标系的转...原创 2019-07-11 15:35:21 · 241 阅读 · 0 评论