eventsystem
hanaduer 2020-3-27 10:54
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class ButtonA : MonoBehaviour,IPointerEnterHandler,IPointerExitHandler,IPointerDownHandler,IPointerClickHandler{ public void OnPointerEnter (PointerEventDat ...
16 次阅读|0 个评论
chajian
hanaduer 2020-3-27 10:51
unity: vr---------vrtk; ar--------easy ar ar--------vuforia
6 次阅读|0 个评论
点击事件
hanaduer 2020-3-27 10:48
public static void AddListener(this Component obj, EventTriggerType eventTriggerType, UnityActionBaseEventData callback) { #region EventTrigger trigger = obj.GetComponentEventTrigger(); if (trigger == null) ...
6 次阅读|0 个评论
切换场景
hanaduer 2020-3-27 10:46
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement;//首先要记得引用命名空间 public class ChangeSceneTest : MonoBehaviour { //在unity中 File-Build Settings-把要切换的场景添加到Scenes In Build下面,也可 ...
7 次阅读|0 个评论
unity 射线
hanaduer 2020-3-27 10:44
using UnityEngine; using System.Collections; public class RayTest : MonoBehaviour { void Start () { } void Update () { if (Input.GetMouseButton( 0 )) { Ray ray = Camera.main.ScreenPointToRay(Input.mousePosi ...
6 次阅读|0 个评论
第三人称
hanaduer 2020-3-26 14:47
using UnityEngine; using System.Collections; public class CameraFollow : MonoBehaviour { //距离 public float distance = 8; //横向角度 pub ...
12 次阅读|0 个评论
第一人称
hanaduer 2020-3-26 14:46
using System.Collections; using System.Collections.Generic; using System.IO; using System.Threading; using UnityEngine; using UnityEngine.EventSystems; public class playerMove : MonoBehaviour { private float moveSpeed;//摄像机的移动速度 p ...
5 次阅读|0 个评论
币子
hanaduer 2020-3-26 14:43
论坛里想要的资源很多,但是没有币子
5 次阅读|0 个评论
2020.3.26
hanaduer 2020-3-26 14:39
看unity相关文章,觉得该学的特别多啊,什么都得懂,什么都想懂
7 次阅读|1 个评论

本页有 1 篇博客因作者的隐私设置或未通过审核而隐藏

,